UtilFarm

HTML Entity Encoder & Decoder

Encode and decode HTML entities instantly. Prevent XSS, display code safely. 100% client-side.

Common HTML Entities Reference
CharacterNamedDecimalHex
<&lt;&#60;&#x3C;
>&gt;&#62;&#x3E;
&&amp;&#38;&#x26;
"&quot;&#34;&#x22;
'&apos;&#39;&#x27;
©&copy;&#169;&#xA9;
®&reg;&#174;&#xAE;
&mdash;&#8212;&#x2014;
Privacy: All encoding and decoding uses browser DOM APIs. No data is sent to any server.

Related Tools

Frequently Asked Questions

What are HTML entities?

HTML entities are special codes used to display reserved characters in HTML. For example, < is encoded as &lt; so the browser does not interpret it as an HTML tag.

Why should I encode HTML entities?

Encoding prevents the browser from interpreting user input as HTML/JavaScript code, which protects against Cross-Site Scripting (XSS) attacks and ensures content displays correctly.

What is the difference between named, decimal, and hex entities?

Named entities use readable names like &amp; for &. Decimal entities use the Unicode code point like &#38;. Hex entities use hexadecimal like &#x26;. All three produce the same result.

Is my data secure?

Yes. All encoding and decoding happens entirely in your browser using DOM APIs. No data is sent to any server.