Skip to content
Kordu Tools

SQL Formatter

Format and beautify SQL queries with dialect support for MySQL, PostgreSQL, SQLite, and more.

Indent:
Keywords:

 

Loading...

How to use

  1. 1

    Paste your SQL

    Paste your SQL query into the input panel on the left.

  2. 2

    Select your SQL dialect

    Choose the SQL dialect that matches your database — MySQL, PostgreSQL, SQLite, SQL Server, and more.

  3. 3

    Format or minify

    Click Format to beautify your SQL with indentation and keyword casing, or Minify to compress it to a single line.

  4. 4

    Copy the result

    Click Copy to copy the formatted SQL to your clipboard.

Frequently asked questions

Which SQL dialects are supported?
The formatter supports MySQL, PostgreSQL, SQLite, SQL Server (T-SQL), Oracle PL/SQL, MariaDB, BigQuery, Snowflake, Spark, Redshift, Hive, and several more. Select the appropriate dialect for the most accurate formatting.
Does formatting change the meaning of my SQL?
No. Formatting only changes whitespace, indentation, and optionally keyword casing. It does not alter the logic or structure of your query.
Is my SQL sent to a server?
No. All formatting is done in your browser. Your SQL queries never leave your device.
Can I minify SQL as well as format it?
Yes. The Minify button compresses your SQL to a single line, useful for embedding queries in application code or configuration files.

Format messy SQL queries into clean, readable code with configurable

indentation, keyword casing, and dialect-specific syntax. Supports

MySQL, PostgreSQL, SQLite, SQL Server, Oracle PL/SQL, BigQuery,

Snowflake, and many more. Also minifies SQL to a single line for

embedding in code. All formatting runs in your browser with no

data sent to any server.

Related tools