SQL Formatter & Beautifier
Format and beautify raw SQL queries for maximum readability.
Features
- Beautifies and indents SQL queries with a single click
- Supports multiple dialects: MySQL, PostgreSQL, SQLite, T-SQL
- Keyword capitalization options (UPPER, lower, preserve)
- Minify mode to compress SQL into one line
- Runs entirely in your browser
Use Cases
- Making a copy-pasted SQL query from logs readable
- Cleaning up auto-generated SQL from ORMs before code review
- Documenting SQL queries in readable format
How to Use
- Paste your raw SQL query into the input area.
- Select your SQL dialect (MySQL, PostgreSQL, etc.).
- Click 'Format' — the result appears instantly in the output.