Pronto Arquivo
☰

SQL Formatter

Turn one-line SQL queries into readable code, in your database’s dialect.

  • Never leaves your device
  • No sign-up

Quick answer: To format SQL, paste your query and pick the database: the code comes out with indentation, line breaks and UPPERCASE keywords (or your preferred style). Use Minify to one line to go the other way.

How to do it in 3 steps

  1. 1Paste the SQL query.
  2. 2Pick the database and style.
  3. 3Copy the formatted SQL.

Why use Pronto Arquivo

Many databases

MySQL, PostgreSQL, SQL Server, Oracle, SQLite and BigQuery.

Configurable style

Keywords in uppercase or lowercase, 2- or 4-space indent.

Minify

One line to paste into code or logs.

Private

Queries with internal data never leave the browser.

Guides

Code review

Formatted SQL makes JOINs and WHERE conditions easy to review and helps you catch logic errors.

Frequently asked questions

How do I format a SQL query?

Paste the SQL and pick the database: the result comes out indented.

Does it work with MySQL and PostgreSQL?

Yes, plus SQL Server, Oracle, SQLite and BigQuery.

Does the tool run my SQL?

No, it only formats the text.

Is my query uploaded?

No.

More tools