Online Javascript Compression Tool

Javascript Code Input

Javascript File Upload

Multiple file uploads will be combined in order and compressed together as one file.

+ Upload Another File

Compressed Javascript Output

What Is This?

JSCompress.com is an online javascript compressor that allows you to compress and minify your javascript files. Compressed javascript files are ideal for production environments since they typically reduce the size of the file by 30-90%. Most of the filesize reduction is achieved by removing comments and extra whitespace characters that are not needed by web browsers or visitors.

Why Would I Want To Compress Javascript?

There are a number of reasons why compressing your javascript files is a good idea:

  • Quicker download times for your users.
  • Reduced bandwidth consumption of your website.
  • Reduced number of HTTP requests on your server when combining many javascript files into one compressed file, thus reducing the server load and allowing more visitors to access your website.
  • Comments and whitespace are not needed for javascript execution; Removing them will reduce file size and speed up script execution times.

What Javascript Compression Method is Used?

JSCompress.com uses UglifyJS for all javascript minification and compression.