SQL Formatter
Reformat SQL statements with consistent indentation and line breaks.
№ 023Runs locally
What this tool does
SQL Formatter. Reformat SQL statements with consistent indentation and line breaks.
When to use it
Use it to review long queries, compare clauses, or tidy SQL before sharing it.
How to use
- Try this sample input first: select id,name from users where active=1.
- Choose or adjust the options this tool provides; leave unrelated settings at their defaults.
- Run the tool and read any validation or status message. Correct the input format before trying again if needed.
- Check whether the result matches the example output: SELECT id, name FROM users WHERE active = 1. Then copy or download it.
Your input and files are processed in this browser. They are not uploaded by this toolbox.
Input and output example
select id,name from users where active=1SELECT id, name
FROM users
WHERE active = 1