JS Minifier - Free Online JavaScript Minifier Tool | IconVault
Minify or beautify JavaScript with a string and regex aware tokenizer. ASI-safe, runs fully in your browser. Free, no sign up.
JS Minifier
Minify or beautify JavaScript with ASI-safe output
5 of 5 free runs left - runs in your browser, nothing is uploaded.
Output
The minifier uses a real tokenizer that understands strings, template literals and regular expressions, so // inside a string is never treated as a comment. Newlines are kept where automatic semicolon insertion could change your code, so minified output stays behavior-identical.
About this tool
IconVault's JS Minifier shrinks JavaScript for production: paste code and get a compact version with whitespace, comments, and line breaks removed. It also beautifies minified code back into readable form. A real string and regex aware tokenizer powers it, so it never confuses a regex literal with division or breaks a template literal.
Newlines are preserved exactly where ASI safety needs them, so minified output behaves like your original code. Paste, click, copy, done. Honest note: for huge build pipelines use a bundler like esbuild; this tool is for quick snippets and one-off files. Free and runs fully in your browser.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon