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 (&, <,
>, ", '). Press
Decode to reverse — both named entities and numeric entities (decimal
A and hex A) are recognized. Encoding then decoding
produces the original text exactly.
Privacy
All processing runs in your browser. Nothing is uploaded, logged, or stored.