AskDB

Browser tool

SQL Minifier

Remove SQL comments and extra whitespace to get compact one-line queries.

No uploadInstant previewCopy output

Workflow

Paste data, review the generated result, then copy it into your editor, migration, or docs.

Good fit

Fast cleanup, lightweight conversion, and documentation tasks during development.

Minify preview

Edit on the left, review the generated result on the right.

Local processingInstant outputCopy ready

5 lines · 17 words · 101 chars

1 lines · 14 words · 86 chars

Best for quick edits, review, and copy-paste workflows.
Output updates while you type, so you can verify changes immediately.
Always validate generated SQL against your schema before execution.

What this does

This tool removes line comments, block comments, and repeated whitespace. It is useful for compact snippets in tests and config values.

Before using in production

Keep a readable formatted copy of important queries in source control. Minified SQL is smaller, but harder to review.