Demo

HTML Entity Encoder/Decoder

Encode and decode HTML entities instantly. Convert special characters to HTML entities or decode them back to readable text.

Input

Enter text with special characters to encode

Encoded Output

HTML entity encoded result

About HTML Entities

HTML entities are special codes used to represent reserved characters in HTML. This prevents browsers from interpreting them as HTML code.

Encoding special characters helps prevent XSS (Cross-Site Scripting) attacks and ensures your content displays correctly.

Common HTML Entities

&&amp;Ampersand<&lt;Less than>&gt;Greater than"&quot;Double quote'&#39;Single quote &nbsp;Non-breaking space