HTML Entity Encoder / Decoder

Escape <, >, & and quotes into HTML entities, or decode them back.

About HTML entities

Escaping turns markup-significant characters into safe text — essential when displaying user input or code samples, and the first line of defense against XSS. Only five characters are strictly required: & < > " '.