🔣 HTML Entity Encoder/Decoder

Encode and decode HTML entities including special characters and emoji.

About HTML Entity Encoder/Decoder

Encode special characters to HTML entities and decode them back. Supports named entities (&), numeric entities (&), hex entities (&), and all Unicode characters including emoji for safe HTML output.

Features

  • Named, numeric, hex entities
  • All Unicode including emoji
  • Real-time encode/decode

Frequently Asked Questions

What are HTML entities?

HTML entities are codes used to display special characters in HTML, like &amp; for &, &lt; for <, and &gt; for >. They prevent browser interpretation of reserved characters.

Why encode HTML entities?

Encoding prevents XSS attacks, ensures special characters display correctly, and allows safe embedding of user-generated content in HTML pages.

What is the difference between named and numeric entities?

Named entities use readable names like &copy; for ©, while numeric entities use decimal (&#169;) or hex (&#x00A9;) codes. Both render identically in browsers.

Related Tools