Free, no signup, runs in your browser

Free online JavaScript minifier

Paste your JavaScript and press Minify: extra spaces and line breaks go, names inside functions get shorter, and you see the size before and after with the percent saved. Your browser does it all, so your code is never sent to a server.

Everything runs in your browser. What you paste isn't sent anywhere.

Indent

Want a link to the page this script runs on?

Upload the page's HTML file or paste its code, and Convika gives it a link that opens in any browser. Free, no signup.

How to minify JavaScript online

  1. Paste your JavaScript into the box, or open a .js file from your device.
  2. Press Minify.
  3. Press Copy, or Download to save it as script.min.js.

What does minifying JavaScript do?

It removes comments, line breaks, and extra spaces, shortens names, and writes expressions in shorter forms. The file gets smaller, so the page loads faster.

Can other scripts still call my functions?

Yes. Functions and variables at the top level of a script, and what a module exports, keep their names. Only names that other scripts can't reach get shorter.

Are license comments kept?

Yes. A block comment that starts with /*! or has @license or @preserve in it stays, so a library's notice travels with the file.

Guides

See all guides

Licenses