Advertisement
Advertisement

🏷 HTML Entity Encoder / Decoder

Encode text to safe HTML entities or decode entities back to readable text. Supports named entities (& < >), numeric decimal, and numeric hex notation. Includes a searchable reference table of 200+ named entities.

Advertisement

Named Entity Reference

CharNamedDecimalHexDescription
Advertisement
Advertisement

HTML Entity Encoder & Decoder — Online Free Tool

HTML entities are special codes used to display reserved characters in HTML without being interpreted as markup. The five essential entities are: &amp; (&), &lt; (<), &gt; (>), &quot; ("), and &apos; (').

When to Use HTML Entities

Always encode user-supplied content before inserting it into HTML to prevent Cross-Site Scripting (XSS) attacks. Encode the five special characters at minimum. This tool's "Minimal" mode does exactly that and is appropriate for most template escaping use cases.

Named vs Numeric Entities

Named entities like &copy; (©) and &mdash; (—) are easier to read. Numeric entities like &#169; or &#xA9; work in any HTML version. Both forms are recognized by all modern browsers.