100% Free · No limits

SQL Formatter
& Beautifier

Format, beautify, and minify SQL with syntax highlighting and keyword uppercasing. Supports SELECT, INSERT, UPDATE, JOINs, subqueries, and window functions. All client-side.

Try:
INPUT
FORMATTED
Output will appear here
Supported SQL Syntax
SELECT / FROM / WHEREJOINs (INNER, LEFT, RIGHT, FULL, CROSS)GROUP BY / ORDER BY / HAVINGSubqueriesWindow FunctionsCASE / WHEN / THENINSERT / UPDATE / DELETECREATE / ALTER / DROPCTEs (WITH)UNION / UNION ALL
Smart Formatting
Automatic indentation, keyword uppercasing, and clause-aware line breaks. Makes any SQL readable in seconds.
Syntax Highlighting
Color-coded keywords, strings, numbers, and comments. Spot issues at a glance with visual SQL parsing.
100% Client-Side
Your data never leaves your browser. No server calls, no logging, no tracking. Completely private.