Home / Developer Tools / SQL Formatter

SQL Formatter

Format SQL queries with uppercase keywords and clean indentation.

How to use

  1. Paste your query.
  2. Click format.
  3. Copy the readable SQL.

Frequently asked questions

Which SQL dialects work?

Standard SQL formats well, which covers most MySQL, PostgreSQL and SQLite queries.

Related tools

  • YAML Formatter — Re-indent and normalize YAML documents.
  • YAML Validator — Check YAML syntax - catch indentation errors fast.
  • YAML ↔ JSON — Convert YAML to JSON and JSON to YAML.
  • XML ↔ JSON — Convert XML to JSON and JSON back to XML.
  • CSV ↔ JSON — Convert CSV to a JSON array and JSON back to CSV.
  • CSV ↔ XML — Convert CSV rows to XML elements and back.

See all developer tools