HTML Escape & Unescape
Escape reserved HTML characters into named, decimal, or hex character references, or unescape entity-encoded strings back to plain text.
About This Tool
Converts reserved HTML characters (&, <, >, ", ') into safe HTML character references or decodes existing named, decimal, and hexadecimal entities back into plain text.
Toggle Attribute mode when escaping text destined for HTML attribute values so double and single quotes are encoded alongside angle brackets and ampersands.
Key Features
- Bidirectional conversion: Switch between Escape (plain text to entities) and Unescape (entities to plain text) with one click or the swap button.
- Named, decimal, and hex formats: Choose named references (&, <, €), decimal numeric (&), or hexadecimal numeric (&) output.
- Attribute mode toggle: Include or skip quote escaping (" and ') depending on whether output goes inside an attribute or element body.
- Non-ASCII encoding: Optionally convert characters above ASCII 127 (such as currency symbols and typographic marks) into entities.