Smart Decode (Magic Decoder)

Auto-detect and decode Base64, hex, URL-encoding, JWT or HTML entities — layer by layer, 100% in your browser.

Paste something opaque — Base64, hex, URL-encoded, a JWT, or HTML entities — and it auto-detects and decodes, layer by layer.

🔒 Runs in your browser — nothing is uploaded.

Decode anything, automatically

Paste some opaque text and this tool figures out how it’s encoded and decodes it for you — no need to know whether it’s Base64, hex, URL-encoding, a JWT, or HTML entities. When the result is itself still encoded, it keeps going, peeling one layer at a time and showing you the chain it detected.

Inspired by CyberChef’s “Magic” operation, it runs a small deterministic detector pipeline entirely in your browser. Your input is never uploaded, so it’s safe for tokens and other sensitive strings.

Frequently asked questions

What encodings does it detect?

JWT, URL-encoding (%XX), HTML entities, hexadecimal, and Base64 / Base64URL — chained up to several layers deep.

Why does it say it can’t detect an encoding?

The input already looks like plain text, or uses a format outside the supported set. Values that decode to binary noise are treated as plain text so they aren’t mangled.

Is it safe to paste a token?

Yes. Everything runs locally in your browser and nothing is sent anywhere — but never share a real secret you don’t control.