SQL formatter

Processed in this browser

Text limit: 2000000 characters

This tool never uploads your input.

A one-line query from a log. Format it. Execution stays in your client. XML/JSON have their own formatters.

On-call: a single-line SELECT in CloudWatch. You want newlines, not a SQL runner in the browser. This page indents. It will not explain a query plan.

Other formatters: JSON, XML, code beautify. Diff two revisions on text diff.

One-line SELECTs from alerts

A monitoring snippet that needs newlines. We do not connect, EXPLAIN, or scan for injection. Dialects fold differently. Take the pretty text back to your client to run it.

How to use it

  1. Paste one statement (or a small batch).
  2. Format. If it fails, the text may not be SQL.
  3. Copy back to your client and run it there.

Honest limits

Not a linter that knows your schema. Not EXPLAIN. Not a data exfil tool we will ever add.

FAQ

Will you run this on my warehouse?

No. There is no connection string and no network to Postgres/Snowflake.

MySQL vs Postgres vs T-SQL?

Keyword indent is generic. Vendor functions may wrap poorly. Proofread.

Can it parameterize or prevent injection?

No. Formatting is not a security control.

Huge dumps?

Memory-limited. Format the statement you care about, not a 200 MB dump.

Is the query uploaded?

No. Still strip secrets from the comment header before you paste anywhere.

Related tools