Skip to main content

SQL Formatter

Pretty-print SQL locally with a lightweight keyword formatter.

Tool workspace

Lightweight keyword-based SQL pretty-print in your browser. Does not execute SQL or connect to a database.

How it works

Paste SQL and Format. The tool inserts line breaks before major keywords (SELECT, FROM, WHERE, JOIN, …) and uppercases those keywords.

This does not execute SQL, connect to a database, or guarantee dialect-perfect formatting. Empty input clears the result—no error.

Examples

  • select id from users where active = 1 → multi-line keyword layout

Privacy

Privacy: this tool formats SQL locally in your browser. We do not log or store what you paste. Login is not required.

FAQ

Does this run my SQL?

No. It only reformats text in your browser.

Do I need an account?

No. All published tools work for guests without login.