🗄️
SQL Formatter
Beautify and format SQL queries.
Loading tool…
How to use the SQL Formatter
- 1Paste your SQL query into the box.
- 2Pick the SQL dialect if needed.
- 3Click Format, then copy the tidied, indented SQL.
About the SQL Formatter
Free SQL formatter — paste messy SQL and get clean, indented, readable queries instantly in your browser. Supports standard SQL, MySQL, PostgreSQL and more. Private, no upload.
Part of our Developer Tools collection. Browse all tools.
Frequently asked questions
- Are my files uploaded to a server?
- No. This tool runs entirely in your browser — your files never leave your device, which makes it fast and completely private.
- Which SQL dialects are supported?
- Standard SQL plus popular dialects like MySQL, PostgreSQL, SQLite, SQL Server and BigQuery — pick yours for the most accurate keyword casing and formatting.
More Developer Tools
→
{ }
JSON Formatter
Format, beautify, minify and validate JSON.
→⚙️
Base64 Encode / Decode
Encode text to Base64 or decode it back.
→🔗
URL Encode / Decode
Percent-encode or decode URLs and query strings.
→#️⃣
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
→🆔
UUID Generator
Generate random version-4 UUIDs.
→⏱️
Unix Timestamp Converter
Convert between Unix timestamps and dates.