Micru Logo

JS Obfuscator

Mangle variable and function names, compress code structure, and make your JavaScript significantly harder to read and reverse-engineer.

All processing is done locally in your browser. No data is sent to our servers.

How JavaScript Obfuscation Works

This obfuscator uses Terser with aggressive optimisation settings to transform your code. It mangles all variable and function names to short identifiers, collapses expressions into sequences, inlines functions where possible, and removes all formatting. Properties prefixed with an underscore (_) are also mangled for deeper obfuscation.

The obfuscated code remains functionally equivalent to the original - it produces the same outputs for the same inputs - but is much harder for humans to understand.

Obfuscation Techniques

Name Mangling

All local variables, function parameters, and top-level declarations are renamed to short, meaningless identifiers.

Expression Collapsing

Multiple statements are combined into comma-separated sequences and ternary expressions to reduce readability.

Property Mangling

Object properties starting with an underscore are mangled to break object API patterns.

When to Use Obfuscation

Client-Side Protection

Protect proprietary logic, licensing checks, or business rules in JavaScript delivered to end users.

Intellectual Property

Make it harder for competitors to copy or understand your front-end application logic and algorithms.

Anti-Tampering

Raise the barrier for modifying injected scripts, game code, or embedded widgets.

Size Reduction

Obfuscation also reduces file size as a side effect of name shortening and code compression.