SQL Formatter
Format SQL queries with readable indentation, for standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, and SQL Server.
Runs on your device.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Choose the SQL dialect.
- Paste the query.
- Copy the output.
Good to Know
The tool only formats. It does not check the query against a database. Syntax that belongs to one dialect may not read with another.
Related Tools
- JSON Formatter and ValidatorPretty-print or minify JSON, or find its errors with the line and column.
- XML Formatter and ValidatorPretty-print XML with clean indentation, minify it, or check that it is well-formed. An error shows its line and column.
- YAML Formatter and ValidatorFormat YAML with even indentation or check that it is valid. Comments stay, and an error shows its line and column.