How to use SQL Formatter

Paste a messy query and get clean, consistently indented SQL — in the dialect you use.

  1. Paste your SQL.
  2. Pick the dialect, keyword case and indentation.
  3. Copy or download the formatted query.

Questions

Is my query sent anywhere?

No. Formatting happens entirely in your browser, so it’s safe for production queries.

Does it check that my SQL is valid?

It parses the query to format it and reports syntax it can’t understand, but it doesn’t run the query or check table names.

Ratings & reviews

No ratings yet. Signed-in users can rate this app.