HTML Entity Tool

Named mode encodes HTML-sensitive characters and common symbols. Decimal and hex modes also encode non-ASCII characters.

Browser text preview

Common HTML Entities Reference
CharacterEntityNumericDescription
&&&Ampersand
<&lt;&#60;Less than
>&gt;&#62;Greater than
"&quot;&#34;Double quote
'&apos;&#39;Single quote
 &nbsp;&#160;Non-breaking space
©&copy;&#169;Copyright
®&reg;&#174;Registered
&trade;&#8482;Trademark
&euro;&#8364;Euro sign
£&pound;&#163;Pound sign
&mdash;&#8212;Em dash
About HTML Entities

What Are HTML Entities?

HTML entities are special codes that represent characters which have meaning in HTML syntax or which cannot be easily typed on a keyboard. For example, the < character opens an HTML tag, so to display it as text you must write &lt;. This prevents the browser from interpreting it as markup.

When to Use HTML Entities

  • Displaying code: Show HTML/XML code snippets in web pages
  • Special characters: Use symbols like © ™ € in your content
  • Displaying pasted text: Encode characters so browsers show them as text instead of markup
  • Email templates: Some email clients require entity-encoded characters

For reference, see MDN's HTML entity glossary and the HTML Living Standard named character references.

See also: URL Encoder/Decoder and Base64 Encoder.

The HTML Entity Encoder and Decoder converts special characters to their HTML entity equivalents and back again. This is useful for displaying code snippets in web pages and handling characters that have special meaning in HTML like angle brackets, ampersands, and quotation marks. Paste your text and the tool instantly encodes or decodes common characters. Web developers, content editors, and template builders can use it to prepare text for display and check how encoded content will render across browsers.

Frequently Asked Questions

What are HTML entities?
HTML entities are special codes used to represent characters that have meaning in HTML (like < > & ") or characters not easily typed on a keyboard.
When should I use HTML entities?
Use them when displaying code snippets in HTML, when special characters need to appear as text, or when a template requires character references. Use framework escaping and sanitizers for security-sensitive HTML.
Named vs numeric entities?
Named entities use descriptive names (&amp; for &). Numeric use codes (&#38;). Named are more readable; numeric cover more characters.