SQL Formatter and Beautifier
Beautify messy SQL — pick your dialect and keyword case, format, copy. Nothing sent.
Stays on your device. This tool runs in your browser — nothing you paste or open ever leaves it. Nothing uploaded, nothing to leak.
↳ received from
Help us improve
Was this tool useful? Tap a star.
Thanks — your rating helps others find it.
An SQL formatter takes a cramped, one-line or inconsistent query and lays it out with proper indentation, line breaks and keyword casing so it is easy to read and review. Choose your database dialect — MySQL, PostgreSQL, SQL Server, Oracle, SQLite, BigQuery and more — set keywords to upper or lower case, and format. It all runs in your browser, so your queries are never sent anywhere.
Why dialect matters
Different databases add their own keywords and syntax — PostgreSQL, MySQL, SQL Server (T-SQL), Oracle (PL/SQL), BigQuery and Snowflake all differ. Picking the right dialect means the formatter recognises those keywords and lays the query out correctly instead of mangling vendor-specific syntax.
FAQ
Which SQL dialects are supported?Standard SQL plus MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), Oracle (PL/SQL), BigQuery, Snowflake and Spark.
Can I force keywords to uppercase?Yes — choose UPPER, lower, or keep them exactly as you typed them.
Is my query sent to a server?No — formatting runs entirely in your browser. Your SQL never leaves your device.