devvkit / dev
JS Minifier/Beautifier
Minify and beautify JavaScript with comment stripping and gzip sizing.
Safe mode strips comments and collapses whitespace without renaming identifiers. Aggressive mode loads Terser on demand (first use) and performs full compression + mangling; it needs valid JS syntax. Gzip size uses the browser's native CompressionStream. Validation runs code in a throwaway Function: safe for non-executing checks.
share this tool
related tools
Minify and beautify JavaScript without changing semantics. Strips comments, collapses whitespace, validates with the browser parser, and estimates gzip size.
- -Comment stripping (line and block)
- -Whitespace collapsing with string safety
- -Beautifier with proper indentation
- -Syntax validation via the browser parser
- -Gzip size estimate using CompressionStream
- -Download minified output as .js file
- >Reducing asset size before publishing
- >Preparing minified snippets for CDN inline scripts
- >Cleaning up generated or compiled JavaScript for review
- >Checking how much compression gzip adds