SQL Formatter

Format and beautify SQL queries

SQL Input

Formatted SQL

Formatted SQL will appear here...

Options

Supported

  • SELECT, INSERT, UPDATE, DELETE
  • JOINs (LEFT, RIGHT, INNER, etc.)
  • Subqueries
  • Common aggregate functions
  • CASE expressions

What is a SQL Formatter?

A SQL formatter beautifies raw SQL queries with proper indentation, keyword capitalization, and line breaks. Supports SELECT, INSERT, UPDATE, DELETE, and complex JOIN queries. Makes queries readable for code reviews and documentation.

Frequently Asked Questions

Which SQL dialects are supported?

Standard SQL, MySQL, PostgreSQL, and SQL Server syntax are supported.

Does it capitalize keywords?

Yes. SQL keywords like SELECT, FROM, WHERE are automatically uppercased.

Is my query data safe?

Yes. Formatting happens locally in your browser. No data is sent to any server.