ToolsPricingRoadmapBlogAbout Get Pro
// free online tool

SQL Formatter & Beautifier

Paste messy SQL and get clean, readable, properly indented queries instantly. Supports PostgreSQL, MySQL, SQLite and BigQuery dialects.

Offline-first PostgreSQL MySQL SQLite Syntax highlight 100% private Free forever
input0 lines
↓ drop to load

// drag a file here to load it

formatted output
// formatted SQL appears here
Free plan: 25KB input limit Upgrade for 500KB →
Paste SQL above and click Format

Need to format larger SQL files?

Free plan supports 25KB. Upgrade to Pro for 500KB input, tool history, saved configs, and higher limits across all tools.

Get Pro →

Instant formatting

Paste minified or messy SQL and get properly indented, readable output in milliseconds.

🎨 Syntax highlighting

Keywords, functions, strings, and operators are color-coded so you can scan your query structure at a glance.

🗄 Multi-dialect support

Handles PostgreSQL, MySQL, SQLite, and BigQuery syntax including dialect-specific keywords and functions.

📦 Minify SQL

Strip all whitespace and comments to produce compact SQL for embedding in code or API requests.

🔒 100% private

Your queries never leave your browser. Safe to use with real table names, column names, and production queries.

No login needed

Just paste and format. No account, no signup, no email required. Free forever.