HTML Entity Encoder / Decoder

Encode and decode HTML entities in real time. No signup required.

0 chars

Common HTML Entities Reference

CharacterNameHTML Entity
&Ampersand&
<Less than&lt;
>Greater than&gt;
"Double quote&quot;
'Single quote&#39;
/Slash&#x2F;
[nbsp]Non-breaking space&nbsp;
©Copyright&copy;
®Registered&reg;
Trade mark&trade;
Euro sign&euro;
£Pound sign&pound;
¥Yen sign&yen;
¢Cent sign&cent;
Em dash&mdash;
En dash&ndash;
Ellipsis&hellip;
«Left angle quote&laquo;
»Right angle quote&raquo;
Left double quote&ldquo;
Right double quote&rdquo;

Frequently Asked Questions

What are HTML entities?
HTML entities are special codes used to represent characters that have special meaning in HTML, like < (&lt;), > (&gt;), and & (&amp;). They prevent browser rendering issues.
When should I encode HTML?
Encode HTML when displaying user-generated content, showing code examples, or any time you need to prevent XSS vulnerabilities by escaping special characters.
What is the difference between encoding and escaping?
HTML encoding and HTML escaping are the same thing — converting special characters to their entity equivalents so the browser treats them as text, not markup.
Does this handle numeric entities?
Yes. The decoder handles named entities (&amp;), decimal numeric entities (&#38;), and hexadecimal entities (&#x26;).
Is my content processed on a server?
No. All encoding and decoding happens in your browser using JavaScript. Nothing is sent to any server.