HomeDeveloper toolsHTML Entity Encoder / Decoder

HTML Entity Encoder / Decoder

Escape special HTML characters or decode entities to text.

Encode special HTML characters or decode HTML entities back to plain text.

How to use the html entity encoder / decoder

Encode angle brackets, ampersands, and quotes before inserting plain text into HTML, or decode HTML entities back to readable text.

Example

Encoding <strong> produces &lt;strong&gt;.

Good to know

Encoding is for HTML text content. Attribute and JavaScript contexts need their own escaping rules.