Jakojak.Tools
Encode:
Input (Raw Text)
Size: 0 B Lines: 0
Output (Encoded)

            
Size: 0 B Entities: 0
Common HTML Entities
Char Named Numeric
&&&
<&lt;&#60;
>&gt;&#62;
"&quot;&#34;
'&apos;&#39;
 &nbsp;&#160;
©&copy;&#169;
®&reg;&#174;
™&trade;&#8482;
€&euro;&#8364;
£&pound;&#163;
¥&yen;&#165;
—&mdash;&#8212;
–&ndash;&#8211;
…&hellip;&#8230;
«&laquo;&#171;
»&raquo;&#187;
°&deg;&#176;
×&times;&#215;
÷&divide;&#247;

What are HTML entities?

HTML entities are codes that stand for characters with a special meaning in HTML, such as &lt; for < and &amp; for &. You encode text as entities before you put it into a page, so that the browser shows it as text and does not read it as HTML.

How to encode HTML entities

  1. Pick Encode or Decode.
  2. In encode mode, select the extra characters to convert: Quotes, Apostrophe or Non-ASCII.
  3. Type or paste your text. The result updates as you type.
  4. Look up a character in the Common HTML Entities table.
  5. Click Swap to send the result back through the other direction.

Named or numeric entities?

&copy; and &#169; both give ©. Named entities are easier to read in HTML. Numeric entities work everywhere, including XML, which knows only a few named entities. If the output goes into XML, use numeric entities.

Frequently Asked Questions

When should I encode HTML entities?

Encode all text that comes from outside your code before you put it into HTML: comments, titles, product descriptions. If you do not, a < in the text opens a tag. This is how cross-site scripting (XSS) attacks start.

What is the difference between named and numeric entities?

&copy; and &#169; both give ©. Named entities are easier to read. Numeric entities also work in XML and in old specifications.

Do I need to encode quotes and apostrophes?

Inside element content, only <, > and & need encoding. Inside an attribute value, also encode the quote character that surrounds the value. Turn on Quotes and Apostrophe for output that goes into attributes.

What does the Non-ASCII option do?

It converts every character above code point 127 (accented letters, emoji, Chinese characters, symbols) to a numeric entity such as &#233;. You need it only when the destination does not handle UTF-8.

Does this tool send my data to a server?

No. Encoding and decoding run in your browser. Your text stays on your device.