Skip to content

SQL Formatter

Beautify or minify SQL with dialect support

Features

  • Support 6 dialects including MySQL, PostgreSQL, SQLite
  • Beautify or minify with one click
  • Selectable keyword case (upper/lower/preserve)
  • Real-time preview of formatted output
  • All processing done locally in browser

How to Use

  1. 1Enter or paste the SQL to format
  2. 2Select dialect and keyword case
  3. 3Click Format or Minify
  4. 4Copy or download the result

FAQ

Which SQL dialects are supported?

MySQL, PostgreSQL, SQLite, BigQuery, TSQL, and generic SQL.

Is my SQL uploaded to a server?

No. All formatting is done locally in your browser. Your SQL never leaves your device.

What is the difference between format and minify?

Format beautifies the code structure for readability; minify removes comments and excess whitespace to reduce size.

Related Tools