SQL Formatter
Beautify SQL queries with consistent indentation.
Runs in your browser Works offline No uploads, no sign-up
SQL input
Formatted
How to use the SQL Formatter
Format messy SQL for readability. Dialect-aware formatting when possible, fully offline.
- 1Paste a SQL query.
- 2Choose a dialect: Standard SQL, MySQL, PostgreSQL, T-SQL or SQLite.
- 3Format to get consistent indentation and uppercase keywords, then copy.
Frequently asked questions
Does formatting change what my query does?
No. Only whitespace and keyword case change, so the query runs exactly the same.
Is my data uploaded anywhere?
No. Everything runs as JavaScript inside this browser tab. The site’s Content-Security-Policy blocks network requests to any other origin, so your input has nowhere to go. It also works offline once loaded.