SQL Formatter

Beautify or minify SQL queries locally. Choose indent, keyword case, and dialect — nothing leaves your browser.

About SQL Formatter

Beautify hard-to-read SQL into clean, consistently indented statements, or minify queries for compact storage. Control indentation, keyword casing, and dialect to match your style.

Features

  • Beautify SQL with consistent indentation
  • Choose keyword casing (upper or lower)
  • Support for common SQL dialects
  • Minify queries into a compact form

How to use

  1. 1Paste your SQL query into the editor.
  2. 2Pick indentation, keyword case, and dialect.
  3. 3Copy or download the formatted query.

Frequently Asked Questions

Which SQL dialects are supported?
Common dialects such as standard SQL, PostgreSQL, and MySQL are supported with adjustable formatting options.
Is my query sent to a server?
No. Formatting runs locally in your browser, so your queries remain private.
Can I minify SQL?
Yes. Switch to minify mode to collapse a query into a compact single-line statement.

Related Formatters

Explore other tools