SQL

SQL Formatter

+ minify

Beautify messy SQL queries into clean, readable format with syntax highlighting. Supports SELECT, INSERT, UPDATE, CREATE and more.

Examples:
Indent
SQL Input0 chars
Formatted Output
Formatted SQL will appear here...
Highlight:
Keywords
Strings
Numbers
Identifiers
Comments
✨
Smart Formatting
Each clause (SELECT, FROM, WHERE, JOIN) gets its own line with proper indentation.
🎨
Syntax Highlight
Keywords, strings, numbers, and comments are color-coded for easy reading.
⚡
Minify
Strip all whitespace for production use or minified query strings.