JavaScript Minifier

Minify JavaScript code in your browser. Reduce unnecessary formatting, inspect highlighted output and copy or download the result.

Input code

0 B
Loading code editor…

Output code

Loading code editor…
PASS IT ON

A useful tool is worth sharing.

HOW IT WORKS

Three steps. Ready for what’s next.

01

Add your code

Paste source code, upload a UTF-8 file, or load the example.

02

Minify the source

Choose the available options and process the code locally. Syntax colors and line numbers help you inspect both editors.

03

Copy or download

Copy the processed source or download it with the correct file extension.

About JavaScript Minifier.

JavaScript Minifier in your browser

Minify JavaScript code in your browser. Reduce unnecessary formatting, inspect highlighted output and copy or download the result. The input and output editors highlight JavaScript syntax and show line numbers. Processing runs in a local worker; source code is not uploaded or executed.

Minification options

Remove unnecessary formatting with a JavaScript parser. Keep license comments by default. Shortening local names and ES module mode are optional; compression transforms are disabled.

Inspect before using

Copy the exact output or download a .js text file. HTML is shown as source rather than rendered as a webpage. Review and test the result with your application before replacing a deployed file.

A LITTLE CLARITY

Good questions. Simple answers.

A few helpful answers before you get started.

Do I need an account?

No. This tool is open to everyone without signing in.

Does this tool need the internet?

Code is processed locally in your browser. Source code is neither uploaded nor executed.

Still have a question?Get in touch