Developer · DEV-07Submit an issue

SQL formatter & minifier

Format common SQL keywords and clauses or remove extra whitespace.

SQL keywords · Whitespace minification
Input
Output
Usage guide and examples

Convert formats and organize data

Paste SQL and choose formatting or minification. Formatting adds breaks around SELECT, FROM, WHERE and other keywords; minification collapses whitespace. It edits text without executing queries or validating their syntax and business logic.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

select id,name from users where id=1;

What to check in the result

SELECT id, name
FROM users
WHERE id = 1;