SQL Formatter
Format and beautify SQL queries
Enable JavaScript to use the interactive tool.
How to use this tool · examples & limitations
Format and beautify SQL queries.
Getting a reliable result
Start with a short valid snippet and inspect the formatted or transformed output before copying it into your project.
Limitations to check
Formatting does not prove that a program is correct or secure. Run the result through your project's compiler and tests.
For network services, accounts and optional usage records, see our privacy policy.