Browser processing Input is processed on your device. Privacy & storage

SQL Formatter

Turn dense SQL into clean, readable queries — with keyword casing, indentation and clause alignment across 10 dialects. Formatting happens in place.

SQL editor — input and result share one box

What it does

The formatter splits your query at clause boundaries (SELECT / FROM / WHERE / GROUP BY / ORDER BY), indents subqueries and JOIN ... ON expressions, normalizes comma lists, and standardizes keyword casing. It runs on the widely-used sql-formatter engine, entirely in your browser. Every action applies to the current editor content — chain Format → change dialect → Format again, and Undo always takes you one step back.

FAQ

Will formatting change my query's meaning?

No — whitespace and casing of unquoted identifiers do not affect SQL semantics. String literals and quoted identifiers are preserved exactly.

Can it handle multiple statements?

Yes, semicolon-separated statements are formatted one after another.

Is my SQL uploaded?

No. Formatting runs entirely in your browser — safe for proprietary schemas.