PixNudge

SQL formatter and beautifier

Format messy SQL queries into readable, indented code for MySQL, PostgreSQL, SQL Server, Oracle, SQLite, BigQuery and more, or minify SQL to a single line.

Input
Result

How it works

  1. 1

    Paste or type your input

    Paste text or code, type a value or open a file. Where a sample is offered, it shows how the tool works.

  2. 2

    Pick the options

    The result updates as you type. Switch modes or change the options to get exactly the output you need.

  3. 3

    Copy or download

    Copy the result to the clipboard with one click or download it as a file.

Why PixNudge

Nothing leaves your browser

Passwords, API keys, tokens, SQL queries and customer data are processed on your device and never sent to a server.

Instant results

There is no upload and no waiting: results appear while you type, even for large inputs.

Free, no sign-up

No account, no limits and no ads inside the tools. Bookmark the page and use it whenever you need it.

Frequently asked questions

Which SQL dialects are supported?

Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), Oracle PL/SQL, BigQuery, Snowflake, Redshift, Spark SQL, ClickHouse and DuckDB. Choose the dialect so that its special syntax is recognized.

Does formatting change what my query does?

No. Only whitespace, line breaks and, if you choose, the case of keywords change. Strings, identifiers and comments are kept exactly as written.

Is my query sent to a server?

No. The formatter runs in your browser, so queries containing table names or customer data stay private.

More free tools