Developer tool

SQL Formatter

Format or minify SQL in your browser. Keywords are uppercased and major clauses get line breaks. Your query never leaves this device.

Paste SQL, then choose Format or Minify.

How to use the SQL formatter

Paste a query into the editor. Choose Format for readable keywords and clause line breaks, or Minify for compact SQL. Use Copy or Download when you are done. String literals and comments are left intact.

Frequently asked questions

What does an SQL formatter do?

It uppercases SQL keywords and starts major clauses such as SELECT, FROM, WHERE, JOIN, GROUP BY, and ORDER BY on new lines.

What is minified SQL?

Minified SQL removes unnecessary whitespace while keeping the same statement, including the contents of quoted strings.

Is my SQL uploaded or stored?

No. Formatting happens in your browser. Deskutil never receives the query.

Which SQL dialects are supported?

The rules are generic rather than engine-specific, so they work for everyday PostgreSQL, MySQL, SQLite, and similar queries.