SQL Formatter & Beautifier

Pretty-print SQL queries in your browser — keywords on their own lines.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

SQL formatter and beautifier

Paste a cramped one-line SQL query and get back a readable layout: each major clause — SELECT, FROM, WHERE, the JOIN family, GROUP BY, ORDER BY, LIMIT and more — on its own line, recognised keywords upper-cased, and AND/OR plus SELECT-list commas broken onto indented continuation lines.

It is privacy-first: the formatter is plain JavaScript that runs in your browser, so your query never leaves your device. String literals and quoted identifiers are preserved exactly — only layout and keyword casing change.

Ad placeholder (rectangle)