HTML Entity Encoder/Decoder

Encode and decode HTML entities and special characters

Frequently Asked Questions

What are HTML entities?

HTML entities are codes used to display reserved or special characters in HTML. For example, < is displayed using &lt; and & is displayed using &amp;.

When should I encode HTML entities?

Encode when displaying user-generated content in HTML to prevent XSS attacks, or when you need to show characters that have special meaning in HTML like <, >, &, and quotes.