SQL Formatter

Runs locally

Beautify SQL statements with proper indentation, dialect support and keyword casing.

Loading tool…

This tool runs locally in your browser — your content is never uploaded to a server.

How to use

  1. 1.Paste your SQL statement into the input box.
  2. 2.Pick a dialect (standard SQL, MySQL, PostgreSQL, SQLite…).
  3. 3.Click “Format” to uppercase keywords and indent by clause, or “Minify” to strip whitespace.
  4. 4.Click “Copy” to save; unparsable syntax is kept as-is with a notice.

FAQ

Related tools