Menu

HTML Deobfuscator

Reverse the output of our HTML Obfuscator. Decodes numeric entities, fixes scrambled tag case, strips the obfuscation header comment, and pretty-prints back to readable HTML.

HTML Deobfuscator Studio HTOBF
Ready
Pair with our HTML Obfuscator. This tool specifically reverses the output of obfuscatortools.com/tools/html-obfuscator. It detects the <!-- HTOBF-XXXX ... --> header, decodes every numeric entity, normalizes every scrambled tag name and attribute name back to lowercase, and re-indents the markup.
What this can't recover: original comments (stripped by the obfuscator), original whitespace (minified), and inline scripts are decoded from entities but not reformatted line-by-line. If your source had custom indentation, it will be replaced by clean 2-space indentation.
Obfuscated HTML Input 0 chars
Deobfuscated HTML 0 chars
How This Deobfuscator Works

What the HTML Obfuscator Does

Our HTML Obfuscator applies four transformations to your HTML:

  1. Header comment — prepends <!-- HTOBF-XXXX | Obfuscated HTML | YYYY-MM-DD -->
  2. Numeric entities — converts every text character to &#NN; (e.g. S → &#83;)
  3. Case scrambling — randomly uppercases tag names and attribute names: <div class="..."> → <dIv CLaSs="...">
  4. Minification — strips whitespace, comments, and line breaks

What This Deobfuscator Reverses

TransformationReversible?How
Header comment✅ YesDetects <!-- HTOBF- and removes the line
Numeric entities✅ YesDecodes &#NN; back to characters
Scrambled tag case✅ YesNormalizes every tag and attribute name to lowercase
Minified whitespace✅ PartiallyRe-indented with 2 spaces — original indentation is gone
Stripped comments❌ No (lossy)Original comments were removed by the obfuscator
JS inside script tags✅ Entities decodedEntities inside <script> are decoded, but JS is not reformatted

The Obfuscator Header

The obfuscator adds a header comment that looks like:

<!-- HTOBF-EXW9 | Obfuscated HTML | 2026-10-17 -->

This deobfuscator detects it via the HTOBF- prefix and removes it so the output is clean.

Case Scrambling and HTML Case-Insensitivity

HTML tag names and attribute names are case-insensitive. <DIV> is the same as <div>. The obfuscator exploits this to make source harder to read. This deobfuscator normalizes every tag and attribute name back to lowercase — the standard convention, and what most editors and pretty-printers expect.

What It Cannot Do

  • Recover original comments. The obfuscator strips them — they're gone.
  • Recover original whitespace. The output uses clean 2-space indentation, not the original layout.
  • Reformat inline JavaScript. The JS inside <script> is preserved as-is (with entities decoded), but not reformatted line-by-line.
  • Decode Base64-encoded HTML. That's the HTML Decoder tool's job.
  • Reverse ionCube / Zend Guard. Those are PHP bytecode encryptors, not HTML.

Frequently Asked Questions

What does this tool reverse?
The output of obfuscatortools.com/tools/html-obfuscator. It decodes numeric entities, fixes scrambled tag case, removes the obfuscation header comment, and pretty-prints the markup.
How does it detect the obfuscator?
It looks for the <!-- HTOBF- prefix in the first comment. If found, it removes the header. It also detects entity encoding and mixed-case tag names.
Why do tag names look scrambled?
The obfuscator randomly uppercases tag and attribute names (<dIv CLaSs="...">). HTML treats these as case-insensitive, so the page renders identically. This deobfuscator normalizes everything to lowercase, which is what code editors and formatters expect.
Will the output render the same as the obfuscated input?
Yes. Decoding entities and lowercasing tags does not change the rendered DOM. The only difference is that the source is now readable and pretty-printed.
Can I recover the original comments?
No. The obfuscator strips comments to hide hints and reduce size. Once removed, they're gone forever.
Can I recover the original indentation?
No. The obfuscator minifies whitespace, and this tool re-indents with 2 spaces. The structure is preserved but the exact original layout is not.
Does it decode entities inside <script> and <style> tags?
Yes. The tool decodes entities everywhere in the document, including inside <script> and <style> blocks. This is important because the obfuscator encodes those too.
Is my HTML uploaded to your server?
No. Everything runs in your browser. Your code never leaves your device.
Can I download the deobfuscated HTML?
Yes. Click Download to save the output as deobfuscated.html.
What if the output still looks wrong?
Check that the input is complete (not truncated). If the input was obfuscated by a different tool, this deobfuscator may not recognize its patterns. The tool targets our HTML Obfuscator specifically.

Related Tools

External Resources