SQL Formatter & Beautifier
Format and beautify SQL for 10 dialects including PostgreSQL, MySQL, SQLite, BigQuery, Snowflake, and T-SQL. Uppercase keywords, custom indent.
Runs 100% in your browser — nothing is uploaded.
Formatted
Frequently asked
Which dialects are supported?
Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, BigQuery, Redshift, Snowflake, T-SQL (SQL Server), and DB2. Pick the right one — it affects keyword recognition and specific syntax.
Does it validate my SQL?
Only lightly — enough to format. For proper validation, run the query against your database or use its EXPLAIN command.
Is my query uploaded?
No. Formatting runs in your browser via the sql-formatter library. Nothing leaves your device.
Related tools
- JSON FormatterFormat, validate, and minify JSON in your browser. See parse errors with line/co
- Regex TesterTest JavaScript regular expressions against any string with live match highlight
- Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal. Supports huge n
- Cron BuilderPick a preset or enter your own fields to build a cron expression. Includes a pl
- CSS Beautifier & MinifierBeautify minified CSS with proper indentation, or minify pretty CSS to a single
- Hash GeneratorInstantly compute MD5 and SHA-family hashes of any text. All hashing happens in