JSUnFuck

()+
[]!

JSFuck decoder. Executes (not really) the input in a controlled environment and extracts the generated JavaScript source code.

How it works

JSFuck executes the generated payload using one of two mechanisms:

1. eval

2. Array.prototype.at.constructor

[]["at"]["constructor"](payload)()

This bypasses simple hooks on eval and global Function.

JSUnFuck intercepts both execution paths:

Instead of executing the payload, the tool extracts the generated JavaScript source and prints it to the output.

If no execution path is triggered, the input is treated as a pure JSFuck expression and evaluated as a value.

Just show me the codeunfuck.js | test.html

Security

This tool is conditionally safe.

Safe

Unsafe

Links

JSFuck Basics

See the full reference list here.