JavaScript Minifier Online

Minify JavaScript by removing whitespace and comments. Free online JS minifier — see exact byte savings. Runs entirely in your browser, no upload needed.

Remove Comments Strip Whitespace Show Savings No Upload Free
Paste your JavaScript
Minified Output
Quick reference
What it is
  • Removes comments and whitespace from JavaScript to reduce file size. Basic minification suitable for simple scripts and small projects.
How to use it
  • Paste your JavaScript in the input
  • Click Minify JavaScript
  • The minified output appears with a size report
  • Click Copy Output to use it
When you need this
  • Reducing JavaScript file size before deploying
  • Cleaning up a small script for production
  • Checking how much whitespace is in your JS
  • Quick minification without installing a build tool
Good to know
  • This is basic whitespace removal — for complex JS use Terser or esbuild
  • Single-line // and block /* */ comments are both removed
  • Minification is not obfuscation — the code is still readable if formatted
  • Variable names are not changed — use Terser for full name mangling
What else we build
Tamil Brothers is an indie studio building games, Discord bots, and digital tools. All free.
Explore Our Creations
Other free tools
CSS Minifier JSON Formatter Regex Tester HTML Encoder Markdown Previewer Base64