Encode and decode HTML entities exactly as browsers do: all 2,231 named references, decimal and hex, emoji, and the context rules for attributes.
Initializing in your browser…
Create a favicon from text, an emoji or an image and download favicon.ico, every PNG size, a web manifest and the HTML tags in one zip.
Generate SEO, Open Graph and X card meta tags with safe escaping, checks for missing properties and broken images, and title previews for six platforms.
Make random passwords in one click, with the strength in bits calculated from the settings and the time each would take to guess.
A log line arrives with HTML character references in it, and you need to know what it actually said, including whether something was escaped once or twice.
The line as it arrived
<p>Hello</p> then &lt;escaped&gt; then € then 😀
Decoded once, with every reference accounted for
<p>Hello</p> then <escaped> then € then 😀 < at 0 < U+003C > at 5 > U+003E < at 14 < U+003C > at 20 > U+003E & at 30 & U+0026 & at 45 & U+0026 € at 59 € U+20AC The standard remaps this one: € is U+20AC (€), not the C1 control at U+80. These references were written against windows-1252. 😀 at 71 😀 U+1F600
The doubly escaped &lt;escaped&gt; comes back as the text <escaped>, not as a live tag, because a correct decoder makes one pass; one that keeps replacing would turn escaped text back into markup. € is the euro sign, since browsers map references from 128 to 159 to the Windows characters old documents meant. And 😀 is decoded as one emoji rather than as half of a surrogate pair. The positions are character offsets in the input, so each reference can be found in the original line.
Escape text so it can go safely into HTML, or decode character references back into text exactly as a browser would. Every one of the 2,231 named references in the HTML standard is supported, along with decimal and hex references, the browser's special rules for old and attribute-value references, and emoji.
Why escaping matters. In HTML, characters like < and & have meaning: < starts a tag and & starts a character reference. To show them as text, or to put user-supplied text into a page safely, they have to be written as references such as < and &. Getting this wrong breaks layouts at best and opens the door to cross-site scripting at worst.
Encoding. By default only the five characters that can change how markup is read are encoded: & < > " and '. That is all a modern UTF-8 page needs. You can also encode every character above ASCII, for content that has to pass through systems that mangle Unicode, or every character the standard has a name for. References can be written as names (©), decimal (©) or hex (©); names fall back to numbers when a character has none. Emoji and other characters beyond the basic plane are encoded as a single reference, not as broken halves.
Decoding the way browsers do. The decoder follows the HTML standard's rules rather than a simple search and replace. It decodes once, so &lt; becomes the text < and never a live tag. It applies the special mapping for references between 128 and 159, which browsers read as Windows characters, so € becomes the euro sign. And it knows the 106 old names that work without a semicolon, which behave differently in element text and in attribute values, so a link such as ?a=1<=2 keeps its query string.
Understanding the result. In decode mode every reference is listed with its position and code point, and anything unusual, such as double escaping or a reference that could not be resolved, is explained. The lookup panel finds any named reference by name or by pasting the character. Your text never leaves the browser and is not put into the page address; only the settings are, so a link shares them.
Paste a snippet of HTML and encode it, so <div> appears on the page as text instead of becoming an element.
Decode text from a log or database to see what it really says, and whether it was escaped once or twice.
Search the lookup for "arrow" or "dash" and press a result to insert it or its reference.
In text and attribute values, & and < always, > by convention, and " or ' inside an attribute quoted with that character. The default setting escapes exactly these five.
Not on a UTF-8 page, which is almost every page today. Encode them only when the text will pass through a system that cannot handle Unicode.
The HTML standard maps references from 128 to 159 to the Windows-1252 characters they meant in old documents, so € is €. Browsers do the same.
It decodes once, to the text <. A decoder that keeps replacing would turn it into a real < and could turn escaped text back into live markup.
About a hundred old references, such as < and ©, work without a semicolon in element text, but inside an attribute value they are left alone when followed by = or a letter or digit, which protects query strings in links.
No. Encoding and decoding happen in your browser, and the text is not stored in the page address.
This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.