HTML Decode Online Tool
Overview
Decode HTML encoded text into plain text. HTML text is contained inside HTML elements and contains character entities which represent characters that cannot be directly stored as text data. These characters are either reserved characters that are used by HTML to indicate markup or Unicode characters which cannot be included in ASCII encoded text.
There are three ways to represent character entities, by unicode decimal code, by unicode hexadecimal code, and by predefined entities with special codes.
Invalid entities
Web browsers do not reject HTML with invalid character entities. The HTML standard defines how they are read instead, so that the text still displays. This tool decodes invalid entities the same way and lists them below the input box, so you can see what was guessed:
1. A legacy entity that is missing its semicolon is decoded as that entity. The legacy entities are the ones
from early versions of HTML that browsers still accept without a semicolon: &,
<, >, ", and the Latin-1 characters such as
©,  , é and ½.
2. If the start of an entity's name matches a legacy entity, the longest matching legacy entity is decoded and the rest of the name is kept as text.
3. Every other entity needs its semicolon. A non-legacy entity without its semicolon, such as
&ndash or &hellip, is not decoded and is kept as text, exactly as written, as
is an entity that does not match any known entity.
4. A numeric entity missing its semicolon is decoded. A numeric entity for a character that does not exist, such
as �, is decoded as the replacement character �, and &# without digits is
kept as text.
An ampersand that does not start an entity, such as in "Tom & Jerry" or "AT&T", is ordinary text and is not reported.
| HTML text | Decoded text | Rule |
|---|---|---|
& |
& |
Legacy entity missing its semicolon |
© 2024 |
© 2024 |
Legacy entity missing its semicolon |
&ersand |
&ersand |
The start of the name, amp, is a legacy entity |
¬it; |
¬it; |
The start of the name, not, is a legacy entity |
&ndash |
&ndash |
Non-legacy entity missing its semicolon, kept as text |
?id=1&order=asc |
?id=1&order=asc |
The start of the name, or, is a non-legacy entity, so it is kept as text |
&invalid; |
&invalid; |
Not a known entity, kept as text |
A |
A |
Numeric entity missing its semicolon |
€ |
€ |
A control code (128 to 159), read as the Windows-1252 character of that number |