HTML Entity Encoder and Decoder
Escape or unescape HTML entities (replace characters like <,>, &, " and \' with their HTML version)
Use this tool
HTML Entity Encoder and Decoder
Escape or unescape HTML entities (replace characters like <,>, &, " and \' with their HTML version)
How to use this tool
- Paste plain text or HTML entities in the corresponding field.
- Use the result for the expected HTML text context and inspect browser output.
Frequently asked questions
What can I use HTML Entity Encoder and Decoder for?
Display literal characters such as ampersands or angle brackets in examples.
Does HTML escaping sanitize a whole page?
Escaping handles a particular context. Treat untrusted HTML separately with a sanitizer and use appropriate escaping for attributes and other contexts.
Verify important results against the original source or your target system. Use and verification terms