HTML Character Entities Cheatsheet - HTML Special Characters Reference

Unescaped &, <, > in dynamic HTML is how pages break and how XSS sneaks in. This table lists the entities you actually meet — reserved chars, symbols, arrows, math and Greek letters — each as both a named entity and the &#xNN; numeric form. Use it to escape output, fix mojibake, and know why & alone becomes &amp;. After reading you escape input confidently and render any symbol without hunting byte codes.

Reference·38 commands·Last updated 2026-07-21
htmlCharacter Entitiesxss

Basic Characters 6

&amp; 或 &#38;
& 和号 ampersand
&lt; 或 &#60;
< 小于号 less than
&gt; 或 &#62;
> 大于号 greater than
&quot; 或 &#34;
" 双引号 quotation mark
&apos; 或 &#39;
' 单引号 apostrophe
&nbsp; 或 &#160;
不间断空格 non-breaking space

Common Symbols 7

&copy; 或 &#169;
© 版权符号 copyright
&reg; 或 &#174;
® 注册商标 registered
&trade; 或 &#8482;
™ 商标 trademark
&deg; 或 &#176;
° 度数 degree
&plusmn; 或 &#177;
± 正负号 plus-minus
&times; 或 &#215;
× 乘号 multiplication
&divide; 或 &#247;
÷ 除号 division

Currency Symbols 5

&cent; 或 &#162;
¢ 分 cent
&pound; 或 &#163;
£ 英镑 pound
&yen; 或 &#165;
¥ 日元/人民币 yen
&euro; 或 &#8364;
€ 欧元 euro
&#8377;
₹ 印度卢比 rupee

Arrow Symbols 5

&larr; 或 &#8592;
← 左箭头 left arrow
&uarr; 或 &#8593;
↑ 上箭头 up arrow
&rarr; 或 &#8594;
→ 右箭头 right arrow
&darr; 或 &#8595;
↓ 下箭头 down arrow
&harr; 或 &#8596;
↔ 左右箭头 left-right arrow

Math Symbols 8

&forall; 或 &#8704;
∀ full name量词 for all
&exist; 或 &#8707;
∃ exists量词 exists
&infin; 或 &#8734;
∞ 无穷 infinity
&sum; 或 &#8721;
∑ sum summation
&radic; 或 &#8730;
√ 平方根 square root
&ne; 或 &#8800;
≠ 不于 not equal
&le; 或 &#8804;
≤ 小于于 less or equal
&ge; 或 &#8805;
≥ 大于于 greater or equal

Greek Letters 7

&alpha; 或 &#945;
α Alpha
&beta; 或 &#946;
β Beta
&gamma; 或 &#947;
γ Gamma
&delta; 或 &#948;
δ Delta
&pi; 或 &#960;
π Pi
&sigma; 或 &#963;
σ Sigma
&omega; 或 &#969;
ω Omega

Tips

  • In HTML, < > & must use entities, or they're parsed as tags or entity starts.
  • Numeric entities (&#num;) have broader compatibility; named entities (&name;) read better.
  • To prevent XSS, escape user input into entities before displaying.
  • Modern frameworks (React, Vue) escape by default, but dangerouslySetInnerHTML and v-html need manual handling.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us