Skip to content
TR ToolRux

HTML Entity Encoder / Decoder

Encode special characters to HTML entities or decode HTML entities back to readable text.

Output

Enter text to see the encoded/decoded output

Common HTML Entities

&=&
<=&lt;
>=&gt;
"=&quot;
'=&#39;
 =&nbsp;
©=&copy;
®=&reg;
=&trade;
=&ndash;
=&mdash;
=&lsquo;
=&rsquo;
=&ldquo;
=&rdquo;
=&hellip;

Input

Mode: Encoding
📖 Learn More

Everything you need to know

HTML Entity Encoder

Convert special characters to their HTML entity equivalents. Characters like angle brackets, ampersands, quotes, and non-ASCII symbols are replaced with their safe HTML representations. This is essential for displaying user-generated content in web pages without breaking HTML structure or creating XSS vulnerabilities.

HTML Entity Decoder

Decode HTML entities back to their original characters. The decoder handles named entities (like &amp;), decimal numeric entities (like &#169;), and hexadecimal numeric entities (like &#xA9;). Useful when working with escaped HTML from APIs, databases, or scraped content.

Auto-Detection

The tool automatically detects whether your input contains HTML entities or plain text and selects the appropriate conversion mode. If your text contains entity patterns like &amp; or &#123;, decode mode activates automatically. You can override this with manual mode selection.

Common Entities Reference

A built-in reference table shows the most commonly used HTML entities including special characters, typography symbols, math operators, arrows, and card suits. This is a handy quick-reference when you need to look up a specific entity code.

Privacy & Security

All encoding and decoding runs entirely in your browser. No data is sent to any server, making it safe to process content containing sensitive information, internal markup, or proprietary templates.

Related Developer Tools

Format HTML markup with the HTML Formatter, encode URLs with the URL Encoder, or encode data with the Base64 Encoder.