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.

FAQ