HTML Entity Encoder / Decoder
Encode special characters to HTML entities or decode entities back to plain text, entirely in your browser.
Pure browser JavaScript — uses the DOM text node API.
How to use this tool
- Paste text containing special characters.
- Click Encode entities to convert < > & " to < > & ".
- Or click Decode entities to reverse.
Encode special characters to HTML entities or decode entities back to plain text, entirely in your browser.
Frequently asked questions
- Why encode HTML entities?
- To safely embed user-supplied text in HTML without risking XSS injection.