SQL Formatter
Make SQL easier to read with consistent indentation and keyword casing. Choose the dialect your database uses.
Does a SQL formatter run my query?
No. A SQL formatter only rewrites the layout of SQL text. Select a dialect, paste a query, and format it without connecting to a database.
Your result
A little clarity, right here.
Start with your own content or load the example. Your result will appear here.
Three simple steps
How to use SQL Formatter
Paste your content or choose a supported file.
Adjust the options, then run the tool.
Review the result and copy or download it.
Common questions
Good to know
Understand the result.
Keep the original.
Is this tool free, and are my files uploaded?
This tool is free with no account required. The work happens in your browser. Your input and files are not sent to a processing server.
What are the limits and details?
Formatting is not a check of database permissions, schema correctness, query safety, or performance.
Limits: 500,000 characters per text field; files up to 20 MB each, 10 files and 50 MB total. Processing stops after 30 seconds.