Skip to main content
Tools

HTML Entities

Escape < > & and other characters as HTML entities or decode them back. Supports all 2,125 named and numeric references, with a quick reference.

Characters to escape
Format

0 characters · 1 line

0 characters · 1 line

Common entities

Search by name, character, code point or category. Once the full table loads, all 2,125 names are searched.

HTML reserved characters

  • &amp;U+0026 · &#38; · &#x26;
  • &lt;U+003C · &#60; · &#x3C;
  • &gt;U+003E · &#62; · &#x3E;
  • &quot;U+0022 · &#34; · &#x22;
  • &apos;U+0027 · &#39; · &#x27;

Spaces and invisible characters

  • Invisible character&nbsp;U+00A0 · &#160; · &#xA0;
  • Invisible character&ensp;U+2002 · &#8194; · &#x2002;
  • Invisible character&emsp;U+2003 · &#8195; · &#x2003;
  • Invisible character&thinsp;U+2009 · &#8201; · &#x2009;
  • Invisible character&ZeroWidthSpace;U+200B · &#8203; · &#x200B;
  • Invisible character&zwnj;U+200C · &#8204; · &#x200C;
  • Invisible character&zwj;U+200D · &#8205; · &#x200D;
  • Invisible character&lrm;U+200E · &#8206; · &#x200E;
  • Invisible character&rlm;U+200F · &#8207; · &#x200F;
  • Invisible character&shy;U+00AD · &#173; · &#xAD;

Punctuation

  • &ndash;U+2013 · &#8211; · &#x2013;
  • &mdash;U+2014 · &#8212; · &#x2014;
  • &hellip;U+2026 · &#8230; · &#x2026;
  • &lsquo;U+2018 · &#8216; · &#x2018;
  • &rsquo;U+2019 · &#8217; · &#x2019;
  • &sbquo;U+201A · &#8218; · &#x201A;
  • &ldquo;U+201C · &#8220; · &#x201C;
  • &rdquo;U+201D · &#8221; · &#x201D;
  • &bdquo;U+201E · &#8222; · &#x201E;
  • &laquo;U+00AB · &#171; · &#xAB;
  • &raquo;U+00BB · &#187; · &#xBB;
  • &lsaquo;U+2039 · &#8249; · &#x2039;
  • &rsaquo;U+203A · &#8250; · &#x203A;
  • &bull;U+2022 · &#8226; · &#x2022;
  • &middot;U+00B7 · &#183; · &#xB7;
  • &sect;U+00A7 · &#167; · &#xA7;
  • &para;U+00B6 · &#182; · &#xB6;
  • &dagger;U+2020 · &#8224; · &#x2020;
  • &Dagger;U+2021 · &#8225; · &#x2021;
  • &permil;U+2030 · &#8240; · &#x2030;
  • &prime;U+2032 · &#8242; · &#x2032;
  • &Prime;U+2033 · &#8243; · &#x2033;
  • &iexcl;U+00A1 · &#161; · &#xA1;
  • &iquest;U+00BF · &#191; · &#xBF;

Currency

  • &cent;U+00A2 · &#162; · &#xA2;
  • &pound;U+00A3 · &#163; · &#xA3;
  • &yen;U+00A5 · &#165; · &#xA5;
  • &euro;U+20AC · &#8364; · &#x20AC;
  • &curren;U+00A4 · &#164; · &#xA4;

Symbols

  • &copy;U+00A9 · &#169; · &#xA9;
  • &reg;U+00AE · &#174; · &#xAE;
  • &trade;U+2122 · &#8482; · &#x2122;
  • &deg;U+00B0 · &#176; · &#xB0;
  • &micro;U+00B5 · &#181; · &#xB5;
  • &hearts;U+2665 · &#9829; · &#x2665;
  • &spades;U+2660 · &#9824; · &#x2660;
  • &clubs;U+2663 · &#9827; · &#x2663;
  • &diams;U+2666 · &#9830; · &#x2666;
  • &loz;U+25CA · &#9674; · &#x25CA;
  • &star;U+2606 · &#9734; · &#x2606;
  • &starf;U+2605 · &#9733; · &#x2605;
  • &check;U+2713 · &#10003; · &#x2713;
  • &cross;U+2717 · &#10007; · &#x2717;

Math

  • &times;U+00D7 · &#215; · &#xD7;
  • &divide;U+00F7 · &#247; · &#xF7;
  • &plusmn;U+00B1 · &#177; · &#xB1;
  • &minus;U+2212 · &#8722; · &#x2212;
  • &ne;U+2260 · &#8800; · &#x2260;
  • &le;U+2264 · &#8804; · &#x2264;
  • &ge;U+2265 · &#8805; · &#x2265;
  • &asymp;U+2248 · &#8776; · &#x2248;
  • &equiv;U+2261 · &#8801; · &#x2261;
  • &infin;U+221E · &#8734; · &#x221E;
  • &sum;U+2211 · &#8721; · &#x2211;
  • &prod;U+220F · &#8719; · &#x220F;
  • &radic;U+221A · &#8730; · &#x221A;
  • &part;U+2202 · &#8706; · &#x2202;
  • &int;U+222B · &#8747; · &#x222B;
  • &frac12;U+00BD · &#189; · &#xBD;
  • &frac14;U+00BC · &#188; · &#xBC;
  • &frac34;U+00BE · &#190; · &#xBE;
  • &sup1;U+00B9 · &#185; · &#xB9;
  • &sup2;U+00B2 · &#178; · &#xB2;
  • &sup3;U+00B3 · &#179; · &#xB3;
  • &not;U+00AC · &#172; · &#xAC;
  • &forall;U+2200 · &#8704; · &#x2200;
  • &exist;U+2203 · &#8707; · &#x2203;
  • &empty;U+2205 · &#8709; · &#x2205;
  • &isin;U+2208 · &#8712; · &#x2208;
  • &cap;U+2229 · &#8745; · &#x2229;
  • &cup;U+222A · &#8746; · &#x222A;

