SQL Formatter

Format SQL queries with proper indentation, line breaks, and keyword capitalization. Supports SELECT, INSERT, UPDATE, DELETE, and DDL statements.

Advertisement

Examples

SQL format

Input:

SELECT * FROM users WHERE id=1

Output:

SELECT
  *
FROM
  users
WHERE
  id = 1

How to Use SQL Formatter

  1. 1Paste your SQL query
  2. 2Click Format SQL
  3. 3Copy formatted query

Frequently Asked Questions

Does it support all SQL dialects?

It supports standard SQL syntax compatible with MySQL, PostgreSQL, and SQL Server.