DevToolBoxGRATIS
Blog

Caratteri speciali HTML & Entità: Tabella di riferimento completa (2025)

6 min di letturadi DevToolBox

HTML entities let you display reserved characters, symbols, and special glyphs that would otherwise be interpreted as HTML code. This complete HTML special characters and entities reference provides copy-paste-ready tables covering essential characters, currency symbols, math operators, arrows, Greek letters, and typographic marks.

Encode and decode HTML entities instantly with our HTML Escape / Unescape Tool →

What Are HTML Entities?

An HTML entity is a string that begins with & and ends with ;. It renders as a single character in the browser. Entities exist because certain characters are reserved in HTML (like < and >) or are not available on a standard keyboard (like or ©).

Every entity can be written in three forms:

  • Named entity — e.g. &amp; (human-readable, but not every character has a name)
  • Decimal numeric — e.g. &#38; (works for any Unicode code point)
  • Hexadecimal numeric — e.g. &#x26; (same coverage as decimal, shorter for large code points)

Essential Characters

These six characters are the most frequently used HTML entities. The first five are critical because they have special meaning in HTML syntax.

CharacterNamed EntityDecimalHexDescription
<&lt;&#60;&#x3C;Less-than sign (opens HTML tags)
>&gt;&#62;&#x3E;Greater-than sign (closes HTML tags)
&&amp;&#38;&#x26;Ampersand (starts entity references)
"&quot;&#34;&#x22;Double quotation mark (attribute delimiter)
'&apos;&#39;&#x27;Apostrophe / single quote
(space)&nbsp;&#160;&#xA0;Non-breaking space

Currency Symbols

A comprehensive table of currency symbols used in international web development. Use these entities to ensure correct rendering regardless of font or encoding.

CharacterNamed EntityDecimalHexDescription
$&dollar;&#36;&#x24;Dollar sign
&euro;&#8364;&#x20AC;Euro sign
£&pound;&#163;&#xA3;Pound sterling
¥&yen;&#165;&#xA5;Yen / Yuan sign
&#8377;&#8377;&#x20B9;Indian Rupee
&#8382;&#8382;&#x20BE;Georgian Lari
&#8381;&#8381;&#x20BD;Russian Ruble
&#8378;&#8378;&#x20BA;Turkish Lira
&#8369;&#8369;&#x20B1;Philippine Peso
&#8363;&#8363;&#x20AB;Vietnamese Dong
&#8361;&#8361;&#x20A9;Korean Won
&#8362;&#8362;&#x20AA;Israeli New Sheqel
¢&cent;&#162;&#xA2;Cent sign
¤&curren;&#164;&#xA4;General currency sign
&#8383;&#8383;&#x20BF;Bitcoin sign
&#8371;&#8371;&#x20B3;Austral sign
ƒ&fnof;&#402;&#x192;Florin / Guilder sign
&#8370;&#8370;&#x20B2;Guarani sign

Math Symbols & Operators

Mathematical symbols commonly used in documentation, scientific content, and UI labels.

CharacterNamed EntityDecimalHexDescription
±&plusmn;&#177;&#xB1;Plus-minus sign
×&times;&#215;&#xD7;Multiplication sign
÷&divide;&#247;&#xF7;Division sign
=&equals;&#61;&#x3D;Equals sign
&ne;&#8800;&#x2260;Not equal to
<&lt;&#60;&#x3C;Less than
>&gt;&#62;&#x3E;Greater than
&le;&#8804;&#x2264;Less than or equal to
&ge;&#8806;&#x2265;Greater than or equal to
&asymp;&#8776;&#x2248;Approximately equal
&infin;&#8734;&#x221E;Infinity
&radic;&#8730;&#x221A;Square root
&sum;&#8721;&#x2211;Summation (sigma)
&prod;&#8719;&#x220F;Product (pi)
&int;&#8747;&#x222B;Integral
&part;&#8706;&#x2202;Partial differential
&nabla;&#8711;&#x2207;Nabla / gradient
&permil;&#8240;&#x2030;Per mille (per thousand)
°&deg;&#176;&#xB0;Degree sign
µ&micro;&#181;&#xB5;Micro sign
²&sup2;&#178;&#xB2;Superscript two (squared)
³&sup3;&#179;&#xB3;Superscript three (cubed)
½&frac12;&#189;&#xBD;Fraction one half
¼&frac14;&#188;&#xBC;Fraction one quarter
¾&frac34;&#190;&#xBE;Fraction three quarters
&isin;&#8712;&#x2208;Element of
&notin;&#8713;&#x2209;Not an element of
&sub;&#8834;&#x2282;Subset of
&sup;&#8835;&#x2283;Superset of
&cap;&#8745;&#x2229;Intersection
&cup;&#8746;&#x222A;Union
&and;&#8743;&#x2227;Logical AND
&or;&#8744;&#x2228;Logical OR
¬&not;&#172;&#xAC;Logical NOT
&there4;&#8756;&#x2234;Therefore
&empty;&#8709;&#x2205;Empty set

