What the HTML Obfuscator Does
Our HTML Obfuscator applies four transformations to your HTML:
- Header comment — prepends
<!-- HTOBF-XXXX | Obfuscated HTML | YYYY-MM-DD --> - Numeric entities — converts every text character to
&#NN;(e.g.S→S) - Case scrambling — randomly uppercases tag names and attribute names:
<div class="...">→<dIv CLaSs="..."> - Minification — strips whitespace, comments, and line breaks
What This Deobfuscator Reverses
| Transformation | Reversible? | How |
|---|---|---|
| Header comment | ✅ Yes | Detects <!-- HTOBF- and removes the line |
| Numeric entities | ✅ Yes | Decodes &#NN; back to characters |
| Scrambled tag case | ✅ Yes | Normalizes every tag and attribute name to lowercase |
| Minified whitespace | ✅ Partially | Re-indented with 2 spaces — original indentation is gone |
| Stripped comments | ❌ No (lossy) | Original comments were removed by the obfuscator |
| JS inside script tags | ✅ Entities decoded | Entities 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
HTML ObfuscatorObfuscate HTML source
HTML EncoderEncode HTML (Base64, Hex)
HTML DecoderDecode encoded HTML
PHP ObfuscatorObfuscate PHP source
PHP DeobfuscatorDecode PHP obfuscation
JS AST ObfuscatorObfuscate JavaScript
Base64 ObfuscatorEncode any text