HTML Entity Encoder/Decoder

Encode special characters to HTML entities or decode them back.

Loading tool...

Related developer tools

Continue with Image to Base64, HEX Encoder/Decoder, Binary Encoder/Decoder.

How to Use HTML Entity Encoder/Decoder

  1. Enter or paste your input in the text area above
  2. The tool will process your input automatically or click the action button
  3. Copy the result using the copy button

Frequently Asked Questions

What are HTML entities?

HTML entities are special codes used to display reserved characters in HTML. For example, &lt; represents < and &amp; represents &.

Why encode HTML entities?

Encoding HTML entities prevents XSS attacks and ensures special characters display correctly in web pages instead of being interpreted as HTML code.

Sources & references

Primary references: WHATWG HTML Living Standard.

Last reviewed: