HTML Entity Encoder & Decoder
Escape HTML-sensitive characters for safe text display or decode named and numeric HTML entities.
About this tool
How it works
- Use encoded text in HTML content, not as an attribute sanitizer; inspect decoded markup as plain text.
- HTML text escaping is not a complete sanitizer for attributes, scripts, or URLs; do not use it to trust untrusted markup.
Enter text containing <, >, &, or quotes to encode; to decode, enter entities such as & or '.
Example: <p>A & B</p>
Processed locally in your browser; nothing is uploaded.