HTML Entity Encoder / Decoder

Escape special characters into HTML entities, or decode them back to text.

Mode

Every conversion runs locally in your browser. Nothing you type here is sent to a server.

Result

<div class="card">Tom & Jerry's "café"</div>

For informational and educational purposes only — not professional or technical advice, and not a substitute for consulting a qualified professional about your specific situation. TrueMeasureKit is not liable for decisions made based on these results. See our Terms of Service.

Named vs. numeric entities

HTML entities exist to safely represent characters that would otherwise be interpreted as markup — < and & especially, since a raw < in text content risks being parsed as the start of a tag. Named entities like &amp; are easier to read, while numeric entities like &#233; (decimal) or &#x2603; (hex) can represent any Unicode code point, named or not — this decoder handles both forms.

Frequently asked questions

Why do I need to escape characters like < and & in HTML?

Because those characters have special meaning in HTML syntax — an unescaped < can be interpreted as the start of a tag — so displaying them literally as text requires encoding them as entities like &lt; and &amp; to avoid breaking the markup or creating an injection risk.

Advertisement
Adaptive banner

We use cookies for analytics and to show ads, including personalized ads from Google. You can accept or reject these — the calculators themselves never send your inputs anywhere either way. See our Privacy Policy for details.