Malware Deobfuscator

Free online deobfuscator for Base64, hex, XOR, ROT and URL-encoded strings. Auto-detects the encoding, brute-forces XOR keys, decodes PowerShell payloads.

By

Advertisement

Free Online Deobfuscator for Encoded Malware Strings

This deobfuscator takes an encoded, packed or scrambled string and turns it back into readable text so you can see what it actually does. It is built for defensive work — incident response, phishing triage, log review and CTF challenges — where you have pulled a suspicious blob out of an email attachment, a scheduled task, a registry Run key or a web server log and need to know what it says before you decide how to respond. Everything runs client-side in your browser using standard JavaScript decoding routines: the sample you paste is never uploaded to a server, which matters when the artefact is evidence from a live incident.

The tool is a decoder, not a sandbox. It never executes the input. It reverses the layers of encoding that attackers stack on top of a payload to defeat signature matching, and it stops there — what you get back is text you can read, grep and hand to your ticketing system. If the decoded result is itself another encoded layer, you can feed it straight back in and keep peeling.

Obfuscation Techniques This Deobfuscator Handles

The tool supports a specific, finite set of encodings. Knowing exactly what is covered saves you from assuming a clean output means “nothing found”:

  • Base64 — standard alphabet and URL-safe variants (- and _ substituted for + and /), with automatic padding repair when the trailing = characters have been stripped.
  • Base64 UTF-16LE — the format produced by powershell.exe -EncodedCommand. Ordinary Base64 decoders return this as text riddled with null bytes; this decoder handles the UTF-16LE code path separately and gives you clean PowerShell source. A one-click PowerShell Encoding preset selects it.
  • Hexadecimal — byte-pair hex strings, tolerant of spaces, 0x prefixes and other separators, which are stripped before decoding. Common in shellcode blobs and in char-array droppers.
  • URL / percent encoding — %41%42 style escaping used heavily in exploit URLs and web shell parameters.
  • ROT-N — any rotation from 1 to 25, with ROT13 as the default, preserving case and punctuation.
  • XOR — single-byte XOR with a key you supply, or a brute-force sweep of all 256 possible key bytes when you leave the key field empty. The candidate plaintexts are ranked and the strongest results surfaced first.

What it does not do is equally important. It is not a JavaScript AST deobfuscator: it will not rename mangled identifiers, evaluate packer bootstrap code, unroll eval chains automatically or reconstruct control flow from a flattened switch. It will decode the Base64, hex and XOR blobs that such packers embed, which is usually where the interesting strings live. It also does not unpack PE files, dump memory or emulate a script host.

How Auto-Detection Ranks Candidates

Set the technique selector to Auto and the deobfuscator attempts every supported decoder and scores each result instead of guessing once. Two signals drive the ranking. The first is Shannon entropy, calculated over the decoded bytes. Meaningful English text and source code sit in a low band, roughly 3.5 to 4.5 bits per character; compressed or encrypted data pushes toward 7.5 to 8.0. A decode that lowers entropy is almost always the right one. The second is a readability heuristic, which weights the output by English letter frequency (e, t, a, o, i, n and the space character carry the most weight), adds a bonus for common tokens such as the, function, var, script and http, and subtracts a penalty for every non-printable byte. The combined score is why a correct single-byte XOR key floats to the top of 256 candidates without you reading them all.

Worked Example: A Layered PowerShell Dropper

A typical maldoc chain is Base64 wrapping a UTF-16LE PowerShell command, which itself contains a hex-encoded URL. Peeling it looks like this:

  1. Paste the blob that followed -enc or -EncodedCommand into the input box and click the PowerShell Encoding preset. The Base64 (UTF-16LE) result comes back as readable PowerShell rather than P.o.w.e.r.S.h.e.l.l.
  2. Inside that script you find something like $u = [System.Text.Encoding]::ASCII.GetString([byte[]]-split('68 74 74 70 ...')). Copy the hex run, switch the technique to Hex, and decode it to reveal the staging URL.
  3. If the URL is percent-encoded, run URL Decode on it. Then defang it with the URL defanger before pasting it into a ticket or a chat channel so nobody clicks it by accident.

