SQL Formatter
Turn a dense or minified SQL query into a readable, consistently formatted one, with dialect-aware formatting.
Formatting happens entirely in your browser — your query is never uploaded anywhere.
Processing happens locally in your browser. Nothing you enter is uploaded.
How It Works
Choose your SQL dialect, paste your query, then click Format.
Example
"select id,name from users where active=1" formats to a multi-line query with SELECT, FROM and WHERE each on their own line, in uppercase.
Frequently Asked Questions
- Which SQL dialects are supported?
- Standard SQL, MySQL, PostgreSQL, SQLite, MariaDB and SQL Server (T-SQL).
- Is my query uploaded anywhere?
- No — formatting happens entirely in your browser.
Related Tools
JSON Formatter
Editor's pickFormat, validate, and beautify JSON with proper indentation.
Fake Data Generator
Editor's pickGenerate rows of realistic synthetic test data (names, emails, dates, numbers…) as JSON, CSV, XML, Python, SQL or YAML.
Base64 Encoder / Decoder
Related toolEncode text to Base64, or decode Base64 back to plain text.
Color Converter
Related toolConvert between HEX and RGB color formats.
CSS clamp() Calculator
Related toolGenerate a fluid CSS clamp() value that scales between a minimum and maximum size across viewport widths.
curl Command Generator
Related toolBuild a curl command from a method, URL, headers and body.