About the SQL Query Formatter
SQL Query Formatter is a free browser-based developer tool from Convertify. Format messy, single-line SQL into clean, properly indented queries — supports MySQL, PostgreSQL, SQLite, SQL Server and more. Everything runs instantly with no file upload, no account, and no usage limit.
Frequently Asked Questions
Does formatting change my query logic?
No — only whitespace, line breaks and indentation are changed. The tables, columns, conditions and keywords in your query stay exactly the same.
Why does the dialect setting matter?
Different databases have dialect-specific syntax (like SQL Server's TOP or PostgreSQL's LIMIT/OFFSET) that a generic formatter could misread. Picking the right dialect ensures those clauses format correctly instead of breaking.
What's the difference between "As Typed" and "UPPERCASE" keyword case?
"As Typed" leaves your keywords (SELECT, FROM, WHERE...) exactly as you wrote them; "UPPERCASE" normalizes every SQL keyword to uppercase, a common style convention.
Is my query sent to a server?
Yes, briefly — formatting runs through the sql-formatter library on our server, the actual engine doing the parsing. Your query is processed for that one request only and never logged or stored.