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. & represents &, < represents <, > represents >, 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 (&) are human-readable. Numeric entities use the character's code point: & (decimal) or & (hexadecimal) — both represent &. All three forms are equivalent.