Arrows

Arrow characters for navigation, UI indicators, flow diagrams, and decorative purposes.

CharacterNamed EntityDecimalHexDescription
&larr;&#8592;&#x2190;Left arrow
&uarr;&#8593;&#x2191;Up arrow
&rarr;&#8594;&#x2192;Right arrow
&darr;&#8595;&#x2193;Down arrow
&harr;&#8596;&#x2194;Left-right arrow
&#8597;&#8597;&#x2195;Up-down arrow
&lArr;&#8656;&#x21D0;Left double arrow
&uArr;&#8657;&#x21D1;Up double arrow
&rArr;&#8658;&#x21D2;Right double arrow (implies)
&dArr;&#8659;&#x21D3;Down double arrow
&hArr;&#8660;&#x21D4;Left-right double arrow (iff)
&#8629;&#8629;&#x21B5;Carriage return arrow
&#8634;&#8634;&#x21BA;Counter-clockwise arrow
&#8635;&#8635;&#x21BB;Clockwise arrow
&#10140;&#10140;&#x279C;Heavy right arrow
&#10132;&#10132;&#x2794;Right arrow heavy head
&#8599;&#8599;&#x2197;North-east arrow
&#8600;&#8600;&#x2198;South-east arrow
&#8601;&#8601;&#x2199;South-west arrow
&#8598;&#8598;&#x2196;North-west arrow

Greek Letters

Greek letters are widely used in mathematics, science, and engineering documentation. Both uppercase and lowercase forms are listed.

CharacterNamed EntityDecimalHexDescription
Α / α&Alpha; / &alpha;&#913; / &#945;&#x391; / &#x3B1;Alpha
Β / β&Beta; / &beta;&#914; / &#946;&#x392; / &#x3B2;Beta
Γ / γ&Gamma; / &gamma;&#915; / &#947;&#x393; / &#x3B3;Gamma
Δ / δ&Delta; / &delta;&#916; / &#948;&#x394; / &#x3B4;Delta
Ε / ε&Epsilon; / &epsilon;&#917; / &#949;&#x395; / &#x3B5;Epsilon
Ζ / ζ&Zeta; / &zeta;&#918; / &#950;&#x396; / &#x3B6;Zeta
Η / η&Eta; / &eta;&#919; / &#951;&#x397; / &#x3B7;Eta
Θ / θ&Theta; / &theta;&#920; / &#952;&#x398; / &#x3B8;Theta
Ι / ι&Iota; / &iota;&#921; / &#953;&#x399; / &#x3B9;Iota
Κ / κ&Kappa; / &kappa;&#922; / &#954;&#x39A; / &#x3BA;Kappa
Λ / λ&Lambda; / &lambda;&#923; / &#955;&#x39B; / &#x3BB;Lambda
Μ / μ&Mu; / &mu;&#924; / &#956;&#x39C; / &#x3BC;Mu
Ν / ν&Nu; / &nu;&#925; / &#957;&#x39D; / &#x3BD;Nu
Ξ / ξ&Xi; / &xi;&#926; / &#958;&#x39E; / &#x3BE;Xi
Ο / ο&Omicron; / &omicron;&#927; / &#959;&#x39F; / &#x3BF;Omicron
Π / π&Pi; / &pi;&#928; / &#960;&#x3A0; / &#x3C0;Pi
Ρ / ρ&Rho; / &rho;&#929; / &#961;&#x3A1; / &#x3C1;Rho
Σ / σ&Sigma; / &sigma;&#931; / &#963;&#x3A3; / &#x3C3;Sigma
Τ / τ&Tau; / &tau;&#932; / &#964;&#x3A4; / &#x3C4;Tau
Υ / υ&Upsilon; / &upsilon;&#933; / &#965;&#x3A5; / &#x3C5;Upsilon
Φ / φ&Phi; / &phi;&#934; / &#966;&#x3A6; / &#x3C6;Phi
Χ / χ&Chi; / &chi;&#935; / &#967;&#x3A7; / &#x3C7;Chi
Ψ / ψ&Psi; / &psi;&#936; / &#968;&#x3A8; / &#x3C8;Psi
Ω / ω&Omega; / &omega;&#937; / &#969;&#x3A9; / &#x3C9;Omega

