Quicker

SQL Formatter

Free online SQL formatter and beautifier. Formats SELECT, INSERT, UPDATE, DELETE, and more. Uppercases keywords, adds proper indentation, and puts each clause on its own line — all in your browser.

Indent

SQL Input

Paste SQL above to format it.

Share:B!

How to Use

  1. Paste your SQL

    Paste any raw or minified SQL query into the input box. Formatting is applied automatically as you type.

  2. Adjust options

    Set the indent size (2 or 4 spaces) and choose whether to uppercase SQL keywords like SELECT, FROM, WHERE.

  3. Copy the result

    Click Copy to copy the formatted SQL. Paste it into your editor, query tool, or documentation.

FAQ

The formatter handles standard SQL (SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP) and common extensions used in MySQL, PostgreSQL, SQLite, and SQL Server. Dialect-specific syntax is passed through unchanged.

Yes. JOINs are placed on separate lines and AND/OR conditions are indented. Subqueries inside parentheses are kept inline for readability — the formatter focuses on top-level clause structure.

Yes. Content inside single quotes, double quotes, and backtick identifiers is treated as opaque and is never modified. SQL comments (-- and /* */) are also passed through unchanged.

Yes, completely free. All formatting runs in your browser with no server involved — your SQL is never sent anywhere.