Developer utility

HTML Entity Converter

Encode HTML special characters, convert text to named or numeric entities, and decode entity strings back to readable text directly in your browser.

Input

Convert HTML entities

Conversion mode Special characters

Ready to encode or decode HTML entities locally.

Input chars0
Output chars0
Entities0
Changed0

Output

Converted result

Preview

Decoded text preview

Detected entities

Entities found in input or output

#EntityDecoded characterCode point

Examples

Common entity conversions

Common HTML entities

CharacterNamed entityDecimalHexUse
&&&&Ampersand in text and URLs
<&lt;&#60;&#x3C;Opening angle bracket
>&gt;&#62;&#x3E;Closing angle bracket
"&quot;&#34;&#x22;Double quote in attributes
'&apos;&#39;&#x27;Apostrophe in attributes
©&copy;&#169;&#xA9;Copyright symbol
&euro;&#8364;&#x20AC;Euro symbol
&mdash;&#8212;&#x2014;Em dash

HTML entity notes

  • Use &lt; and &gt; when showing HTML code as text on a page.
  • Encode ampersands before other characters to avoid double-interpreting existing entities.
  • Named entities are readable, but numeric entities can represent any Unicode character.
  • The preview is displayed as text so converted markup does not execute as HTML.

HTML entity converter FAQ

What characters must be escaped in HTML?

At minimum, escape ampersands and angle brackets. Quotes and apostrophes should be escaped inside HTML attributes.

Are named entities better than numeric entities?

Named entities are easier to read for common symbols. Numeric entities work for any Unicode code point and are more general.

Can this decode mixed named, decimal, and hex entities?

Yes. The decode mode handles common named entities plus decimal and hexadecimal numeric references.