HTML Entity Encode / Decode

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

Result

How to Use

Enter text with special characters (or HTML entities to decode), select mode, and the result updates in real-time.

Frequently Asked Questions

HTML entities are special codes used to display reserved HTML characters. For example, < becomes &lt; and & becomes &amp;. They prevent browsers from interpreting text as HTML.

Encoding prevents XSS attacks and ensures that characters like <, >, and & display as text rather than being interpreted as HTML tags or entities.

The most commonly encoded characters are: & (&amp;), < (&lt;), > (&gt;), " (&quot;), and ' (&#39;).