← All tools

SQL Formatter and Minifier

Format or compact SQL, MySQL, PostgreSQL and SQLite with keyword case and indentation controls while preserving literal and comment content.

sql-prettifyLOCAL WORKSPACE

Enabling local controls…

Each field: 1 MiB UTF-8 (SQL: 100,000 characters); output: 2 MiB. Loading stops after 15 seconds; processing after 2 seconds. Local processing, without uploads or storage.

Enter input or load a sample, then run.

If clipboard access is denied, select the read-only output manually.

How to use this tool

Choose a dialect, keyword case and 2-space, 4-space or tab indentation. Format or compact lexical whitespace, then review before execution.

When not to use it

No SQL is executed. Minify preserves comments, hints, quoted values and required line-comment or adjacent-literal newlines. Formatting is not database syntax, permission or performance validation.