Typography & Punctuation

Typographic characters for professional-quality text rendering, including dashes, quotation marks, and legal symbols.

CharacterNamed EntityDecimalHexDescription
&mdash;&#8212;&#x2014;Em dash
&ndash;&#8211;&#x2013;En dash
&hellip;&#8230;&#x2026;Horizontal ellipsis
©&copy;&#169;&#xA9;Copyright sign
®&reg;&#174;&#xAE;Registered trademark
&trade;&#8482;&#x2122;Trademark sign
&bull;&#8226;&#x2022;Bullet
·&middot;&#183;&#xB7;Middle dot
§&sect;&#167;&#xA7;Section sign
&para;&#182;&#xB6;Pilcrow / paragraph sign
&dagger;&#8224;&#x2020;Dagger
&Dagger;&#8225;&#x2021;Double dagger
&lsquo;&#8216;&#x2018;Left single quotation mark
&rsquo;&#8217;&#x2019;Right single quotation mark
&ldquo;&#8220;&#x201C;Left double quotation mark
&rdquo;&#8221;&#x201D;Right double quotation mark
«&laquo;&#171;&#xAB;Left guillemet (French quote)
»&raquo;&#187;&#xBB;Right guillemet (French quote)
&lsaquo;&#8249;&#x2039;Single left-pointing angle quote
&rsaquo;&#8250;&#x203A;Single right-pointing angle quote
ª&ordf;&#170;&#xAA;Feminine ordinal indicator
º&ordm;&#186;&#xBA;Masculine ordinal indicator
¡&iexcl;&#161;&#xA1;Inverted exclamation mark
¿&iquest;&#191;&#xBF;Inverted question mark
&#9744;&#9744;&#x2610;Ballot box (unchecked)
&#9745;&#9745;&#x2611;Ballot box with check
&#9746;&#9746;&#x2612;Ballot box with X
&#9733;&#9733;&#x2605;Black star
&#9734;&#9734;&#x2606;White star
&hearts;&#9829;&#x2665;Black heart
&diams;&#9830;&#x2666;Black diamond
&clubs;&#9827;&#x2663;Black club
&spades;&#9824;&#x2660;Black spade

How to Use HTML Entities

You can use any of the three forms interchangeably in your HTML. Here are examples:

Named Entity (when available)

<p>Copyright &copy; 2025 My Company</p>
<!-- Renders: Copyright © 2025 My Company -->

Decimal Numeric Entity

<p>Copyright &#169; 2025 My Company</p>
<!-- Renders: Copyright © 2025 My Company -->

Hexadecimal Numeric Entity

<p>Copyright &#xA9; 2025 My Company</p>
<!-- Renders: Copyright © 2025 My Company -->

All three lines above render the same © symbol. Named entities are the most readable in source code, but numeric entities support every Unicode character, including emoji and CJK characters.

Best practice: Always escape <, >, &, and " in user-generated content to prevent XSS attacks. Use named entities in hand-written HTML for readability, and numeric entities in generated output for maximum compatibility.

<!-- Always escape user content to prevent XSS -->
<p>User said: &lt;script&gt;alert('xss')&lt;/script&gt;</p>

<!-- Use entities for special typography -->
<p>Price: &pound;19.99 &mdash; Limited offer</p>
<p>Temperature: 72&deg;F &plusmn; 2&deg;</p>
<p>&copy; 2025 Company&trade; &bull; All rights reserved</p>

<!-- Non-breaking spaces to keep units together -->
<p>The file is 4.5&nbsp;GB in size.</p>
<p>The speed limit is 100&nbsp;km/h.</p>

Escaping HTML in JavaScript

When inserting user-provided text into the DOM, you must escape HTML special characters to prevent Cross-Site Scripting (XSS) attacks. Here are reliable approaches:

Manual String Replacement

