SQL formatter online
Online SQL formatter, minifier & dialect helper
Paste a query on the left. Format, minify, strip comments, or extract tables and columns on the right. Everything stays on this device.
The workbench needs JavaScript in this browser. Without it, you can still read the dialect notes and templates, but live formatting, extraction, and copy will not run.
Dialect helper notes
Questions
Do I need an account?
No. The formatter runs in this browser. There is no file to upload and no sign-in.
Which SQL dialects are supported?
PostgreSQL, MySQL, SQLite, BigQuery, and Snowflake. The tokenizer keeps dialect-specific quotes and operators, and the dialect helper can normalize identifier quotes and rewrite some casts and ILIKE predicates.
Does formatting ever send my query to a server?
No. Tokenizing, formatting, minifying, comment stripping, and extraction all run in this page. Copy and the .sql download also stay on this device.
Will a converted query always run on the target engine?
Not always. The helper is mechanical: quotes, ::type, ILIKE, and # comments. Warehouse-specific functions still need a human pass. Read the notes under the output before you paste the result into a console.
Related documents and desks
The formatter links official PostgreSQL, MySQL, SQLite, BigQuery, and Snowflake SQL references, and the jmforu.com catalog. Those are separate sites.
- JM Hub — A catalog of the jmforu.com tool set.
- PostgreSQL SQL syntax — Official documentation for PostgreSQL lexical structure, quoted identifiers, and operators.
- MySQL language structure — Official documentation for MySQL identifiers, comments, and literal syntax.
- SQLite SQL language — Official SQLite language reference, including JSON_EXTRACT and GLOB.
- BigQuery query syntax — Official Standard SQL query syntax for BigQuery, including UNNEST, QUALIFY, and STRUCT.
- Snowflake SQL reference — Official Snowflake SQL reference, including VARIANT paths, FLATTEN, QUALIFY, and ILIKE.