Skip to content
Encrypt-Decrypt

HTML Entities Text Encoder

Escape HTML-sensitive characters into named and numeric character references. Runs entirely in your browser — input is never uploaded.

English
0 chars0 bytes
Output
Ready0 chars · 0 bytes
Processed locally. Your data never leaves this device.UTF-8 text ↔ HTML entities

How HTML entity escaping works

The five reserved characters & < > " ' are escaped to named entities; "All non-ASCII" mode also converts every character above U+007F to a numeric &#N; reference.

Named vs numeric character references

Decoding accepts named entities (&amp;), decimal references (&#39;), and hexadecimal references (&#x27;) interchangeably.

Frequently asked questions

The apostrophe encodes as &#39; rather than &apos;, since &apos; was never valid in HTML4.