SQL Formatter
Paste messy SQL, pick a dialect and formatting options, and get a clean, readable query. Runs entirely in your browser.
How to use:
- Paste your unformatted SQL query in the input box
- Select your target SQL dialect (PostgreSQL, MySQL, SQLite, SQL Server)
- Choose keyword case, indentation style, and comma position
- Click "Format SQL" to beautify your query
- Copy the formatted result with the copy button
Input
Formatted
Formatted SQL will appear here.