WibbyTools

SQL Formatter

Turn a messy one-line SQL query into readable code. Keywords are uppercased and each clause goes on its own line.

Options

How it works

  1. 1

    Paste your query

    Any SELECT, INSERT, UPDATE or DELETE.

  2. 2

    Read the formatted SQL

    Keywords uppercased, clauses on separate lines.

  3. 3

    Copy it

    Ready for code reviews, docs or debugging.

Related tools

Other tools people use right after this one.

Built to get out of your way

487

Tools available

6

Languages

0

Watermarks added

2h

Until your files are erased

100%

Free to start

∞

Devices supported

Frequently asked questions

No, only whitespace and keyword case are changed.

Why format SQL

Long queries written on a single line are hard to read and debug. Putting SELECT, FROM, WHERE, GROUP BY and ORDER BY each on their own line, with keywords in uppercase, makes structure obvious at a glance.

This is a lightweight formatter for everyday queries. String literals are preserved as-is. Very complex or dialect-specific SQL may need a dedicated IDE formatter.