🗄️
SQL Formatter
Format & beautify SQL queries
About SQL Formatter
ORM-generated SQL is unreadable. Query copied from a log is one long line. This tool adds proper indentation, keyword casing, and clause alignment so you can actually understand what a query is doing.
Select the dialect (MySQL, PostgreSQL, SQLite, SQL Server) for better keyword handling. For most queries it makes no difference, but dialect-specific syntax is handled correctly.
Runs entirely in the browser — no query content is sent anywhere. Useful for working with production schemas or sensitive data without sending it to a third-party service.
Common Use Cases
- →Reading SQL pulled from database logs or monitoring dashboards
- →Cleaning up ORM-generated queries when debugging N+1 problems
- →Preparing queries for documentation or code reviews
- →Making a colleague's undocumented 80-line query readable