EN
PortuguêsEnglishEspañolDeutschFrançaisItaliano日本語Русский中文
Home Favorites
Voltar

JavaScript obfuscator

Obfuscate JavaScript code to make it hard to read and copy, with low, medium or high level, variable renaming and encoded strings.

How to use

Obfuscate JavaScript.

Available in: PortuguêsEspañolEnglishDeutschFrançaisItaliano日本語Русский中文

Next toolSVG optimizer→
Advertisement

JavaScript obfuscator: what it is for

Paste the JavaScript code, choose the protection level and generate a hard-to-read version, with renamed identifiers, strings encoded in Base64 or RC4, scrambled control flow and dead code at the high level. The tool shows the size before and after and lets you copy or download the .js file.

Everything runs in your browser: nothing you paste or open is sent to a server.

How to use

  1. Paste the JavaScript code.
  2. Choose the level and options.
  3. Obfuscate, test and download.

When to use it

  • Make site scripts harder to copy.
  • Protect the logic of games and widgets.
  • Hide strings inside the code.

Frequently asked questions

Does obfuscation make code secure?

Not entirely. Obfuscation only makes it harder to read: the browser still has to run the code, so someone with time can understand the logic. Never put passwords or secret keys in your site’s JavaScript.

Does the code get slower?

At the low level it barely changes. Medium and high add control-flow flattening and encoded strings, which make the file bigger and can slow execution a little. Test before publishing.

Is my code sent anywhere?

No. Obfuscation runs in your browser with the javascript-obfuscator library.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 are free.

Similar tools

Thank you so much for helping!

Every donation helps keep the site online. The tools were made to help you, but we have server costs. If you can chip in, it helps a lot! Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.