Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Public Tools SQL Formatter

public.tools

  • Free plan
  • Web
6.8 Club score Visit public.tools

What Public Tools SQL Formatter is

Public Tools SQL Formatter is a free browser tool that changes SQL whitespace and keyword casing. It supports 20 dialects, including Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle PL/SQL, BigQuery, Snowflake, Redshift, Spark, Hive, Trino, DuckDB, ClickHouse, Db2, N1QL, SingleStore, and TiDB. Users can select uppercase, lowercase, or as-typed keywords and choose two-space, four-space, or tab indentation. Semicolon-separated statements are formatted in sequence with blank lines between them. Processing runs in the browser; the page says no network requests are made after loading, so queries remain on the user’s machine and formatting can continue offline. For unbalanced parentheses or unclosed quotes, the tool reports the line and column. It does not validate query correctness, understand a schema, optimize SQL, or lint it. Stored-procedure bodies and vendor-specific scripting blocks are known weak spots. No sign-up or email is required, and the free plan has no query-length or daily limit.

Who it suits

The formatter suits people preparing SQL for editors or migrations. It is useful when browser-local processing and broad dialect support matter.

Good to know, and what to watch

  • Supports 20 SQL dialects
  • Offers three keyword-casing choices
  • Provides multiple indentation styles
  • Works offline after page loading
  • Has no query-length or daily limit
  • Does not validate query correctness
  • Does not optimize or lint SQL
  • Stored procedures and vendor scripts are weak spots

Free

Free

Free plan

The verdict

Public Tools SQL Formatter is a straightforward, private-in-browser formatter with broad dialect coverage. Use it for presentation changes, not for checking whether SQL is valid or optimized.

What the maker publishes

Audience
The page describes copying formatted queries back into an editor or migration, making it suitable for people working with SQL queries and migrations. source
Dialect support
Supports 20 dialects, including PostgreSQL, MySQL, SQL Server, Oracle PL/SQL, BigQuery, Snowflake, Redshift, Spark, Trino, DuckDB, ClickHouse, Db2, N1QL, SingleStore and TiDB. source
Formatting options
Users can choose uppercase, lowercase or as-typed casing, and two-space, four-space or tab indentation. source
Limitations
It does not validate query correctness, understand the user's schema, optimize queries or lint them; stored procedure bodies and vendor-specific scripting blocks are a known weak spot. source
Multiple statements
Semicolon-separated statements are formatted one after another with a blank line between them. source
Offline use
The page says users can disconnect after it loads and continue formatting queries. source
Parsing errors
The formatter parses the statement and reports the line and column when it encounters an unbalanced parenthesis or unclosed quote. source
Private processing
The formatter runs in the browser and the page says it makes no network requests after loading, so queries stay on the user's machine. source
Purpose
Formats SQL queries by changing whitespace and keyword casing. source
Supported use
The page says it is safe for production queries and requires no sign-up or email address. source

Checked against the maker's pages on 8 Oct 2026.