Skip to main content
Back to tools

HTML Entities

Encode and decode HTML entities

About HTML Entities

HTML Entities lets you encode and decode html entities.

Category: Encoding.

Frequently asked questions

What are HTML entities?

Special codes that represent characters with reserved meaning in HTML or characters not easily typed. &amp; represents &, &lt; represents <, &gt; represents >, &nbsp; represents a non-breaking space.

When do I need to encode HTML entities?

When embedding user input or dynamic data inside HTML — especially <, >, &, and " — to prevent the browser from interpreting them as HTML tags or attributes, which could enable XSS attacks.

What is the difference between named and numeric entities?

Named entities (&amp;) are human-readable. Numeric entities use the character's code point: &#38; (decimal) or &#x26; (hexadecimal) — both represent &. All three forms are equivalent.

Related tools