Text Tools

HTML Decoder

Convert HTML entities and numeric character references back into readable plain text. Supports Named, Decimal, Hexadecimal, and multi-pass recursive decoding with instant live preview.

HTML Entity Decoder & Unescaper

Convert HTML entities (like &, <, >, ", ©, €) back into plain characters. Supports multi-pass recursive decoding to resolve double-encoded strings safely.

Action: Standalone Encoder
Load Sample:
Encoded HTML Entities Input
Decoded Plain Text Result
Decoding Rules & Entity Configuration
0
Input Chars
Encoded text length
0
Decoded Chars
Readable text length
0
Entities Decoded
Total tokens converted
1 pass
Decode Passes
Iterations executed
0
Total Words
Decoded word count
0%
Size Change
Character contraction
Standard
Active Mode
Depth configuration
100% In-Browser Privacy

How to Use the Online HTML Decoder

Follow these simple steps to unescape and convert encoded HTML character entities back into plain, human-readable text:

1
Paste Encoded Entities

Paste your text containing HTML entity references (such as &, <, ©, €) into the left input textarea. You can also upload a .txt or .html file.

2
Select Decoding Depth

Choose between standard 1 Pass or multi-pass / Full Recursive mode if your text was accidentally double-encoded (e.g. &amp;lt; → &lt; → <).

3
Configure Entity Scope

Select whether to decode all entities, special HTML characters only, named entities only, or numeric character references (decimal and hex).

4
Set Space & Break Rules

Choose whether non-breaking spaces (&nbsp;) become standard spaces, or convert embedded <br> tags into line breaks.

5
Inspect Live Output & Stats

Review the decoded plain text in real time. The statistics grid displays exact character contraction, tokens converted, and total passes executed.

6
Copy or Download

Click Copy Result to paste decoded text directly into your editor, code repository, or word processor, or download as a .txt file.

HTML Entity Decoding Reference & Conversion Examples

The following reference table demonstrates how encoded entities across different formats translate back into plain text characters:

Encoded Entity Input Entity Category Decoded Char Unicode Code Point Description & Meaning
&amp; or &#38; or &#x26; Special HTML & U+0026 Ampersand symbol
&lt; or &#60; or &#x3C; Special HTML < U+003C Less-than opening angle bracket
&gt; or &#62; or &#x3E; Special HTML > U+003E Greater-than closing angle bracket
&quot; or &#34; or &#x22; Special HTML " U+0022 Double quotation mark
&apos; or &#39; or &#x27; Special HTML ' U+0027 Single quotation mark / apostrophe
&copy; or &#169; or &#xA9; Named / Numeric © U+00A9 Copyright symbol
&reg; or &#174; or &#xAE; Named / Numeric ® U+00AE Registered trademark sign
&trade; or &#8482; or &#x2122; Named / Numeric ™ U+2122 Trademark symbol
&euro; or &#8364; or &#x20AC; Currency € U+20AC Euro currency sign
&pound; or &#163; or &#xA3; Currency £ U+00A3 Pound sterling currency sign
&mdash; or &#8212; or &#x2014; Typography — U+2014 Em dash punctuation mark
&#128512; or &#x1F600; Astral Emoji 😀 U+1F600 Grinning face emoji (supplementary plane)

Safe Output Rendering & Application Security

Literal Safe Rendering Guarantee: Decoded output is rendered strictly as plain text inside an isolated <textarea> element. The PacesTools HTML Decoder never executes decoded markup, scripts, or styles in the browser. You can safely inspect, edit, and copy malicious HTML payloads or broken script tags without triggering script execution or compromising your browser session.
Double-Encoded Entity Resolution

When content passes through multiple CMS layers or database sanitizers, ampersands often get re-encoded:

  • &amp;lt;div&amp;gt; (Double-encoded)
  • Pass 1: &lt;div&gt;
  • Pass 2: <div> (Final clean markup)
Post-Decoding Handling Caution

Remember that decoding converts entity tags back into raw characters. If you intend to render decoded output into a web application, ensure your application sanitizes or escapes the text appropriately for its destination context to prevent Cross-Site Scripting (XSS).

100% Client-Side Privacy Guarantee

The PacesTools HTML Decoder executes entirely in your local web browser using client-side JavaScript. Your confidential source code, database dumps, proprietary HTML templates, and personal customer data are never transmitted over the network, stored in remote databases, or logged on any server.

All Unicode code point calculations, regex token replacements, named entity dictionary mappings, and text file downloads run directly on your device's CPU. The tool is 100% functional offline.

Zero Network Transmission & Zero Tracking Your data remains strictly private. You can verify network activity in your browser's Developer Tools (F12) Network tab.
Technical Capabilities
  • Engine: UTF-32 Code Point Decoding Engine (via String.fromCodePoint)
  • Surrogate Pairs: Astral Unicode planes & emojis decoded safely
  • Entities: W3C HTML4 & HTML5 official Named entities
  • Multi-Pass: Recursive decoding with hard safety limits
  • Performance: Instant sub-millisecond conversion for 100,000+ chars

Frequently Asked Questions

Everything you need to know about HTML entity decoding, numeric references, and unescaping rules:

HTML decoding (also known as unescaping) is the process of reversing HTML entity references (such as &lt;, &gt;, and &quot;) back into their literal characters (such as <, >, and "). It transforms machine-encoded HTML markup back into human-readable text or raw source code.

HTML entities are reserved character representations that begin with an ampersand (&) and end with a semicolon (;). They are used in HTML documents to display characters that would otherwise conflict with HTML syntax or that are absent from standard keyboard layouts.

Named entities use human-readable mnemonics like &copy; or &euro;. Numeric character references use the character's exact Unicode code point in decimal (e.g. &#169;) or hexadecimal (e.g. &#xA9;). Our decoder seamlessly decodes both types in a single operation.

Yes. The decoder supports all standard decimal references (e.g. &#60; for <) and hexadecimal references (e.g. &#x3C; or &#x3c; for <). Hexadecimal digit casing is handled case-insensitively according to W3C standards.

Yes. The decoder uses the modern JavaScript UTF-32 String.fromCodePoint() standard, ensuring that astral Unicode code points (such as emojis like &#128512; / &#x1F600;) are decoded as complete characters without corrupting surrogate pairs.

By default, unknown or malformed entity tokens (such as &unknownentity;, &#;, or &#xyz;) are preserved as literal text. This ensures that normal ampersands in prose or unencoded symbols are never erased or corrupted. You can also configure the tool to strip unrecognized entities if desired.

Double encoding occurs when a string that was already encoded is accidentally escaped a second time (e.g. &amp;lt;div&amp;gt;). In our tool, simply select "2 Passes" or "Full Recursive" from the Decoding Depth dropdown to automatically unwrap multiple layers of encoding in one click.

No. The output is displayed strictly as text inside a secure <textarea> element. Even if the decoded content contains <script> tags or HTML attributes like onload, the browser treats it purely as inert character data.

Yes. The Decoding Depth setting allows 1 pass, 2 passes, 3 passes, or full recursive decoding. Recursive decoding stops as soon as the string stabilizes or when the safety maximum of 5 passes is reached, preventing infinite loops.

Yes. Click the "Copy Result" button to copy the decoded text directly to your clipboard, or click "Download .txt" to save the decoded file as a UTF-8 text document onto your computer.

No. 100% of the decoding operations take place on your local computer inside your web browser. No text or files are uploaded to our servers, stored in databases, or logged in analytics.

Yes. The tool is fully responsive across smartphones, tablets, and desktop computers. On narrow mobile viewports, the interface stacks neatly into vertical cards with touch-friendly buttons and single-line footers.
Copied to clipboard!