Developer
Developer

SQL Formatter

Paste a messy SQL query and get it back neatly indented and readable.

Private by design

Your inputs stay on your device and are not sent to our servers. Optional usage analytics does not receive your files or tool inputs.

Preparing tool

How to use SQL Formatter

  1. Paste your SQL or open a .sql file.
  2. Pick your database dialect, keyword case and indent.
  3. Copy the formatted SQL or download it. Syntax problems show the line and column.
Read the detailed guide →

What are the limits of SQL Formatter?

Formatting changes only spacing, line breaks and keyword case, never the meaning of a query. It does not run your SQL or check table and column names. Very unusual syntax may be rejected. Your SQL stays on your device.

YOUR BROWSER, YOUR CHOICE