JavaScript Minifier

Compress JS code. Free online JavaScript Minifier – fast, private and no sign-up.

Loading tool…

Make JavaScript smaller by removing comments and unnecessary whitespace. Strings, template literals and regular expressions are protected, and line breaks that JavaScript needs are kept.

How to use the JavaScript Minifier

  1. Type or paste your text into the box.
  2. Choose any options you need.
  3. Copy or download the result.

Frequently asked questions

Does it rename variables?

No. This is a safe whitespace and comment minifier. For maximum compression in big projects, use a build tool such as Terser.

Will license comments be removed?

Comments that start with /*! are kept, because they usually hold licence information.

Is there a limit on how much text I can paste?

There is no fixed limit. Several megabytes of text work fine, although very large texts may take a moment on older devices.

Is the JavaScript Minifier free to use?

Yes. The JavaScript Minifier on BookmarkBuild is completely free, with no hidden charges, no trial period and no watermark.

Do I need to create an account?

No. You can use the tool straight away without signing up or logging in.

Is my data stored or sent anywhere?

No. Everything you enter is processed in your browser and is not saved or sent to our server.

Does the JavaScript Minifier work on mobile phones?

Yes. It works in any modern browser on Android phones, iPhones, tablets, laptops and desktop computers.

Which browsers are supported?

The latest versions of Chrome, Edge, Firefox, Safari, Opera, Brave and Samsung Internet are all supported.

Do I need to install any software?

No. The tool runs in your browser, so there is nothing to download or install.

Is there a daily usage limit?

No. You can use the tool as many times as you want, every day.

Can I use the JavaScript Minifier for commercial work?

Yes. The results are yours to use in personal and commercial projects.

Does it work offline?

Once the page has loaded, the tool itself runs in your browser, so it keeps working if your connection drops. You need the internet only to open the page.