AI Tool Hub

SQL Formatter

Beautify or minify SQL with keyword caps and indent.

Guide & how to use

What this tool does

Lightweight SQL formatter: uppercase keywords, basic indentation for blocks and parentheses, and minify mode—no server round trip.

Example input/output

Illustrative sample — your real inputs may look different.

Example input

select id,name from users where active=1 order by name;

Example output

SELECT id, name
FROM users
WHERE active = 1
ORDER BY name;

Frequently asked questions