SQL Formatter
Pretty-print SQL queries for better readability. Runs entirely in your browser.
Formatted SQL appears here…FAQ
Which SQL dialects are supported?
The formatter handles standard SQL syntax that works across MySQL, PostgreSQL, SQLite, and SQL Server. Dialect-specific extensions are preserved but may not receive special formatting.
Does formatting change query behavior?
No. The formatter only modifies whitespace, capitalization of keywords, and indentation. The query logic remains identical.
Is my SQL query private?
Yes. All processing is done client-side — nothing is transmitted.
Related formatters
More free developer tools — all run in your browser