ZYBERMART

Install ZYBERMART

Open every tool from your home screen or dock, in its own window. Tools you've used also work offline.

SQL Formatter

Format SQL queries so they’re easy to read, in MySQL, PostgreSQL, SQL Server, SQLite, Oracle, BigQuery and more, or minify them to one line.

How to format SQL

  1. Paste your query. Several statements separated by semicolons are fine.
  2. Pick your database’s dialect and how keywords should look.
  3. Choose Format for readable SQL, or Minify to put it on one line.

Why format SQL?

  • Each clause (SELECT, FROM, WHERE, JOIN) on its own line makes long queries easy to read and review.
  • Consistent formatting keeps diffs in code review small and clear.

Frequently asked questions

Which SQL dialects does it understand?

Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), Oracle PL/SQL, BigQuery, Snowflake, Redshift and Spark SQL. Pick yours so dialect-specific syntax, like PostgreSQL casts or T-SQL brackets, is kept intact.

Does it change what my query does?

No. It only changes spacing, line breaks and, if you choose, the case of keywords. Table names, values and strings are kept exactly as they are.

Is my SQL sent anywhere?

No. Formatting happens in your browser, so it's safe for queries with table names or data you'd rather keep private.

Sign in to ZYBERMART

Keep your CVs, invoices, flashcards, notes and saved tools on all your devices. It's free, and the tools work the same without an account.

or

No password needed. By signing in you agree to the terms; see how we handle your data in the privacy policy.

Your account

Signing out keeps a copy of your work in this browser. On a shared computer, clear your browser data afterwards.

What do you want to create?

Designs

Social media

Documents

Study

Edit

See all 241 tools