SQL Formatter

Format and minify SQL in the browser. Uppercase or lowercase keywords, clause line breaks, column wrapping, import and download.

PrivateIn your browserInstantUnlimited

1 lines · 10 keywords · 160 chars (min 160)

Light formatter — not a full SQL parser. Uppercases keywords and breaks major clauses. Minify strips comments and extra whitespace. Commas inside string literals may wrap incorrectly.

How it works

1

Paste or import SQL

Paste a query or import a .sql file up to 5 MB. One-line queries from logs and ORMs work well.

2

Choose format options

Pick UPPER, lower, or as-is keyword casing and 2 or 4 space indent for wrapped columns. Format breaks SELECT, FROM, WHERE, JOIN, GROUP BY, and more onto new lines.

3

Format, minify, export

Click Format or Minify (counts toward the daily limit). Copy the result or download query.sql.

Why format SQL?

Queries copied from ORMs, BI tools, and production logs often arrive as one long line. Readable formatting makes joins, filters, and aggregations easier to review in code review and incident debugging.

Why use this tool

  • Keyword case: UPPER, lower, or preserve
  • Clause line breaks and column wrapping
  • Minify with comment stripping
  • Import .sql files
  • Query stats
  • Unlimited — no daily cap

Questions

Is this a full SQL parser?

No. It normalizes whitespace, adjusts keyword case, and breaks on common clauses. Complex dialect-specific syntax may need manual touch-up.

What does Minify do?

Removes -- and /* */ comments and collapses whitespace to a single line — useful for logs or compact storage.

Which SQL dialects are supported?

Common ANSI-style SELECT/INSERT/UPDATE/DELETE keywords. Vendor extensions (e.g. RETURNING, TOP) are left as-is.

Will formatting change query results?

Only whitespace and keyword casing change. Identifiers, literals, and logic stay the same.

Is my SQL sent to a server?

No. Formatting runs entirely in this tab.

Is there a daily limit?

No. This tool has no daily cap.

If Easy24 helped, buy a coffee

Tools stay free in your browser. One-time thanks via Kreosus. Turkish cards work.

Buy a coffee

Similar Developer tools

See all