HTML Entity Encoder / Decoder

Encode special characters to HTML entities or decode entities back to characters. Searchable reference table included.

Runs locallyNo sign-upKeyboard first
InputText or HTML
OutputEntity-encoded
<a href="/search?q=café&lang=fr" title='Tom & Jerry'>Café — 5 < 10 © 2026 👋</a>

Entity reference

Showing 105 of 105 entities — click a code to copy it
CharNameNamedDecimalHex
&amp
<lt
>gt
"quot
'apos
/sol
\bsol
spnbsp
spensp
spemsp
spthinsp
spZeroWidthSpace
spzwj
spzwnj
–ndash
—mdash
‘lsquo
’rsquo
“ldquo
”rdquo
…hellip
«laquo
»raquo
•bull
·middot
¡iexcl
¿iquest
†dagger
‡Dagger
€euro
£pound
¥yen
¢cent
¤curren
₹—
₩—
₿—
×times
÷divide
±plusmn
≠ne
≤le
≥ge
∞infin
≈asymp
√radic
∑sum
∏prod
∫int
∂part
∇nabla
²sup2
³sup3
¼frac14
½frac12
¾frac34
°deg
′prime
″Prime
←larr
↑uarr
→rarr
↓darr
↔harr
⇐lArr
⇒rArr
⇔hArr
↵crarr
ΑAlpha
ΒBeta
ΓGamma
ΔDelta
αalpha
βbeta
γgamma
δdelta
εepsilon
ζzeta
ηeta
θtheta
λlambda
μmu
πpi
σsigma
τtau
φphi
ψpsi
ωomega
©copy
®reg
™trade
§sect
para
¬not
¯macr
♠spades
♣clubs
♥hearts
♦diams
♪sung
✓check
✗cross
★starf
☆star
µmicro
Encoded11 entities79 → 122 chars87 B → 130 BProcessed locally

What are HTML Entities?

HTML entities are special character sequences that represent characters with meaning in HTML. For example, &lt; represents < and &amp; represents &. Encoding prevents browsers from interpreting these characters as HTML tags or attributes. This tool encodes and decodes HTML entities, including named entities, numeric references, and Unicode characters.

Common use cases

  • Encoding user input to prevent XSS (Cross-Site Scripting)
  • Displaying code snippets with < and > in HTML pages
  • Inserting special characters like ©, ®, and ™ in HTML
  • Decoding HTML entities found in web scraping results
  • Encoding strings for safe display in HTML email templates

How to use

  1. 1Choose Encode or Decode, and for encoding pick the format (named, decimal, hex) and scope.
  2. 2Type or paste text on the left — the output updates as you type.
  3. 3Copy the result, or search the entity reference below and click a code to copy it.

Frequently asked questions

When do I need to use HTML entities?

Always encode <, >, &, ", and ' when displaying user-generated content in HTML to prevent XSS attacks. Also use entities for special characters that aren't on your keyboard, like mathematical symbols, accented characters, and emoji.

What is the difference between named and numeric entities?

Named entities use readable names: &amp; &lt; &copy;. Numeric entities use Unicode code points: &#38; &#60; &#169;. Named entities are easier to read but not all characters have names. Numeric entities work for any Unicode character.