SQL Formatter
Format SQL statements into readable, consistently indented queries.
Input
Result
How to use
Formatting SQL
Paste a statement and press Format. Keywords are uppercased and clauses are broken onto new lines.
- Paste SQL into the input editor.
- Press Format.
- Copy the formatted query.
Frequently asked questions
Which dialects are supported?
Standard SQL, MySQL, PostgreSQL, SQL Server, SQLite and more are available.
Does it change query meaning?
No, formatting only changes whitespace and keyword case.
Related tools
JSON Formatter
Beautify and validate JSON with configurable indentation, error highlighting and one click copy.
XML Formatter
Pretty print XML with consistent indentation and optional attribute wrapping.
Query String Parser
Parse a URL query string into readable parameters and rebuild it from key value pairs.
UUID / GUID Generator
Generate random version 4 UUIDs and copy them one by one or in bulk.
Hash Generator
Compute MD5, SHA-1, SHA-256 and SHA-512 digests of any text.
Timestamp Converter
Convert between Unix timestamps, ISO 8601 and human readable local dates.