Javascript Minifier online

Javascript Minifier online

Type or paste javascript code or enter js file url to get minified version

Optimize and compress your JS code to make your website faster and reduce network payload sizes.


5 Share

Javascript code

Type or paste js code

Javascript Url

Include protocol type (http or https)

Why use Javascript minifier?

The purpose of minification is to increase the speed of a website, improve your page load performance and reduce network payload sizes. Minimisation can make a script up to 50% smaller, resulting in a faster download time.

JS files are often larger than they should be and often being in the head section of the page code blocking the first paint of your page itself.

Unminified code example:

// My Javascript code
// First function
function codeAddress() {
window.onload = codeAddress;
document.addEventListener('DOMContentLoaded', function() {
}, false);

The code example can be reduced to:

function codeAddress(){alert('ok')}window.onload=codeAddress;document.addEventListener('DOMContentLoaded',function(){alert("Ready!");},false);

From the browser's point of view, these 2 code samples are equivalent, but the minified vesrion uses less bytes. JS Minify can further improve byte efficiency by removing code redoundance, whitespace and comment lines.

Minifying Javascript code increase the performance of your site, increase page speed and download times by making the code easier to read and to interpret.

Share this Tool

Did you like it? Share it!

Share this tool

Related tools. Try these one!

Generators, builders and validators to improve your SEO and web performances

Home Back to top of the page