What is the SQL Formatter?
Long SQL queries on one line are hard to read and debug. This SQL formatter puts each clause (SELECT, FROM, JOIN, WHERE, GROUP BY, ORDER BY) on its own line, indents columns and conditions, and converts keywords to UPPERCASE for readability. Switch to Minify to put a query back on one line.
Strings and comments are kept exactly as they are. It works with common MySQL, MariaDB, PostgreSQL, SQLite and SQL Server syntax.
How to use the SQL Formatter
- Paste your SQL query.
- Choose keyword case, indent and mode.
- Copy the formatted SQL.
Frequently asked questions
Does it change my query logic?
No, only whitespace and keyword case change.
Does it validate SQL?
No – it formats text; run the query in your database to check for errors.
Is my SQL sent to a server?
No, formatting happens in your browser.
Is it free?
Yes.
This sql formatter is 100% free, needs no signup and works on phones, tablets and computers. Your data is processed in your browser and never uploaded.
Last updated: · By NodifyTech