🗃️ SQLFormat

6 dialects · keyword case · indent 2/4 · zero uploads

Beautify SQL without pasting it online

Paste a query, pick a dialect, get clean readable SQL back. The formatter is the open-source sql-formatter library, bundled and running locally — your queries are never sent anywhere.

The formatter

Choose dialect, indentation and keyword casing, then format.

Input
Options
Format

Formatting uses the bundled sql-formatter library, running locally in this tab. Your SQL is never uploaded.

Pro Pro
One-click minify and the dialect matrix are part of SQLFormat Pro

FAQ

Is SQLFormat free?

Yes — unlimited formatting in all six dialects. Pro ($3.99 once) adds one-click minify and the full dialect matrix.

Which dialects are supported?

Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite and BigQuery. The dialect controls keyword lists and built-in function names during formatting.

Will it validate or fix my SQL?

No — it is a beautifier, not a parser. It reformats what you paste and cannot catch syntax errors; those come back from your database, not this tool.

Part of PZTools·JSONSmith·YAMLJSON·RegexLab

Support SQLFormat

SQLFormat runs entirely in your browser — no accounts, no servers, no tracking. A small contribution keeps it that way.

SQLFormat Pro · $3.99 lifetime

Payments are processed by PayPal. Nothing about you or your data is stored or sent anywhere by this site.