Format and beautify SQL queries
SQL Formatter breaks a fixed list of SQL keywords (SELECT, FROM, WHERE, JOIN, and about 20 others) onto new lines and adds a line break after every comma, entirely in your browser — nothing is uploaded to a server. It's a simple keyword-matching pass, not a real SQL parser, but it is string-aware: string literals ('...') and double-quoted identifiers, including ones with a doubled-quote escape like 'it''s', are scanned separately from the surrounding SQL, so a keyword or comma inside one is copied through untouched instead of getting an unwanted line break.
Is SQL Formatter free to use?
Yes, it's completely free with no signup required.
What SQL dialects does it support?
It matches a fixed list of common keywords (SELECT, FROM, WHERE, JOIN, GROUP BY, and similar) that are shared across most SQL dialects, but it doesn't parse or validate dialect-specific syntax.
Can I customize indentation size or keyword case?
No, there are no formatting options — the line-break behavior and spacing are fixed.
Is my SQL uploaded to a server?
No, formatting happens entirely in your browser.