Private by design: the input stays in this browser and is not uploaded to our server.
Maximum 10 MB · processed locally
Ready. Paste input, open a file or use the example.
About this tool
Format SQL safely and quickly.
Turn compact SQL into readable statements for reviews, documentation and debugging without uploading queries to a server.
What it handles
- Formats common SELECT, INSERT, UPDATE and DELETE statements
- Preserves quoted strings and comments
- Supports two- or four-space indentation
- Copy or download the formatted SQL
Common questions
SQL Formatter FAQ
Which SQL dialects are supported?
The formatter handles common SQL syntax shared by PostgreSQL, MySQL, SQL Server, Snowflake, BigQuery and similar systems. Vendor-specific syntax may need manual adjustment.
Does this tool execute my SQL?
No. It only changes layout and capitalization. It never connects to a database or runs the query.
Is confidential SQL uploaded?
No. Formatting happens locally in your browser. Avoid placing credentials or secrets in any document unnecessarily.