webtrajans
en

HTML Entity Encoder / Decoder

Turn special characters into HTML entities, or decode character references such as &, © and © back into readable text.

Common HTML entities

CharacterNamedDecimalHex
&&&&
<&lt;&#60;&#x3C;
>&gt;&#62;&#x3E;
"&quot;&#34;&#x22;
'&apos;&#39;&#x27;
(non-breaking space)&nbsp;&#160;&#xA0;
©&copy;&#169;&#xA9;
®&reg;&#174;&#xAE;
™&trade;&#8482;&#x2122;
€&euro;&#8364;&#x20AC;
£&pound;&#163;&#xA3;
¥&yen;&#165;&#xA5;
§&sect;&#167;&#xA7;
°&deg;&#176;&#xB0;
±&plusmn;&#177;&#xB1;
×&times;&#215;&#xD7;
÷&divide;&#247;&#xF7;
–&ndash;&#8211;&#x2013;
—&mdash;&#8212;&#x2014;
…&hellip;&#8230;&#x2026;
«&laquo;&#171;&#xAB;
»&raquo;&#187;&#xBB;
‘&lsquo;&#8216;&#x2018;
’&rsquo;&#8217;&#x2019;
“&ldquo;&#8220;&#x201C;
”&rdquo;&#8221;&#x201D;
•&bull;&#8226;&#x2022;
→&rarr;&#8594;&#x2192;
←&larr;&#8592;&#x2190;
✓&check;&#10003;&#x2713;
Standard and sources

This tool runs entirely in your browser; your data is never sent to a server.

Written and reviewed by the Webin Agency Editorial Team · Last updated: December 1, 2026How we build our tools

How to use

  1. 1Choose Encode or Decode.
  2. 2When encoding, choose HTML special characters only or every non-ASCII character too.
  3. 3Pick a format: named (&copy;), decimal (&#169;) or hexadecimal (&#xA9;).
  4. 4Type or paste text; the result updates instantly. Copy it or flip direction with ⇄.

What is an HTML entity?

In HTML, characters such as &, < and > belong to the markup syntax, so to show them as text they must be written as character references. The WHATWG HTML standard defines three forms: named (&amp;), decimal (&#38;) and hexadecimal (&#x26;), and lists 2,125 named references. Encoding & < > " ' before inserting user input into a page is the basic step that prevents broken layouts and cross-site scripting (XSS).

Encoding options

“Special characters only” converts & < > " and ', which is enough to place text safely inside HTML and leaves letters like é or ñ untouched. “Every non-ASCII character” also converts accented letters, symbols like € and emoji — useful for legacy systems or email templates where the character encoding is uncertain. In named format, characters without a name fall back to a decimal reference. The apostrophe is written as &#39; for maximum compatibility.

How decoding works

Decoding uses your browser’s own HTML parser, so every named reference in the standard plus decimal and hex references are decoded correctly, and legacy forms without a semicolon (such as &copy) follow the standard’s rules. The text is parsed inside a textarea, so tags are never executed — only entities become characters. Everything runs in your browser and your text is never uploaded.

Frequently asked questions

What does &nbsp; do?

&nbsp; is a non-breaking space (U+00A0). It looks like a normal space but prevents a line break between two words, e.g. in “10 kg” or “Mr. Smith”.

Do I need to encode accented letters?

Not if the page is UTF-8 (meta charset="utf-8"); é, ü or ñ can be written directly. Encoding & < > " ' is enough for safe output.

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

They all produce the same character. &copy; is a readable name; &#169; is the Unicode code point in decimal and &#xA9; in hexadecimal. Not every character has a name, but every character can be written as a numeric reference.

Can I write emoji as HTML entities?

Yes, with a numeric reference to the code point: 👋 is &#128075; or &#x1F44B;. The tool handles characters outside the Basic Multilingual Plane correctly.

Add this tool to your website

Paste the code below into your site’s HTML; the tool runs on your page and stays up to date automatically.

Widget builder →Free to use. Please keep the source link below the widget.

Not happy with the results?

Talk to Webin Agency about fast, SEO-friendly websites, e-commerce and Google Ads management.

Get free advice

Related tools