Developer utility

HTML Entity Converter

Encode HTML special characters, convert Unicode text to named or numeric entities, and decode mixed entity references safely in your browser.

Input

Convert HTML entities

Conversion mode
Encoding options

Decimal and hexadecimal modes encode every Unicode character. The other encoding options apply to special and named modes.

Ready for local conversion.

Conversion modeSpecial characters

Enter text to calculate conversion statistics.

Input characters0
Output characters0
Entity references0
Characters changed0

Output

Converted result

Safe preview

Decoded text preview

Converted text preview will appear here.

The preview is inserted as plain text. Markup and scripts are never executed.

Detected entities

Entities found in input and output

#EntityDecoded valueCode pointOccurrences

Examples

Common entity conversions

Common HTML entities

CharacterNamed entityDecimalHexadecimalTypical use
&&&&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 currency symbol
&mdash;&#8212;&#x2014;Em dash punctuation

HTML entity notes

  • Escape ampersands and angle brackets when displaying HTML source or untrusted text.
  • Keep Preserve existing entities enabled to avoid turning &copy; into &amp;copy;.
  • Named entities are readable for common symbols; numeric entities can represent any valid Unicode scalar value.
  • Decoded output is previewed with textContent, so converted markup cannot run as HTML.

HTML entity converter FAQ

Does this HTML entity converter upload my text?

No. Encoding, decoding, detection, and preview generation all run locally in your browser.

What is the difference between named and numeric HTML entities?

Named entities use readable names such as amp and copy. Numeric entities use decimal or hexadecimal Unicode code points.

Can it decode mixed named, decimal, and hexadecimal entities?

Yes. Decode mode handles mixed references in one input and leaves unknown or invalid references visible for review.

Why preserve existing entities while encoding?

Preserving them prevents an existing reference such as &copy; from being encoded again as &amp;copy;. Disable the option when deliberate double encoding is required.