Encoders
HTML Entity Encoder / Decoder
Encode special characters to safe HTML entities, or decode entity strings back to readable text. Essential for embedding user content in HTML.
Why encode HTML entities?
When inserting user-supplied text into HTML, characters like <, >, &, and " must be escaped to prevent XSS vulnerabilities. HTML entities (<, & etc.) tell the browser to render them as literal characters, not HTML syntax.
Decoding is the reverse: turning entity references back into their original characters, useful when reading entity-encoded content from an API or HTML source.
🔒 Privacy
All encoding and decoding happens in your browser. Your text is never sent to any server.