Free online tools · No sign-up

SQL formatter

Format SQL in your browser with dialect, indentation and keyword case options.

Local processing · Inputs are not uploaded

Local processing: no SQL upload or execution. Up to 100 KiB, with a 4-second timeout.

Paste SQL to start formatting.

Supported scope

Supports common statements in standard SQL, MySQL, PostgreSQL and SQLite. Stored procedures and custom delimiters are unsupported. Other syntax may fail to parse or produce unsuitable formatting.

Formatting does not validate syntax, repair SQL or guarantee semantic equivalence. Review the result before replacing important SQL.

Paste SQL, choose the dialect, indentation and keyword case, then format. Editing input or settings clears old output.

Formatting engine and license

Uses SQL Formatter 15.9.0 (MIT). Third-party licenses are distributed with the static files.

SQL Formatter 15.9.0

Related tools