Processed locally — your file never leaves your device
SQL Formatter
Pretty-print SQL queries with dialect-aware formatting — entirely in your browser.
How it works
- Paste a SQL query, or open a file.
- Choose the SQL dialect that matches your database.
- Click Format to pretty-print it locally.
Frequently asked questions
- Is my SQL uploaded or executed anywhere?
- No. This only reformats whitespace, casing and indentation — it never parses your SQL into an execution plan, connects to a database, or runs it.
- Which SQL dialects are supported?
- Standard SQL, MySQL, PostgreSQL, SQLite, MariaDB, and SQL Server (T-SQL) — pick the one matching your query's syntax for the most accurate formatting.
- Can I open a file instead of pasting?
- Yes, there's an Open file button, or you can paste text directly.