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 useObfuscate JavaScript.
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
- Paste the JavaScript code.
- Choose the level and options.
- 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.