ToolNest

🙏 Ads help keep ToolNest free. Thank you for your support! ❤️

HTML Entities Encoder & Decoder

Encode special characters to HTML entities or decode entities back to text.

HTML Entities
Processed locally · & < > " '
● Ready
Input
Output

When should I encode HTML entities?

Use entity encoding when inserting user text into HTML to prevent XSS and broken markup. Common replacements: &, <, >, ".

How does decode work?

Decode uses a temporary DOM element’s textContent via DOMParser so entities become plain text without executing scripts.