SQL formatter

Turn a one-line query into clean, readable SQL - every clause on its own line.

Dialect

Keywords

Free · No sign-up · Your files are processed on your device and never uploaded

How to use SQL formatter

  1. Paste or type…
    1

    Paste or type

    Put your content in the box - or try the example.

  2. Result appears instantly
    2

    Watch the result

    The result updates as you type - choose options above if needed.

  3. TXTCopy / Download
    3

    Download the result

    Ready in seconds. Your file never left your device.

Features

  • 7 dialects.
  • UPPER or lower case keywords.
  • Handles joins, subqueries and CTEs.

Private by design

Everything runs in your browser. Nothing you paste is uploaded, logged or stored.

Questions

Does it run my query?

No - it only formats the text.

More developer tools

All tools →