SQL Formatter

Prettify and normalise SQL across dialects with configurable keyword case and indentation.

Input
What it does

Formats and normalises SQL for nine dialects, including Standard SQL, PostgreSQL, MySQL, SQLite, SQL Server, BigQuery, Snowflake, MariaDB, and Oracle PL/SQL. Reindents clauses, breaks long statements onto readable lines, and lets you set keyword case and indent width. Handles multiple semicolon-separated statements in one paste.

How to use it

Paste a query or a batch of statements into the input, pick the dialect that matches your database, and adjust keyword case, indent width, or spacing between queries. The formatted SQL appears instantly with a copy button, and the URL updates so you can share exactly what you see.

Why this one

Most online SQL formatters cap how much you can paste, run ads next to the output, or push a signup wall after a few uses, and all of them send your query to a server first. This one runs the formatter locally in your browser: your files and inputs never leave your device, there is no length cap, and no ads.

FAQ
Which SQL dialects are supported?
Standard SQL, PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), BigQuery, Snowflake, MariaDB, and Oracle PL/SQL. Pick the one that matches your database for dialect-specific syntax like PostgreSQL casts or T-SQL square-bracket identifiers.
Does it validate or run my SQL?
No. It only reformats whitespace and casing, it does not check the query against a schema or execute it, so a formatted query can still fail at the database if the SQL itself is wrong.
Is my query uploaded anywhere?
No, your files and inputs never leave your device. Formatting happens entirely in your browser.