HTML Decoder
Turns HTML entities back into the characters they stand for.
Results
What this tool does
Text pulled out of a page, a feed or a database often arrives carrying its entities: < where a less-than sign should be, é where an é should be, — where a dash should be. Decoding puts the characters back. Named entities, decimal references like A and hexadecimal ones like A are all handled, and anything that is not a real entity is left exactly as it was.
Formula
&name; A and A go back to the character they stand for
Variables
| Symbol | Meaning | Unit |
|---|---|---|
text | Encoded | — |
OUT | Text | — |
SA | Size after | B |
Worked example
- Encoded<b>Olá</b> & adeus — até já
- Text<b>Olá</b> & adeus — até já
- Size after41 B
Limitations
- The calculation runs entirely in your browser. The values you type are never sent to a server.
Frequently asked questions
Why is my text full of &amp;?
Because it was escaped twice. Something escaped the text, and then something else escaped the result without knowing the first had already run, so the ampersand of & became &amp; in its turn. Decoding once turns it back into & and decoding a second time gives you the original. It is the classic sign that two layers of a system are both trying to be careful about the same text.