SQL Formatter

Workspace

SQL

Input

Result

Formatted SQL

0 characters
Statements
0
Types
Comments
0
Parameters
None
Size
0 bytes
Help

Guide

Format SQL for readability or minify it for compact storage and transfer. Select the closest dialect so keywords, identifiers, placeholders, and statement layout are handled consistently.

How to use

  1. Paste or open SQL, choose a dialect, then Format or Minify.
  2. Review the result and warnings, then copy or download it.
Help

FAQs

Does this run or validate SQL?

No. It formats source text and does not connect to a database.

Which SQL dialects are supported?

Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server, Oracle, BigQuery, Snowflake, Redshift, and Spark SQL.