jsonecho

JavaScript Obfuscator

Make JavaScript hard to read and copy, using the well-known obfuscator.io engine.

Loading the tool...

How to use JavaScript Obfuscator

  1. Paste your JavaScript.
  2. Choose the strength and the options you need.
  3. Copy the obfuscated code and test it.

About JavaScript Obfuscator

Obfuscation rewrites JavaScript so that it still runs the same but is very hard for a person to read. Names are replaced, strings are moved into an encoded array and the flow of the code can be scrambled. It raises the effort needed to copy or tamper with your code.

It is not encryption. A determined person can still analyse the result, and the browser has to be able to run it. Stronger settings make the file larger and slower, so test the output before you publish it.

Frequently asked questions

Will the obfuscated code work the same?

It is designed to. Always test it, especially with the control flow flattening, dead code and self defending options, which can change timing and size.

Is obfuscation the same as minification?

No. Minification only makes code smaller. Obfuscation makes it hard to understand, and usually makes it larger.

Is my code uploaded?

No. The obfuscator is downloaded to your browser the first time you use this tool, about 1.7 MB, and your code never leaves the page.

Can it be reversed?

Partly. Our JavaScript Deobfuscator can undo many common transformations, which is why obfuscation should never protect secrets such as API keys.

More in Code Formatters

All tools →