JavaScript Minifier

Compresses a JavaScript string/file with no possible side-effect. This compressor is based on Yahoo!'s YUI Compressor.

  • No possible side-effect on code
  • Removes useless white spaces, indentation characters and line breaks
  • Replaces local variable names with smaller ones and takes care of substituting the references
  • Does not modify eval statement because of possible overboard effects

Option 1: Copy-paste the JavaScript here
Option 2: Or type in the URL to your file
Force output to new window: