HTML Entity Encoder & Decoder

Encode text to named, decimal or hexadecimal HTML entities (such as the copyright sign) with an option to encode only the five dangerous characters, and decode entities safely without executing any tag.

Workspace

How the result is calculated

Encoding: the five characters & < > " ' are always encoded (&amp; &lt; &gt; &quot; &#39;), visible ASCII stays as is, and non-ASCII is encoded by name when it exists in the HTML4 table (252 entities), otherwise as decimal or hex. Decoding goes through DOMParser after escaping <, so no tags or scripts are executed, and it supports every HTML5 entity the browser knows.

Limits: The encoding name table is HTML4 (252 names), not all 2231 HTML5 names, so other characters are encoded numerically (which is correct). Composite emoji are encoded code point by code point. Decoding follows the browser’s HTML parser, so entities without a semicolon (&copy) are read as the browser does.

FAQ

Is decoding safe?

Yes, < is escaped first and nothing is injected into the page.

When should I use numeric encoding?

When the target does not know the name (XML does not know &copy;).

Newest tools

Recently added free tools — they run in your browser without uploading your data

All tools →

AES and ChaCha20 keys with correct IV/nonces via Web Crypto, Hex, Base64 and JWK formats, verification and bulk export

Local

Paste discussions (Reddit, Quora, YouTube) to extract pain points, repeated questions, phrases, topic clusters and title ideas

Local

A bookmarklet that analyses any page as your browser sees it after JavaScript: title, description, H1, links, images, Open Graph, JSON-LD and hreflang

Local

Legitimate link-building tactics, outreach message templates, a linkable-asset idea generator and a local opportunity tracker with CSV and JSON export

Local