SQL Formatter
Turn a long one-line SQL statement into readable code: uppercase keywords, one clause per line, indented conditions.
Raw SQL
Formatted SQL
How to use
Three steps, no sign-up
Paste SQL
Single or multiple lines.
Format
Keywords and clauses are laid out.
Copy
Paste into your editor.
FAQ
Does formatting change the SQL semantics?
No. It only adjusts casing, line breaks and indentation; keywords and values stay the same.
Which databases are supported?
Generic formatting that works for common MySQL, PostgreSQL and SQLite syntax. Stored procedures may not format perfectly.
Is my SQL uploaded?
No. Formatting runs locally in your browser.