Paritian

Developers

HTML Decoder

Turns HTML entities back into the characters they stand for.

Results

Text <b>Ol&aacute;</b> & adeus — até j&aacute;
Size after 41 B

What this tool does

Text pulled out of a page, a feed or a database often arrives carrying its entities: &amp;lt; where a less-than sign should be, &amp;eacute; where an é should be, &amp;#8212; where a dash should be. Decoding puts the characters back. Named entities, decimal references like &amp;#65; and hexadecimal ones like &amp;#x41; are all handled, and anything that is not a real entity is left exactly as it was.

Formula

&amp;name; &#65; and &#x41; go back to the character they stand for

Variables

SymbolMeaningUnit
textEncoded
OUTText
SASize afterB

Worked example

  • Encoded&lt;b&gt;Ol&aacute;&lt;/b&gt; &amp; adeus &#8212; at&eacute; j&aacute;
  • Text<b>Ol&aacute;</b> & adeus — até j&aacute;
  • 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;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 &amp; became &amp;amp; in its turn. Decoding once turns it back into &amp; 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.