Rather than shuttling text between tabs, use Chain. Each decode result has a Chain button that pushes the output onto a visible stack of steps, so you end up with an auditable record of exactly which transformations produced the final plaintext — useful when you have to write the finding up later.

How to Use the Deobfuscator

  1. Paste the obfuscated string into the input area, or use the upload button to load a small file from disk.
  2. Leave the technique on Auto for the first pass. Pick a specific technique when you already know the encoding.
  3. For XOR, enter a key if you have one; leave it blank to brute-force all 256 single-byte keys and review the top-scoring candidates.
  4. For ROT, drag the shift slider (1–25) or accept the ROT13 default.
  5. Read the results list. Each entry shows the technique used, its entropy and its readability score, so you can tell a genuine decode from a coincidence.
  6. Click Chain on a promising result to feed it back in as the next layer, and repeat until the output stops changing.

Safe Handling of Live Samples

Because decoding happens locally, nothing leaves your machine — but the decoded output is still attacker-controlled text. Never paste a decoded command into a terminal to “see what happens”. Extract indicators instead: domains, IP addresses, file paths, mutex names and scheduled task names. Defang every URL and IP before sharing. If the decode yields a file signature rather than text, check the leading bytes with the file magic number checker, and inspect the raw bytes in the hex editor. For simple Base64 work outside an investigation, the Base64 encoder and decoder is the lighter tool.

Frequently Asked Questions

What is a deobfuscator?+

A deobfuscator reverses the transformations an author applied to hide the meaning of code or data. In malware analysis that usually means undoing encoding layers — Base64, hex, XOR, ROT, percent-encoding — so that the underlying commands, URLs and strings become readable again.

Is this deobfuscator free?+

Yes. It is free to use, requires no account, and imposes no per-day decode limit.

Is it safe to paste a live malware sample here?+

All decoding runs in your browser with client-side JavaScript, so the sample is never transmitted or stored on a server. The tool also never executes the input — it only decodes it. That said, treat the decoded output as hostile text and do not run it.

Can it deobfuscate JavaScript?+

It decodes the encoded payloads inside obfuscated JavaScript — Base64 blobs, hex-escaped strings, percent-encoded fragments and XOR-masked data — which is where the meaningful strings usually hide. It does not perform AST-level deobfuscation such as identifier renaming, control-flow unflattening or automatic evaluation of packer bootstraps.

How do I decode a PowerShell -EncodedCommand string?+

Paste the Base64 blob and choose the PowerShell Encoding preset. PowerShell encodes the command as UTF-16LE before Base64, so a standard Base64 decoder interleaves null bytes into the output; this tool decodes the UTF-16LE layer correctly and returns clean script text.

What if I do not know the XOR key?+

Leave the key field empty. The tool tries all 256 single-byte keys, scores each candidate plaintext using entropy and English readability, and shows you the strongest results first. Multi-byte and rolling keys are outside its scope.

What does the entropy value tell me?+

Entropy measures how random the decoded bytes look, in bits per character. Readable text and source code typically land between 3.5 and 4.5; compressed, encrypted or still-encoded data trends toward 8.0. A decode that drops entropy sharply is almost certainly correct.

Can I peel multiple layers of obfuscation?+

Yes. Click Chain on any result to push it forward as the input to the next step. The chain stays visible so you can see the full sequence of transformations and remove a step if you took a wrong turn.

Does it handle URL-safe Base64 and missing padding?+

Yes. URL-safe characters are normalised back to the standard alphabet and missing = padding is reconstructed before decoding, so truncated blobs from URLs and JWT-style fragments still decode.

Is the input sent anywhere or logged?+

No. There is no server round trip for decoding, no upload of pasted content, and no retention of samples.

Related tools

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Results are based on the information you enter and do not constitute a security audit, a formal compliance assessment, or legal advice, and they do not establish that any system or organisation meets a given standard. Coverage of a framework may be partial — check what the tool states it assesses. For anything you intend to rely on, consult a qualified assessor.