SQL Formatter

Format, beautify, and minify SQL instantly. Your queries never leave your browser.

Input SQL

Formatted Output

Lines
0 → 0
Statements
0
Characters
0 → 0
Status
Formatted

How it works

  1. 1

    Paste

    Add a query or load the included sample.

  2. 2

    Customize

    Choose casing, indentation, and dialect.

  3. 3

    Export

    Copy or download the formatted SQL.

Frequently asked questions

Is my SQL uploaded?

No. Formatting happens entirely in your browser.

Does the formatter execute queries?

Never. It only restructures text and does not connect to a database.

Which SQL dialects are supported?

The formatter handles common Standard SQL, PostgreSQL, MySQL, SQLite, and SQL Server syntax without changing query semantics.

Copied SQL