JavaScript Minifier
Minify JavaScript code online — remove comments and extra whitespace to shrink script size, processed entirely in your browser.
Local processing
No login required
Upload & download support
LanguageFor JS scripts
JSinput.js
Minify options
⌘⏎Quick minify
InputEditable
1
2
3
4
5
6
7
8
9
10
Minified outputJavaScript valid1 lines · 0 B
1
Original size: 194 BMinified: 0 BSaved: 194 B (100.0%)Local processing in your browser · nothing uploaded
How It WorksJavaScript
Overview
Strips comments, extra whitespace, and line breaks from JavaScript code without changing execution logic, shrinking script size as much as possible — ideal for final production builds. All processing happens locally in your browser, so nothing ever leaves your device.
Use Cases
Minify scripts before shipping to productionReduce first-load page weightMinify a component library or utility functionsShrink script code embedded in a page
Steps
123
Paste or uploadSet optionsGet the result