CalcBrew

HTML Encoder & Decoder

Escape HTML so it displays as text — turn < into &lt;, & into &amp; and so on — or decode entities back into normal characters. Optionally convert accents, currency signs and typographic symbols to named or numeric entities for ASCII-only files and email templates.

Encoded output

Share:

Common HTML entities

CharacterNamedNumericUse
<&lt;&#60;tag start
>&gt;&#62;tag end
&&amp;&#38;entity start
"&quot;&#34;attribute quote
'&#39;attribute quote
non-breaking space&nbsp;&#160;keep words together
©&copy;&#169;copyright
&mdash;&#8212;em dash
&euro;&#8364;euro
é&eacute;&#233;accent

HTML5 defines 2,231 named entities, but in practice the five basic ones plus &nbsp;cover almost everything. Frameworks such as React, Vue and modern template engines escape output automatically; this tool is for the cases where you write raw HTML, documentation, CMS fields or email markup by hand.

Frequently asked questions

Related tools

More in Developer Tools · All tools & games