JavaScript Obfuscator

Obfuscate JavaScript code to make it harder to read and copy. Free JS obfuscator.
Source Code
Preset Pick a preset to load tuned settings - or tune the options below yourself.

Code shape

Hardening

Strings

Runtime protection

Advanced options
Obfuscated Result Paste code on the left to start.
Before 0 chars · after 0 chars · 0% change
All obfuscation happens locally in your browser - your code never leaves the page. Test the obfuscated script before shipping it, especially with the Maximum protection preset. Higher protection settings can slow code at runtime by up to 1.5x.
Tool Introduction

Obfuscate JavaScript for demos, browser widgets, client-side snippets, and distributed scripts when you want to make casual copying or inspection harder. Paste code or upload a .js file, pick a preset or tune the options, then copy or download the output.

Use Fast & small for quick, compact output; Balanced for a good mix of protection and size; Maximum protection when the code is worth extra size and runtime cost. The output runs on the same engine used to protect this site's own scripts.