Why this tool stays in the browser
Format SELECT/DML in the tab so you can read a production-shaped query without pasting it into a hosted SQL pretty-printer. Clause keywords stay intact so ORDER BY and JOIN are not split mid-phrase. Use it when a log line is one long string and you need to see the WHERE. Pair with the JSON formatter when the driver returns JSON, or dummy data when you need a fixture around the query.
Related: JSON Formatter · Dummy Data Generator
FAQ
- Is my SQL uploaded?
- No. Formatting runs in the browser. Do not paste credentials inside comments either — keep secrets out of queries.
- Which dialects work?
- It is a keyword-aware beautifier for common SQL, not a full parser for every warehouse dialect.
- Will it execute the query?
- Never. This page only formats text.
SQL Formatter
Format and beautify SQL queries with customizable indentation and keyword casing.
Indent: