Skip to content
CALZYRA— TOOLS THAT EMPOWER —
FinanceInvestmentsHealthMathBlog
CALZYRA— TOOLS THAT EMPOWER —

Practical calculators and online tools, made to be simple and useful.

Popular Categories

  • Finance
  • Health & Fitness
  • Mathematics
  • Physics
  • Construction
  • Conversion

Finance Tools

  • Loan Calculators
  • Investment Calculators
  • Compound Interest
  • SIP Calculator
  • ROI Calculator
  • CAGR Calculator

Top Calculators

  • Mortgage Calculator
  • BMI Calculator
  • Percentage Calculator
  • Calorie Calculator
  • Tip Calculator

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Calzyra. All rights reserved.

Free tools for everyday calculations, learning, and practical work.
HomeDeveloper ToolsXML & HTMLHTML Entity Decoder
Developer ToolXML & HTML

HTML Entity Decoder Online

Decode HTML entities online with Calzyra. Convert named and numeric entity references such as &, < and © back into readable text.

Updated 2026-10-203 min readCalzyra Developer Tools Team
HTML Entity Decoder
html
Tom & Jerry <tag> "Hello" — café © 2026
1 lines77 chars9 wordshtml

Decoded text will appear here

Paste HTML entities in the input panel and they decode automatically

Ctrl+Enter RunCtrl+L ClearEsc Exit fullscreen

Quick Examples

Load sample data to get started

Supported Features

What this tool can do

🔗

Named & Numeric References

&, < and © all become the characters they stand for

🌍

Full HTML5 Named Table

The browser's own reference table decodes every named entity

↩️

One Decode Pass

& becomes &, never a raw ampersand

✍️

Bare & Left Alone

Plain ampersands and unknown references pass through unchanged

🔢

Decimal & Hex

© and © both decode to ©

⚡

Decodes as You Type

The output updates while you edit, and Ctrl+Enter forces a re-run

📋

Copy Output

One click puts the decoded text on your clipboard

🧹

Clear Both Panels

Reset the input and the output in a single step

How It Works

Methodology and approach

One-pass entity reference decoding

The decoder walks the text once from left to right and replaces each entity reference with the character it stands for: named references are looked up in the HTML5 table the browser itself uses, and decimal and hexadecimal character references are read as code points. A single pass means already-encoded text is decoded exactly once, so & becomes & rather than a raw ampersand, and a bare ampersand or a name the table does not define is copied through unchanged.

How to decode HTML entities online

Paste the encoded text into the input panel on the left and click Decode HTML Entities - the whole job of decoding HTML entities online in one paste, one click and one copy. The decoded text appears in the output panel on the right, with a status line above it reporting how many entity references were replaced.

The workspace also updates on its own: edit the input and the decoded output follows a moment later, so you can see the effect of a change without pressing anything. Ctrl+Enter forces a re-run at once, Copy puts only the decoded text on the clipboard - never the still-encoded input - and Clear empties both panels. The conversion happens in your browser; the text you paste is not sent anywhere.

When the text contains no entity references at all, the output matches the input exactly and the status line says so. That is a useful result rather than an error: it tells you the string was already plain text and needed no decoding.

Encoded input
Tom & Jerry <tag> "Hello"
Decoded text output
Tom & Jerry <tag> "Hello"

What is an HTML entity decoder?

HTML entities let a character be written as a reference instead of the raw character: &amp; stands for an ampersand, &lt; for a less-than sign, and &#169; for the copyright symbol. Every reference starts with an ampersand; named references then spell a name and end with a semicolon, while numeric references carry the character's code point in decimal or hexadecimal.

An HTML entity decoder online is the tool that performs that rewrite in reverse. It matters because encoded text is everywhere real data lives - CMS exports, API responses, email bodies, RSS feeds and database columns all store characters as references - and reading those references back as characters is how you inspect, quote or reuse the content. It is also the first thing to reach for when a page or a log shows &amp; or &lt; where a plain & or < was meant.

The word decoder also separates this page from its neighbours. An encoder writes the references; the HTML Formatter and HTML Validator reorganise or check markup rather than reading references; and the HTML to Text Converter strips tags, which is a different job from decoding the references inside the text.

Named, decimal and hexadecimal entity references

Named references spell the character's name: &amp; for the ampersand, &lt; and &gt; for the angle brackets, &quot; for the double quote, &apos; for the apostrophe, &copy; for the copyright symbol. The HTML5 standard defines around two thousand of them, and this tool decodes every one the browser's own table knows - so a reference you meet in the wild comes back as the character it names.

Decimal references carry the character's code point in base ten: &#169; is U+00A9, the copyright symbol. Hexadecimal references carry the same number in base sixteen, written after &#x: &#xA9; is the very same character, and the digits are case-insensitive. Numeric references are what encoders emit for characters that have no name, and both forms decode identically here.

Two details worth knowing. A named reference is written with a trailing semicolon, and the reference is what gets replaced - a bare ampersand in running text is not a reference, so it passes through unchanged, as does any name the HTML5 table does not define. And &nbsp; does not decode to an ordinary space: it becomes U+00A0, the non-breaking space a browser renders without collapsing or joining it to the next line.

Encoded input
&#169; &#8212; &#x2713;
Decoded text output
© — ✓

HTML entity decoding examples

Example - already-encoded text, decoded once. Input: &amp;amp; &#38;#169;. Output: &amp; &#169;. The first reference is &amp;amp;, the encoding of &amp;, so one pass turns it back into &amp; and no further; the second is the hexadecimal form of the copyright symbol. A single pass is deliberate: decoding is never applied to the decoder's own output, so text cannot be decoded further than the references that were actually pasted.

Example - a mixed line with pass-through cases. Input: caf&eacute; &copy; 2026 &nosuchref; 5 & 10. Output: café © 2026 &nosuchref; 5 & 10. The named references for e-acute and the copyright symbol decode, the unknown &nosuchref; is left exactly as it was written, and the bare ampersand in 5 & 10 stays a plain ampersand - it was never a reference.

Both results are produced by this page's decoder rather than typed by hand, so the strings above are exactly what the output panel shows when you load the example from the toolbar.

When should you use an HTML entity decoder?

Reading content out of a CMS export, an API response or an email body that stored its punctuation as references. Inspecting a database column or a log line that shows &amp; or &#169; instead of & and ©. Cleaning a feed, a sitemap or a scraped snippet before pasting the text into an editor, a ticket or a document. Debugging a template that double-escaped its data, so the page displays the reference rather than the character - the decoded panel is how you confirm what the source actually contains.

It is also the natural companion to the HTML Entity Encoder: encode to put text safely into markup, decode to read it back. It is the wrong tool when the goal is escaping - that is the encoder's job - or when the surrounding markup itself needs tidying or checking, which belongs to the HTML Formatter and the HTML Validator, or when you want the visible text of a document with its tags removed rather than its references decoded, which is the HTML to Text Converter's job.

HTML entity decoding limitations

Decoding is the reverse of encoding, not a security step. The characters it returns are exactly the characters the references stood for - including < and > - so text you decode is the text you must still escape before inserting it into a page. Decode for reading, quoting and analysis; run the encoder before the result goes back into markup.

Two details of this tool are worth knowing before you rely on it. The decode is a single left-to-right pass over what you paste, so text that was encoded twice (&amp;amp;) comes back encoded once (&amp;) - decode the result again if you genuinely need the second pass, which is the correct behaviour for content that was really double-escaped. And unknown references and bare ampersands are reported as passed through rather than as errors: the decoder never guesses at what a name it does not recognize was meant to be.

Related tools

  • Need to turn reserved characters into entity references in the first place? That is the reverse operation.HTML Entity Encoder
  • Is the surrounding markup messy and needs tidying first?HTML Formatter
  • Need to check the document you are inserting the text into?HTML Validator
  • Only need the plain text with the tags stripped, rather than the references decoded?HTML to Text Converter

Frequently Asked Questions

Common questions about this tool

XML & HTML Tools

XML FormatterXML ValidatorXML MinifierXML to JSON ConverterXML to CSV ConverterHTML FormatterHTML MinifierHTML ValidatorHTML to Markdown ConverterHTML Entity EncoderHTML Entity DecoderHTML to Text ConverterXML Tree ViewerXML XPath TesterHTML Meta Tag Generator

Related Tools

XML Formatter

Format and prettify XML documents

XML Validator

Validate XML syntax and structure

XML Minifier

Minify XML by removing whitespace

XML to JSON Converter

Convert XML to JSON format

HTML to Markdown Converter

Convert HTML to clean Markdown format

Quick Links

All Developer ToolsXML & HTML Category