HTML Entity Encoder
Escape text for HTML, or turn & and é back into characters.
Loading the tool on your device…
To show text such as <b> or a lone & on a web page, it has to be written as an entity. This tool escapes text so it shows as-is, and decodes entities back into characters while leaving real tags alone.
Updated 7 December 2026 · runs in your browser
How to use it
- Choose Encode or Decode.
- Paste your text or HTML.
- Copy the result.
Details
| Encodes | & < > " and ', plus accents and emoji if you ask |
|---|---|
| Decodes | Named entities (é), decimal (é) and hex (é) |
| Safety | Decoding never runs scripts or creates tags |
Questions
Do my files leave my computer?
No. This tool runs inside your browser tab. The page makes no network request with your data, and you can check that yourself in your browser's developer tools.
Is escaping enough to stop XSS?
Escaping text placed between tags is the main defence, but text inside attributes, scripts or URLs needs other rules. Use your framework's built-in escaping where you can.
Related tools
- URL Encoder and Decoder
Encode text for a web address, or make an encoded link readable.
- Base64 Encoder and Decoder
Turn text into Base64 and back, including URL-safe Base64.