SQL Formatter
Beautify messy SQL into clean, readable, properly-indented queries. Pick your dialect — runs entirely in your browser.
How it works
Your SQL is parsed and re-printed with consistent indentation, keyword casing and line breaks using the open-source sql-formatter library, loaded and run in your browser.
100% client-side — nothing you paste is ever uploaded.
Frequently asked questions
Which SQL dialects are supported?
Standard SQL, PostgreSQL, MySQL, SQLite, BigQuery and SQL Server (T-SQL). Pick the one that matches your database for the most accurate formatting.
Is my query sent anywhere?
No. Formatting happens entirely in your browser, so it's safe to paste sensitive queries.