HTML Encoder & Decoder

Converts ampersands, angle brackets, quotes, and apostrophes to or from HTML entities.

0 chars
HTML Entity Output
0 chars

Encode and Decode HTML Entities

Escape HTML syntax so tags display as text instead of being interpreted as markup. For example, <div>Hello</div> becomes &lt;div&gt;Hello&lt;/div&gt;. Decode mode reverses named and numeric entities back into their original characters.

Characters and Entities

Angle Brackets

< and > become &lt; and &gt; so tags remain visible.

Ampersands

& becomes &amp; to prevent accidental entity parsing.

Quotes

Double quotes and apostrophes become &quot; and &#39;.

Numeric References

Decode decimal and hexadecimal references such as &#169; and &#x1F600;.

Related Developer Tools

Encode URL values with the URL Encoder & Decoder, compare markup using Text Compare, or format structured content with the JSON Formatter.