Arrows

  • &larr;U+2190 · &#8592; · &#x2190;
  • &uarr;U+2191 · &#8593; · &#x2191;
  • &rarr;U+2192 · &#8594; · &#x2192;
  • &darr;U+2193 · &#8595; · &#x2193;
  • &harr;U+2194 · &#8596; · &#x2194;
  • &lArr;U+21D0 · &#8656; · &#x21D0;
  • &uArr;U+21D1 · &#8657; · &#x21D1;
  • &rArr;U+21D2 · &#8658; · &#x21D2;
  • &dArr;U+21D3 · &#8659; · &#x21D3;
  • &hArr;U+21D4 · &#8660; · &#x21D4;
  • &crarr;U+21B5 · &#8629; · &#x21B5;

Greek letters

  • &alpha;U+03B1 · &#945; · &#x3B1;
  • &beta;U+03B2 · &#946; · &#x3B2;
  • &gamma;U+03B3 · &#947; · &#x3B3;
  • &delta;U+03B4 · &#948; · &#x3B4;
  • &epsilon;U+03B5 · &#949; · &#x3B5;
  • &theta;U+03B8 · &#952; · &#x3B8;
  • &lambda;U+03BB · &#955; · &#x3BB;
  • &mu;U+03BC · &#956; · &#x3BC;
  • &pi;U+03C0 · &#960; · &#x3C0;
  • &sigma;U+03C3 · &#963; · &#x3C3;
  • &omega;U+03C9 · &#969; · &#x3C9;
  • &Delta;U+0394 · &#916; · &#x394;
  • &Sigma;U+03A3 · &#931; · &#x3A3;
  • &Omega;U+03A9 · &#937; · &#x3A9;

Accented Latin letters

  • &aacute;U+00E1 · &#225; · &#xE1;
  • &agrave;U+00E0 · &#224; · &#xE0;
  • &auml;U+00E4 · &#228; · &#xE4;
  • &eacute;U+00E9 · &#233; · &#xE9;
  • &egrave;U+00E8 · &#232; · &#xE8;
  • &iacute;U+00ED · &#237; · &#xED;
  • &oacute;U+00F3 · &#243; · &#xF3;
  • &ouml;U+00F6 · &#246; · &#xF6;
  • &uacute;U+00FA · &#250; · &#xFA;
  • &uuml;U+00FC · &#252; · &#xFC;
  • &ntilde;U+00F1 · &#241; · &#xF1;
  • &ccedil;U+00E7 · &#231; · &#xE7;
  • &szlig;U+00DF · &#223; · &#xDF;
  • &aring;U+00E5 · &#229; · &#xE5;
  • &oslash;U+00F8 · &#248; · &#xF8;
  • &aelig;U+00E6 · &#230; · &#xE6;

How to use

  1. Choose “Encode” or “Decode”.
  2. Paste or type into the input, or click “Example” to try it. The result updates instantly.
  3. When encoding, choose which characters to escape and how. Escaping & < > " ' is enough to put text safely into HTML; add all non-ASCII characters when you need pure ASCII.
  4. When decoding, invalid or unknown references are listed under the input with their position.
  5. Search the reference below by name, character or code point (such as U+00A9) and click “Copy” to grab an entity.

FAQ

Is my data uploaded?

No. Encoding and decoding happen in your browser. Even the full entity table is loaded with the page, so nothing you type is sent to a server.

Which characters must be escaped?

In HTML text, & and < must be escaped and > should be. Inside an attribute value, also escape the quote that delimits it, " or '. As long as the page uses UTF-8, Chinese text and emoji never need escaping.

What is the difference between named, decimal and hex references?

Browsers treat them the same: &copy;, &#169; and &#xA9; all display ©. Named entities are easier to read, but only some characters have a name. For characters without one, such as Chinese or emoji, this tool falls back to hex.

Why is the apostrophe written as &#39; instead of &apos;?

&apos; only exists in HTML5 and XML, and older HTML does not know it. &#39; works everywhere. Both forms are decoded.

Why does &copy decode without a semicolon?

For compatibility with old pages, the HTML spec lets 106 common entities such as &amp, &lt, &copy and &nbsp drop the semicolon. Browsers still decode them but treat it as a syntax error. This tool decodes them too and reminds you to add the semicolon; other entities are not decoded without it.

Why does &#128; turn into €?

0x80–0x9F are control codes, but many old pages used those numbers for Windows-1252 characters. The HTML spec therefore tells browsers to use the Windows-1252 character instead: &#128; is € and &#150; is –. This tool does the same and lists a warning.

Keyboard shortcuts

/
Search tools (on a tool page, goes to the homepage search)
?
Show this help
Esc
Close a dialog
Ctrl / ⌘Enter
Run the tool's main action (where supported)

While you type in a text field, / and ? are typed as usual.