SQL Formatter

Format and beautify SQL queries with proper indentation and keyword casing.

Auto capitalizeClean outputNo signup
Text stays on your device

Documentation

What is SQL formatting?

SQL formatting takes minified queries and adds proper indentation, line breaks, and keyword capitalization to make them easy to read.

When do you need it?

Long queries, ORM output, and minified SQL from tools are hard to read. Formatting makes them understandable at a glance.

How to use
  1. 1) Paste your SQL query into the input box.
  2. 2) Click the Format button to beautify.
  3. 3) Copy the result or download as a file.

FAQs

What is a SQL formatter?

A SQL formatter takes compact SQL and adds proper indentation, line breaks, and keyword casing to make it human-readable.

Why format SQL?

Formatted SQL is easier to read, debug, and maintain. It helps developers understand complex queries quickly.

Does this tool store my SQL?

No. All processing happens locally in your browser. Your queries are never uploaded or stored.

Is it free?

Yes. The SQL formatter is completely free with no signup or limits.

What keywords are capitalized?

SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, INSERT, UPDATE, DELETE, CREATE and other common keywords are auto-capitalized.

Privacy: All processing runs in your browser. Nothing is stored.