SQL Formatter Online
Capitalize query keywords and align SELECT statements.
Runs entirely in your browser
Formatted SQL appears here as you type
Rate SQL Formatter4.9(104 votes)Rate SQL Formatter
How to use SQL Formatter
- 1Paste your SQL query into the input field.
- 2Select your SQL dialect (MySQL, PostgreSQL, SQL Server, etc.) if needed.
- 3Click 'Format' — the query is re-indented with keywords capitalized and structure clarified.
Privacy & security
SQL formatting runs entirely in your browser. Your query is never uploaded or transmitted to any server.
Your SQL is processed locally. No query data is sent to any server.
Frequently asked questions
Which SQL dialects are supported?
MySQL, PostgreSQL, SQLite, T-SQL (SQL Server), and standard SQL are all supported.
Will formatting change my query's behavior?
No. Formatting only affects whitespace and capitalization — the query's logic and output remain identical.
Can I format very long queries?
Yes. There's no size limit since everything runs locally. Large queries may take a moment to format.