SQL Formatter

Pretty-print or minify SQL with dialect-aware formatting — PostgreSQL, MySQL, SQLite, and more.

100% In-Browser & Private — your data never leaves this device

PeachTools Pro

Batch processing, unlimited files, ad-free.

Join waitlist
Loading tool...

How to use the SQL Formatter

  1. Paste a SQL query.
  2. Pick a dialect if needed.
  3. Choose Pretty print or Minify.
  4. Copy or download the result.

FAQ

Is my SQL uploaded?
No. Formatting runs entirely in your browser.

Related tools

More private, in-browser utilities you might need next.

Looking for more? Browse all developer tools · All tools