HTML Entity Encoder / Decoder

Encode special HTML characters to entities and decode HTML entities back to characters.

Plain / HTML Input
0 lines0 chars
Entity Output
0 lines0 charsRead-only

About HTML Entity Encoder & Decoder

Encode special HTML characters to their entity equivalents to prevent XSS vulnerabilities, or decode HTML entities back to readable characters. Supports basic and extended entity sets.

Frequently Asked Questions

What are HTML entities?

HTML entities are special codes that represent characters reserved in HTML (like <, >, &) or characters not easily typed on a keyboard. For example, &amp;lt; represents < and &amp;amp; represents &.

When should I encode HTML entities?

Always encode user-provided content before inserting it into HTML to prevent XSS (Cross-Site Scripting) attacks. This converts < to &lt; and & to &amp;, making it safe to display.