// Developer Tool

SQL FORMATTER

Paste any SQL query and instantly beautify it into clean, readable, indented code — or minify it back to a single line. String literals and quoted identifiers stay intact. Everything runs entirely in your browser.

// Input
Indent size
// Output
Lines
0
Characters
0
Mode
Formatted SQL will appear here…

Tip: the formatter is resilient — it will never crash on malformed SQL, it just does its best to lay out what it can find.