SQL Formatter — Beautify & Minify for All Databases
Paste a query and get beautifully formatted SQL with keyword capitalization and smart indentation. Supports PostgreSQL, MySQL, SQLite, BigQuery, and more. 100% browser-based.
Keywords: sql formatter, sql beautifier, format sql, sql pretty print, sql syntax, database query formatter, sql validator, sql editor
Frequently Asked Questions
Which SQL dialects are supported?
PostgreSQL, MySQL, SQLite, MariaDB, BigQuery, Oracle, DB2, Redshift, Spark, and standard SQL are all supported.
Can I load SQL from a URL?
Yes, paste any URL containing SQL and the tool will fetch and format it automatically.
What's the file size limit?
Queries up to 1MB are supported. Larger queries may cause performance issues in the browser.
Does it validate SQL syntax?
The formatter detects basic syntax errors and provides helpful error messages when queries can't be parsed.
Can I minify SQL?
Yes, you can both beautify (add formatting) or minify (remove whitespace) your SQL queries.