Skip to content

SQL Formatter

Paste messy SQL and get a clean, indented, easy-to-review query.

Available nowNo account requiredDeveloper Tools

Input SQL

Formatted SQL

select id, name, email
FROM users u
LEFT
JOIN orders o
  ON o.user_id = u.id
WHERE u.active = true
  AND o.total > 100
ORDER BY o.total desc
LIMIT 20;

How to use SQL Formatter

  1. 1

    Provide the input

    Paste, type, or select the information requested by SQL Formatter.

  2. 2

    Choose your options

    Adjust the available settings for the output you need.

  3. 3

    Run and review

    Generate the result, check it for accuracy, then copy or download it if available.

About SQL Formatter

Paste messy SQL and get a clean, indented, easy-to-review query.

Use SQL Formatter when you need to format and beautify sql. Review the available options in the interface, process your input, and check the result before saving or copying it.