—
Original
—
Output
—
Saved
—
Reduction
JS Minifier
Lightweight client-side JavaScript minifier — no AST parsing, no server round-trip. Ideal for small inline scripts and configuration objects. For production bundles, use a proper build tool (Terser, esbuild).
- Removes
// line commentsand/* block comments */ - Strips leading/trailing whitespace from each line
- Collapses consecutive blank lines
- Preserves string literals and regex patterns