SQL Formatter
Format and beautify SQL queries with keyword casing and indentation. Supports standard SQL, PostgreSQL, and MySQL.
100% private
SQL input
Formatted SQL
Auto-playing walkthrough — paste input, click format sql, see the result
Result appears here after processing…How to use SQL Formatter
- Paste your SQL query into the input panel.
- Choose a SQL dialect if needed.
- Copy the formatted SQL output.
Frequently Asked Questions
- Does this execute SQL?
- No. Formatting happens entirely in your browser. Nothing is sent to a database.