SQL Formatter
Format SQL into readable clauses, or minify it.
Options
Private by design. This tool runs entirely in your browser. Your input is processed on your own device and is not uploaded by DO101.
About the SQL Formatter
Puts each clause on its own line, indents conditions and joins, and optionally uppercases keywords — turning a one-line query into something you can actually review.
How to use it
- 1Paste your SQL.
- 2Choose format or minify.
- 3Copy the result.
What you get
- Clause-aware line breaks
- Indented AND, OR and ON conditions
- Optional keyword uppercasing
- Minify mode that strips comments
- Runs in your browser
Frequently asked questions
Which SQL dialects work?
The formatter is keyword-based, so standard SELECT, INSERT, UPDATE, DELETE and DDL statements format well across MySQL, PostgreSQL, SQLite and SQL Server. Very dialect-specific syntax may format less tidily.
Does it validate my SQL?
No. It reformats text and never executes or parses the query semantically, so it cannot tell you whether the statement is correct.
Is my query sent anywhere?
No. Queries often contain table and column names you would rather not share, so this runs entirely on your device.
Keep going
People who use this tool usually reach for these next.