SQL Formatter
Beautify or minify SQL across fifteen dialects, with control over keyword case, indentation and spacing. Everything runs in your browser's memory — your queries never leave your device.
SQL input
Stays on your device0 B inCtrl/⌘ + Enter to format
Result
0 B out
What SQL Formatter does
- Dialects: standard SQL, MySQL, PostgreSQL, SQLite, T-SQL and more
- Keyword case: upper, lower or preserve
- Indent width and blank line between queries
- Own whitespace-safe minifier
- Copy or download the result
How to use it
- 01
Open the SQL tool.
- 02
Paste a query and pick your dialect.
- 03
Format or minify it; the result appears instantly.
- 04
Copy or download the cleaned SQL.
Common questions
- Are my SQL queries sent to a server?
- No. Formatting happens in your browser, so real queries and customer data never touch a network connection.
- Which SQL dialects are supported?
- Standard SQL, MySQL, PostgreSQL, SQLite, T-SQL and more. You pick the dialect so keywords are cased the way your database expects.
- Can it minify a query?
- Yes. Alongside the formatter there is a whitespace-safe minifier that collapses a query to a single line.
More tools
ReadyJSON Formatter & ValidatorFormat, validate, minify and sort JSON — instantly, in your browser.Runs in your browserOpenReadyRegEx TesterTest, explain and generate code for regular expressions.Runs in your browserOpenReadyCron Expression BuilderBuild cron schedules and preview the next runs.Runs in your browserOpen