Skip to content
Tool Dock

PostgreSQL Formatter

Format PostgreSQL queries, casts and CTEs cleanly.

Options

Input

Waiting for input

Output

or press ⌘/Ctrl + Enter
  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

How to use it

  1. Paste one or more SQL statements.
  2. Pick the dialect (plain SQL works for most queries) and keyword case.
  3. Copy the formatted result.

Why Tool Dock

  • FastEverything runs on your own device, so there is no queue and no waiting for uploads.
  • PrivateYour files and text never leave the browser. Close the tab and they are gone.
  • Batch friendlyDrop several files at once and download each result, or all of them together.

Questions

Does the formatter change what my query does?

No. It only changes whitespace, line breaks and keyword case. Identifiers, strings and values are left untouched.

Why choose a dialect?

Dialects differ in keywords and syntax, for example T-SQL's TOP, PostgreSQL's :: casts or BigQuery's backticks. The right dialect formats those correctly; plain SQL is a safe default.

Is it safe to paste production queries?

Formatting runs entirely in your browser and nothing is sent to a server. Still, the share-link feature warns before you share text that contains credentials.

All tools