SQL Formatter
Developer Tools
100% in-browser
Paste SQL to get a clean, indented, readable query.
How to use the SQL Formatter
- 1 Paste your SQL query.
- 2 It is reformatted with keywords and indentation instantly.
- 3 Copy the formatted SQL.
About the SQL Formatter
Readable SQL is easier to debug and review. This formatter uppercases keywords, aligns clauses and indents nested queries so a one-line query becomes a clean, structured statement.
Formatting runs entirely in your browser using a dedicated SQL formatting library.
Frequently asked questions
Which SQL dialects are supported?
Standard SQL plus common dialects; the default handles most queries well.
Does it change my query?
No — only whitespace, casing and layout change, not the query logic.