HTML Entity Encoder / Decoder

Encode and decode HTML entities online. Convert characters like <, >, &, and quotes into their HTML-safe form.

About HTML Entities

Five characters have special meaning inside HTML markup: &, <, >, ", and '. To display them as literal text instead of triggering parser behavior, they must be replaced with HTML entities — short escape sequences that browsers render back as the original character. Without this escape step, user-supplied content can break a page layout or, worse, inject executable script.

How to use

Paste your text into the input and press Encode to escape the five reserved characters into named entities (&amp;, &lt;, &gt;, &quot;, &#39;). Press Decode to reverse — both named entities and numeric entities (decimal &#65; and hex &#x41;) are recognized. Encoding then decoding produces the original text exactly.

Privacy

All processing runs in your browser. Nothing is uploaded, logged, or stored.

Frequently Asked Questions

Edit PDFs on your phone

Pure PDF Editor works offline on iPhone, iPad, Mac, and Android. Free to download.