Developer tools
HTML Encoder/Decoder
Escape and unescape HTML entities — named and numeric.
How it works
- 1Pick Encode or Decode.
- 2Paste your content.
- 3Copy the safe / decoded output.
Use cases
- Sanitize user-generated HTML before display
- Debug entity-laden output from a server
- Prepare snippets for documentation
Frequently asked questions
Does this prevent XSS?
Encoding the five entities is a necessary but not sufficient step. Always sanitize on the server before storing.