SQL Formatter
Paste SQL and get basic indentation. Keywords (SELECT, FROM, WHERE, JOIN, etc.) are placed on new lines.
Format SQL
How it works
We split on keywords and add newlines and indentation. No full SQL parse; best for simple queries.
When to use it
Use for quick readability of one-off queries.
Frequently asked questions
All dialects?
We use a common keyword list. Complex or proprietary SQL may not format perfectly.