What is SQL Formatter?
Tidy up a query crammed onto one line: uppercase keywords, add line breaks, and indent it properly. Pick a dialect such as MySQL, PostgreSQL, Oracle PL/SQL, or SQL Server.
How to use
- 1
Paste your SQL.
- 2
Choose the dialect, indentation, and keyword case.
- 3
Copy the formatted query.
Use cases
Reading query logs
Make a long query from ORM logs easy to read.
Code review
Normalize query style before a review.
FAQ
Is my data saved or sent anywhere?+
No. Everything is processed in your browser and nothing is saved or sent.