Online Toolbox/Developer/HTML Entity Table

HTML Entity Table

Look up HTML special character entities.

HTML Special Characters

&
&
ampersand
<
&lt;
less than
>
&gt;
greater than
"
&quot;
quotation
'
&apos;
apostrophe
&nbsp;
non-breaking space
©
&copy;
copyright
®
&reg;
registered
&trade;
trademark
&euro;
euro
£
&pound;
pound
¥
&yen;
yen
¢
&cent;
cent
§
&sect;
section
&para;
paragraph
°
&deg;
degree
±
&plusmn;
plus-minus
×
&times;
multiplication
÷
&divide;
division
&larr;
left arrow
&rarr;
right arrow
&uarr;
up arrow
&darr;
down arrow
&spades;
spade
&clubs;
club
&hearts;
heart
&diams;
diamond
&hellip;
ellipsis
&ndash;
en dash
&mdash;
em dash
«
&laquo;
left guillemet
»
&raquo;
right guillemet
&permil;
per mille
&dagger;
dagger
&Dagger;
double dagger

Description

HTML Entity Encoder/Decoder converts special characters to HTML entities and back, essential for safe HTML content display.

Use Cases

1

Web development: Escape special HTML characters

2

Security: Prevent XSS by encoding user input

3

Content display: Show code snippets in HTML

4

Email: Safely display HTML content

5

Data migration: Convert between entity formats

Instructions

1

Enter text containing special characters

2

Choose encode or decode mode

3

View the converted result

4

Copy the encoded/decoded text

5

Use in your HTML documents

Notes

  • Common entities: &amp; &lt; &gt; &quot; &#39;
  • Named entities are shorter but numeric entities cover all characters
  • Encoding is essential for displaying code in HTML
  • Decoding converts entities back to readable text

FAQ

Q

When should I encode HTML entities?

A

Whenever displaying user-generated content or code snippets in HTML to prevent XSS attacks.

Q

What is the difference between named and numeric entities?

A

Named entities like &amp; are human-readable. Numeric entities like &#38; work for all Unicode characters.