Skip to main content

SQL Formatter

Automatically format SQL queries with proper indentation and keyword alignment. Supports MySQL, PostgreSQL, SQLite syntax and subqueries.

Indent:
Share this tool
📖

How to Use

Step 1

Enter SQL

Enter SQL

Enter SQL query

Step 2

Format

Format

Keywords are auto-aligned

Step 3

Copy

Copy

Copy formatted SQL

Features

Uppercase Keywords

Uppercase keywords like SELECT, FROM

Indent Settings

Proper indentation for subqueries

Multi-DB Support

Support MySQL, PostgreSQL, SQLite syntax

FAQ

Standard SQL, MySQL, PostgreSQL, SQLite basics.