a apiary.
← All tools

SQL / BROWSER UTILITY

SQL Minifier

Reduce SQL whitespace while preserving quoted values, hints and line boundaries.

Processed locally in your browser. Your SQL is not uploaded or executed.

Up to 100,000 characters. Processing stops after 8 seconds. Source is never executed.

Good to know

Conservative minification collapses repeated whitespace and removes ordinary block comments between non-literal tokens. Optimizer hints, executable comments, line comments and literal-adjacent comments are retained. Line breaks, quoted text and token adjacency are preserved. No SQL is executed.

Example: SELECT product_name FROM products WHERE price > 10;