Skip to content
Toolbento

SQL formatter

Format SQL with clean indentation for PostgreSQL, MySQL, SQLite and SQL Server, or minify it to one line.

Everything stays on this device

SQL formatter runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Output
Dialect

Missing a feature or found a bug in SQL formatter? Tell me on X (@_andrewtran) or by email.

How to use SQL formatter

  1. Paste your SQL in the input pane.
  2. Choose the indentation and dialect, or choose Minify.
  3. Copy the result or download it as a .sql file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

Is my query run?

No. The text is only rearranged. Nothing connects to a database.

Does the dialect matter?

For most queries, no. It matters for features one database has and others lack, such as backtick names in MySQL or square brackets in SQL Server.

Esc

Loading tools