Files & pages

Multi-Layer Decoder

Runs locallyNew

Use Multi-Layer Decoder

What it does

Paste encoded or obfuscated text and the decoder peels one layer after another, showing each step, until readable text or a known file format remains. Everything runs in your browser.

It runs entirely in your browser: nothing you enter is uploaded.

How to use Multi-Layer Decoder

  1. Paste the encoded text. Paste the string into Encoded text: a Base64 blob from a script, a long hex string, percent-encoded text or a String.fromCharCode list.
  2. Decode. Press Decode layers or Ctrl+Enter. Each recognised layer is peeled in turn, up to 12.
  3. Read the chain. The headline lists the layers in order. Each step shows the method, the size before and after, and a preview.
  4. Use the result. Copy the decoded text, read Indicators in the result, or use Send to for HTML Attachment Analyzer, Link Unwrapper, IOC Converter or URL Defanger.
  5. Step in by hand. If a layer is missed, pick a method under Decode as and apply it. Undo last layer steps back.

Example

URL-encoded Base64 of gzip

Input
H4sIAAAAAAACA7MpTi7KLCixK8%2FMS8kv18vJT04syczP08soSk1TsFVQyigpKSi20tdPrUjMLchJ1UvOz9UvSy3KTKu0L04tLgYqtTVPM05UsrbRh5oEACvqcc1SAAAA
Output (captured 2026-10-20)
3 layers: URL percent-encoding → Base64 → gzip

No further encoding recognised.

1
URL percent-encoding
1 escape · 130 → 128 bytes
H4sIAAAAAAACA7MpTi7KLCixK8/MS8kv18vJT04syczP08soSk1TsFVQyigpKSi20tdPrUjMLchJ1UvOz9UvSy3KTKu0L04tLgYqtTVPM05UsrbRh5oEACvqcc1SAAAA
2
Base64
decodes to gzip · 128 → 96 bytes
00000000  1f 8b 08 00 00 00 00 00  02 03 b3 29 4e 2e ca 2c  |...........)N..,|
00000010  28 b1 2b cf cc 4b c9 2f  d7 cb c9 4f 4e 2c c9 cc  |(.+..K./...ON,..|
00000020  cf d3 cb 28 4a 4d 53 b0  55 50 ca 28 29 29 28 b6  |...(JMS.UP.())(.|
… 48 more bytes
3
gzip
96 → 82 bytes
<script>window.location.href = "hxxps://example[.]com/verify?session=7f3a";</script>
Result

Text, 82 bytes.

<script>window.location.href = "hxxps://example[.]com/verify?session=7f3a";</script>

Indicators in the result (1)
URL
hxxps://example[.]com/verify?session=7f3a
Copy indicators (raw)

Three layers: URL percent-encoding (%2F), Base64 that decodes to gzip data, and gzip itself, ending in a script that sends the browser to https://example.com/verify.

What it checks

SignalWhat it means
Layer chainThe encodings in order, for example Hex → Base64. Several layers around a short URL or command usually mean someone wanted to hide it.
Size per stepBytes in and out of each layer. A gzip or deflate layer that grows a lot is ordinary decompression.
UTF-16LE textTwo bytes per character, typical of PowerShell -EncodedCommand. A decoded command that downloads or starts something is a red flag.
Binary resultIf the end result is not text, a hex dump of the first 512 bytes is shown with the detected format. Copy it as hex or Base64; never run it.
Indicators in the resultURLs, email addresses and IPv4 addresses found in the decoded text, shown defanged, with a button to copy them raw.
Stop messageNo further encoding recognised, the 12-layer limit, or a step that would repeat an earlier result. At the limit there may be more layers.
Defang optionOn by default: URLs and email addresses in the result are shown defanged. Copy always gives the raw text.
Keep peeling optionAfter a manual Decode as step, decoding continues automatically unless you untick it.
Decode as listBase64, URL-safe Base64, hex, URL percent-encoding, HTML entities, escapes, character codes, quoted-printable, gzip, zlib, raw deflate and UTF-16LE, for steps the automatic pass skips.
Copy buttonsCopy gives the decoded text raw. A binary result offers Copy as hex and Copy as Base64 instead.

More examples

RFC 4648 test vector

Input
Zm9vYmFy
Result

1 layer: Base64, 8 → 6 bytes. The result is the text foobar, the value published in RFC 4648.

Hex around Base64 around a URL

Input
6148523063484d364c793973623264706269356c654746746347786c4c6d356c644339795a584e6c64413d3d
Result

2 layers: Hex → Base64 (88 → 44 → 31 bytes). The result is https://login.example.net/reset, shown defanged and listed under Indicators in the result.

PowerShell encoded command

Input
UwB0AGEAcgB0AC0AUAByAG8AYwBlAHMAcwAgACcAaAB0AHQAcABzADoALwAvAGUAeABhAG0AcABsAGUALgBvAHIAZwAvAHUAcABkAGEAdABlACcA
Result

2 layers: Base64 → UTF-16LE text, noted as typical of PowerShell -EncodedCommand. The result is Start-Process 'https://example.org/update', with the URL listed as an indicator.

FAQ

Which encodings does it recognise?

Base64 (standard and URL-safe, padding optional), hex in plain, 0x, \x, spaced or colon-separated form, URL percent-encoding, HTML entities, \x, \u, \u{…} and %u escapes, String.fromCharCode lists, quoted-printable, gzip, zlib and raw deflate, and UTF-16LE text such as a PowerShell -EncodedCommand. Calls like atob('…') or base64_decode('…') and data: URIs are unwrapped as well.

Why did it stop, or leave my text as it is?

A layer is only accepted when its output is readable text, a known file format or a stream that decompresses cleanly, so ordinary words that happen to be valid Base64 are left alone. Short or unusual encodings can therefore be missed: use Decode as to apply a method by hand and Undo to step back. It stops after 12 layers.

Is the decoded content run or sent anywhere?

No. Decoding uses plain JavaScript and the browser's DecompressionStream; the result is shown as text or as a hex dump and is never executed, rendered or uploaded.

Where do strings like these come from?

Phishing pages and attachments hide URLs and code in Base64 or hex, ClickFix pages copy encoded PowerShell commands to your clipboard, and emails arrive as quoted-printable. Paste the string here instead of running it.

Can I decode one layer at a time?

Yes. Untick After a manual step, keep peeling automatically, then choose a method under Decode as and press Apply to the current result for each step.

How much text can I paste?

Up to 5 MB. Results longer than 200,000 characters are shortened on screen, but Copy gives the full text.

What are quoted-printable and percent-encoding?

Both write a byte as a sign followed by two hex digits. Quoted-printable comes from email bodies, where =3D stands for =. Percent-encoding comes from URLs, where %2F stands for /.

Terms explained

PhishDestroy research