HTML Entity Encoder / Decoder

Encode special characters to HTML entities. Decode HTML entities back to readable text. Auto-detects whether your input is encoded. 100% client-side.

🟢📖 Quick Reference —Common HTML Entities

Character Entity Name Entity Number Description

🟢📖 About HTML Entity Encoding

HTML entities are special sequences that represent reserved characters in HTML. Since characters like <, >, &, and " have special meaning in HTML markup, they must be escaped when you want them to appear as literal text on a web page.

Named entities (like &lt;) are easier to read and remember. Numeric entities (like &#60;) work for any Unicode character and are more widely supported across older browsers. Both forms are equivalent —use whichever you prefer.

When to encode: whenever you embed user-generated text in HTML, render code snippets, build HTML emails, or work with XML/XHTML documents. Encoding prevents XSS injection and ensures your markup is well-formed.

See also: URL Encode/Decode · Base64 Encode/Decode · JWT Decoder