Skip to main content
Back to free tools
🧮

Utility

SQL Formatter

Beautify and indent your SQL queries.

SQL input

Formatted SQL

SELECT id,
  name,
  email
FROM users u
  INNER
JOIN orders o
ON o.user_id = u.id
WHERE u.active = 1 AND o.total > 100
ORDER BY o.created_at desc
LIMIT 50

About this tool

Paste a messy SQL query and get a clean, readable version with keywords uppercased and clauses on their own lines.

What it does

  • Keyword uppercasing
  • Clause line breaks
  • Column indentation
  • Copy output

Use cases

  • Code reviews
  • Database dev
  • Documentation

FAQ

Which SQL dialects are supported?

General ANSI SQL keywords. Vendor-specific syntax passes through unchanged.

Does it validate the query?

No — this tool only formats. Use your DB client to validate execution.