Free dialect-aware SQL formatter
SQL Formatter
Format SQL with dialect-aware rules, keyword casing, indentation, and query-spacing controls.
Developer Tools
Browser based
Runs on the current page
Copy-ready
Use the output where you work
No sign-in
Open the tool and get moving
Developer tool
Format SQL
Beautify SQL with dialect-aware tokenization and controls for casing, indentation, operators, and statements.
Output will appear here.
Output lines
0
Characters
0
Built for the task
Format, validate, encode, decode, and test.
Fast browser utilities for common implementation, debugging, and content-cleanup tasks.
More tools
Continue with related developer tools.
CSV ↔ JSON Converter
Convert CSV to JSON or JSON to CSV with header, delimiter, type-detection, and formatting controls.
YAML ↔ JSON Converter
Convert YAML to formatted JSON or turn JSON into readable YAML with configurable indentation.
JSON Formatter
Format, prettify, and minify JSON in the browser with instant syntax feedback.
Regex Tester
Build and test JavaScript regular expressions with live highlighting, match details, replacement previews, examples, and a guided syntax explanation.
JSON Validator
Validate JSON syntax, inspect parse errors, and view a clean formatted preview.
UUID Generator
Generate random UUID v4 values for tests, records, fixtures, and temporary identifiers.
FAQ
SQL Formatter questions.
Which SQL dialects are supported?
The formatter supports standard SQL plus popular dialects including MySQL, MariaDB, PostgreSQL, SQLite, SQL Server, BigQuery, Snowflake, Redshift, Spark, and others.
Does formatting change what my query does?
The formatter changes whitespace and selected letter casing. You should still review database-specific or dynamically generated SQL before running it.
Custom software