Neatbo.

SQL formatter

Format PostgreSQL-style SQL indentation and keywords.

Browser-local processingInputSQLOutputSQL textUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.

⌘ / Ctrl + Enter to run

or drag and drop it here

Files stay on this device. Your originals stay unchanged.

.sql · .txt

Up to 10 MiB per file · File limit: 1

    0 characters · 0 bytes
    Options

    Complete the required options first. You can keep the defaults for the rest.

    Preparing the tool…

    Before you start

    Format PostgreSQL-oriented SQL tokens while preserving quoted strings, identifiers, dollar-quoted bodies and comments. Formatting does not validate database semantics or execute a query.

    How to use this tool

    1. Paste content into “SQL input” or choose a local file.
    2. Confirm that your SQL uses PostgreSQL syntax before selecting “Format SQL”.
    3. Review the SQL text result, then use the available copy or download controls.

    Supported inputs and limits

    Pasted text is limited to 1 MiB. Only PostgreSQL-oriented syntax is supported; formatting does not validate the full SQL grammar. Review the result before using it.

    Worked example

    Example input

    select 'a  b', 1.25 from t where x=2;
    Example options
    {}

    Example output

    SELECT 'a  b',
      1.25
    FROM t
    WHERE x = 2;

    When something does not work

    Correct the reported syntax or range and run again. Formatting is not execution: scripts, SQL, expressions and pasted markup do not run against your system or a remote service.

    Frequently asked questions

    Are my files uploaded?

    No. Files and tool input are processed in your browser. Moving around the site can keep a temporary workspace in the same tab. Refreshing or closing the tab clears it, so download results you want to keep.

    What should I check in this result?

    Format PostgreSQL-oriented SQL tokens while preserving quoted strings, identifiers, dollar-quoted bodies and comments. Formatting does not validate database semantics or execute a query.

    Documentation & further reading

    Related tools