HubTools

HTML Entity Converter

Encode and decode HTML entities online. Convert special characters to their HTML entity equivalents and back with a handy reference table.

What is HTML Entity Encoding?

HTML reserves five characters with special meaning: <, >, &, ", and '. To display them as literal text rather than as markup, you escape them with HTML entities — either named (&lt;, &amp;) or numeric (&#60;, &#x3C;). Beyond escaping the reserved set, entities also let you write Unicode characters that aren't easy to type: accented letters, mathematical symbols, currency signs, arrows, and emoji. Modern UTF-8 web pages can embed those characters directly, but entity encoding is still essential when generating HTML from user input (XSS prevention), embedding HTML inside JSON or attributes, or producing email-safe markup. This converter handles encode and decode both ways with a reference table for the most-used named entities. Working with broader text manipulation? See the URL Encoder/Decoder for percent-encoding, or the Base64 Encoder/Decoder for binary data.
Input Text
Encoded Output
Common HTML Entities
CharEntityCodeDescription
&&amp;&#38;Ampersand
<&lt;&#60;Less than
>&gt;&#62;Greater than
"&quot;&#34;Double quote
'&#39;&#39;Single quote
©&copy;&#169;Copyright
®&reg;&#174;Registered
&trade;&#8482;Trademark
&euro;&#8364;Euro
£&pound;&#163;Pound
&mdash;&#8212;Em dash
&bull;&#8226;Bullet

How to use this tool

  1. 1
    Pick encode or decode
    Encode converts plain text into HTML entities. Decode converts entities back to their literal characters.
  2. 2
    Paste your text
    Type or paste into the input pane. The output updates in real time as you type, so you can verify each entity match.
  3. 3
    Pick named or numeric (encode mode)
    Named entities are more readable; numeric entities work for any Unicode codepoint. Toggle between them based on what your downstream consumer expects.

Frequently asked questions

What are HTML entities?
HTML entities are encoded representations of characters that have special meaning in HTML — like < (&lt;), > (&gt;), & (&amp;), and " (&quot;). They prevent the browser from parsing the text as markup, and they let you display Unicode characters that aren't easy to type. Without entity encoding, content like 'a < b' would break HTML parsing.