HTML Entity Encoder / Decoder
Instantly encode special characters like <, >, &, and quotes into HTML entities, or decode HTML entities back into plain text.
Instantly encode special characters like <, >, &, and quotes into HTML entities, or decode HTML entities back into plain text.
An HTML entity encoder converts reserved characters into safe HTML entities, while a decoder restores the readable text. It helps prevent markup from being interpreted as page structure.
Paste text or HTML, choose Encode or Decode, and copy the result. Encode content before placing untrusted text into HTML.
Characters such as angle brackets, ampersands, and quotes require careful handling. Encoding is context-dependent and does not replace full security controls.
Start with one example whose expected result you can verify by hand; it makes errors in the input easier to spot.
Confirm the source format, protocol, or encoding before interpreting a result; similar-looking values can follow different rules.