SnipKit

HTML Entity Encoder/Decoder Online

Encode and decode HTML entities in named, decimal, or hex format.

Processed locally in your browser
Format:
Encode:

Type to encode →

← Type to decode

Common HTML Entities Reference
CharNamedDecimalHex
&&&&
<&lt;&#60;&#x3C;
>&gt;&#62;&#x3E;
"&quot;&#34;&#x22;
'&apos;&#39;&#x27;
©&copy;&#169;&#xA9;
®&reg;&#174;&#xAE;
&trade;&#8482;&#x2122;
&euro;&#8364;&#x20AC;
£&pound;&#163;&#xA3;
&mdash;&#8212;&#x2014;
&hellip;&#8230;&#x2026;

Unlock the full toolkit

Batch processing, no ads, higher limits, and API access.

Go Premium

Features

  • Real-time bidirectional encode/decode
  • Named, decimal, and hex entity formats
  • Encode all characters or special only
  • Handles mixed entity formats in input
  • No data sent to server

Frequently Asked Questions

What are HTML entities?
HTML entities are special codes used to represent characters that have special meaning in HTML or are not available on a standard keyboard. For example, &lt; represents the < symbol, &amp; represents &, and &copy; represents ©. They prevent browsers from interpreting characters as HTML code.
When should I encode HTML entities?
You should encode HTML entities when displaying user-generated content on a web page to prevent XSS (cross-site scripting) attacks. The five critical characters to always encode are: < > & " ' (less than, greater than, ampersand, double quote, single quote).
What is the difference between named, decimal, and hex entities?
Named entities use descriptive names like &amp; for &. Decimal entities use the character code number like &#38; for &. Hex entities use the hexadecimal code like &#x26; for &. All three produce the same result in browsers. Named entities are more readable, while numeric entities work for any Unicode character.
Can I decode mixed entity formats?
Yes! The decoder handles all three formats simultaneously. You can paste text containing a mix of named entities (&amp;), decimal entities (&#38;), and hex entities (&#x26;) and they will all be decoded correctly in one pass.
Is my data safe?
Absolutely. All encoding and decoding happens entirely in your browser using JavaScript. No data is transmitted to any server. Your content stays on your device at all times.