About this tool
Encode strings for safe HTML output or decode legacy content back to plain text. Handles named entities and both decimal and hex numeric entities.
How it works
- Choose encode or decode.
- Encode replaces &, <, >, " and ' with their entity forms.
- Decode understands named entities and numeric forms (', ').
When to use it
- Sanitizing user input before rendering it as HTML.
- Debugging why a CMS shows &amp; instead of &.
- Preparing an HTML email snippet that must survive a plain-text quote block.