SQL Formatter

Format SQL for PostgreSQL, MySQL, SQL Server, Oracle and more.

Runs in your browser: data never leaves your device. Free, no sign-up. Also known as: sql beautifier, query, postgres, mysql.

How to use SQL Formatter

  1. Paste your input, open a file, or press Sample to see an example.
  2. Pick a mode or adjust the options; results update instantly.
  3. Use Copy or Download to take the result with you.

Frequently asked questions

What does the SQL Formatter do?
Format SQL for PostgreSQL, MySQL, SQL Server, Oracle and more.
Is the SQL Formatter free?
Yes. It is completely free, with no sign-up, no watermark and no usage limits.
Is my data safe?
Yes. This tool runs entirely in your web browser. Your text and files are never uploaded to a server, stored or logged.
Does it work on mobile?
Yes. It works in any modern browser on Windows, macOS, Linux, Android and iOS, with nothing to install.
What other data & code tools are there?
Runeforge has 14 data & code tools in The Codex, plus 91 more tools across other categories.

More from The Codex