Encode special characters to HTML entities. Decode HTML entities back to readable text. Auto-detects whether your input is encoded. 100% client-side.
| Character | Entity Name | Entity Number | Description |
|---|
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 <) are easier to read and remember. Numeric entities (like <) 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