Data Formatters & Converters Processed locally

SQL Formatter

Pretty-print SELECT, JOIN, CTE, and DDL for PostgreSQL, MySQL, SQL Server, BigQuery, Snowflake and more — with dialect-aware keyword casing and indentation. Risk & lint findings, parsed schema, bind parameters, and a minified variant sit in the extended view. Nothing is executed; it runs in your browser.

Auto-formats as you type. Ctrl+Enter to re-run.

Advanced options

How to use the SQL Formatter

Beautify long, ORM-generated, or copy-pasted SQL queries into clean, readable code with consistent indentation, keyword casing, and line breaks. The SQL Formatter supports PostgreSQL, MySQL, SQL Server (T-SQL), BigQuery, Snowflake, SQLite, and standard SQL — and parses CREATE TABLE statements into a column and relation view. Everything runs in your browser; queries never leave your machine.

What it does

When to use it

How to use it

  1. Paste your SQL into the editor.
  2. Pick the SQL dialect to get dialect-aware keyword handling.
  3. Choose keyword casing (UPPER recommended for readability) and indent size.
  4. The formatted SQL appears instantly; copy it, or switch Mode to Minify for a single-line form.
  5. For CREATE TABLE input, open the Analysis view to see columns, types, and relations.
  6. For building lists of values, hand off to the SQL IN Clause Builder; for joins, try the SQL Join Builder.

Tips & pitfalls

FAQ

Runs locally in your browser. No uploads. No analytics on pasted SQL.

Related guides