DEVELOPER TOOLS · LOCAL ONLY

SQL Formatter

Break single-line SQL onto keyword-aligned lines for reading and review.

Up to 200,000 characters. Token-based layout only; it never parses SQL semantics, connects, or runs the query.

Format
1 lines · 90 bytes
0 lines · 0 bytes
Run the tool to see the result

Up to 200,000 characters. Token-based layout only; it never parses SQL semantics, connects, or runs the query.

How to use

Break single-line SQL onto keyword-aligned lines for reading and review.

Paste a one-line query pulled from a log or an ORM and it breaks at SELECT, FROM, WHERE, JOIN, GROUP BY, and ORDER BY, with AND and OR indented under their clause. Your original keyword casing is preserved and string literals are untouched. Formatting happens entirely in the browser; the query never reaches a database.

Limits and privacy

Up to 200,000 characters. Token-based layout only; it never parses SQL semantics, connects, or runs the query.

Everything runs inside this browser. Your input is never uploaded, stored, or written to the URL or any log.