Skip to content
Local

Developer

SQL Formatter

Format SQL queries with one clause per line, or minify them to a single line.

Runs in your browser. Nothing leaves this device.

How to use SQL Formatter

  1. 1Paste your SQL query.
  2. 2Pick upper or lower case keywords and the indent.
  3. 3Copy the formatted query, or switch to Minify.

Questions

Which SQL dialects work?

Common SQL from MySQL, PostgreSQL, SQLite and SQL Server formats well. Strings, quoted names and comments are kept exactly as written.

Does it change what my query does?

No. Only spaces, line breaks and keyword case change. Minify also removes comments.

Is my query sent anywhere?

No. It is formatted by your browser on this device.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc