The SQL you edit stays in this browser. This page does not post a query, a table name, or a snippet to a server.

SQL formatter online

Online SQL formatter, minifier & dialect helper

Paste a query on the left. Format, minify, strip comments, or extract tables and columns on the right. Everything stays on this device.

The workbench needs JavaScript in this browser. Without it, you can still read the dialect notes and templates, but live formatting, extraction, and copy will not run.

Analytics templates

SQL input

Lines 5 · Chars 113

Formatted SQL

Tables
0
CTEs
0
JOINs
0
Keywords
0
Extracted tables & columns

Base tables

    CTE names

      Columns

        Questions

        Do I need an account?

        No. The formatter runs in this browser. There is no file to upload and no sign-in.

        Which SQL dialects are supported?

        PostgreSQL, MySQL, SQLite, BigQuery, and Snowflake. The tokenizer keeps dialect-specific quotes and operators, and the dialect helper can normalize identifier quotes and rewrite some casts and ILIKE predicates.

        Does formatting ever send my query to a server?

        No. Tokenizing, formatting, minifying, comment stripping, and extraction all run in this page. Copy and the .sql download also stay on this device.

        Will a converted query always run on the target engine?

        Not always. The helper is mechanical: quotes, ::type, ILIKE, and # comments. Warehouse-specific functions still need a human pass. Read the notes under the output before you paste the result into a console.

        Related documents and desks

        The formatter links official PostgreSQL, MySQL, SQLite, BigQuery, and Snowflake SQL references, and the jmforu.com catalog. Those are separate sites.