JavaScript Minifier

Minify JavaScript code to reduce file size.

Runs on this device
0 chars

Minified JS

Paste JavaScript, then select Minify

What minifying changes

  • Comments are removed, except license comments (/*!, @license, @preserve).
  • Variable names are not changed.
  • Strings, template literals and regular expressions are left untouched.
  • Line breaks that automatic semicolon insertion depends on are kept.
  • Only plain JavaScript is supported, not JSX or TypeScript.