function escapeHtml(text) {
  const map = {
    '&': '&amp;',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    "'": '&#039;',
  };
  return text.replace(/[&<>"']/g, (char) => map[char]);
}

// Usage
const userInput = '<script>alert("xss")</script>';
const safe = escapeHtml(userInput);
// Result: "&lt;script&gt;alert(&quot;xss&quot;)&lt;/script&gt;"
document.getElementById('output').innerHTML = safe;

Using the DOM (Browser-Safe)

function escapeHtmlDOM(text) {
  const div = document.createElement('div');
  div.textContent = text;     // textContent auto-escapes
  return div.innerHTML;        // returns escaped HTML
}

// Usage
const escaped = escapeHtmlDOM('<img onerror="alert(1)">');
// Result: "&lt;img onerror=&quot;alert(1)&quot;&gt;"

Decoding Entities Back to Text

function decodeHtmlEntities(html) {
  const textarea = document.createElement('textarea');
  textarea.innerHTML = html;
  return textarea.value;
}

// Usage
const decoded = decodeHtmlEntities('&lt;p&gt;Hello &amp; welcome&lt;/p&gt;');
// Result: "<p>Hello & welcome</p>"

In React / JSX

React escapes text content by default. You only need to be careful with dangerouslySetInnerHTML:

// SAFE: React auto-escapes this
function SafeComponent({ userInput }) {
  return <p>{userInput}</p>;
  // <script> tags in userInput are rendered as text, not executed
}

// DANGEROUS: Only use with sanitized HTML
import DOMPurify from 'dompurify';

function RichContent({ htmlContent }) {
  const clean = DOMPurify.sanitize(htmlContent);
  return <div dangerouslySetInnerHTML={{ __html: clean }} />;
}

// Node.js / Server-Side (no DOM available)
function escapeHtmlNode(text) {
  return text
    .replace(/&/g, '&amp;')
    .replace(/</g, '&lt;')
    .replace(/>/g, '&gt;')
    .replace(/"/g, '&quot;')
    .replace(/'/g, '&#039;');
}

Rule of thumb: Never use innerHTML or dangerouslySetInnerHTML with unsanitized user input. Always sanitize with a library like DOMPurify if you must render HTML from external sources.

Frequently Asked Questions

Do I need to use HTML entities for characters like é or ñ in UTF-8 pages?

No. If your page is served with <meta charset="UTF-8"> (which is the modern default), you can type accented characters directly. Entities are only required for HTML-reserved characters (< > & ") and characters not available on your keyboard.

What is the difference between &amp;nbsp; and a regular space?

A regular space (U+0020) can be collapsed by the browser — multiple spaces become one, and lines can break at spaces. A non-breaking space (&nbsp;, U+00A0) prevents collapsing and prevents line breaks at that position. Use it to keep two words on the same line (e.g., "100 km") or to add extra spacing in HTML.

Can I use emoji as HTML entities?

Yes. Every emoji has a Unicode code point. For example, the rocket emoji can be written as &#x1F680; which renders as 🚀. However, modern browsers and UTF-8 encoding mean you can simply paste the emoji character directly.

Why does my HTML show &amp;amp; instead of &amp; on the page?

This means the text has been double-escaped. The source code contains &amp;amp; instead of &amp;. This commonly happens when a server or template engine escapes content that was already escaped. Check your rendering pipeline for redundant escaping steps.

Are HTML entities case-sensitive?

Yes, named entities are case-sensitive. &Amp; is not valid — it must be &amp;. Similarly, &Alpha; (Α) and &alpha; (α) are different characters (uppercase vs lowercase Greek alpha). Numeric entities are case-insensitive for the x prefix: &#X26; and &#x26; both work.

Bookmark this page as your go-to reference for HTML entities. For quick encoding and decoding, use our tool below.

Encode / Decode HTML entities with our HTML Escape Tool →

𝕏 Twitterin LinkedIn
È stato utile?

Resta aggiornato

Ricevi consigli dev e nuovi strumenti ogni settimana.

Niente spam. Cancella quando vuoi.

Prova questi strumenti correlati

&;HTML Entity Encoder\Escape / Unescape%20URL Encoder/Decoder

Articoli correlati

Meta Tag essenziali per ogni sito web: Guida completa ai meta tag HTML

Meta tag HTML essenziali per SEO, Open Graph, Twitter Cards, sicurezza e performance. Template completo pronto da copiare.

ASCII vs Unicode vs UTF-8: Encoding spiegato

Comprendi le differenze tra ASCII, Unicode e UTF-8. Come funziona la codifica dei caratteri e perché UTF-8 domina il web.