HTML Escape
Escape characters that would otherwise be read as markup, or turn entities back into the characters they stand for.
- 100% Free
- No account required
- Runs in your browser
- No data is uploaded
Not saved automatically
Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.
Input
Paste or edit your HTML or text, then click “Run tool”.
Type, paste or drop a file
HTMLLn 1, Col 1Spaces: 2UTF-851 bytes
Output
Escaped text (read-only).
Read-only
TextLn 1, Col 1Spaces: 2UTF-80 bytes
Using the HTML Escape
Overview
Escape characters that would otherwise be read as markup, or turn entities back into the characters they stand for.
Show markup as text on a page, or read entity-encoded strings from a template or feed.
How to use it
- Paste or type your HTML into Input, drop a file onto it, or press Example to load a sample.
- Choose the settings in the Mode bar under the editors.
- Press Run tool, or ⌘ ↵ from anywhere on the page.
- Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.
Input
HTML or text.
Settings
- Mode — Escape, Unescape
Output
Escaped text.
- Escapes < > & " and '
- Unescapes the same entities
- Safe to paste into templates
- Round-trips exactly
Tips
- Base64 here is UTF-8 safe, so accented and non-Latin text survives the round trip.
- URL encoding escapes a value for one part of a URL, not a whole URL.
- Decoding refuses input that is not valid, rather than returning something misleading.
Keyboard shortcuts
- ⌘ ↵
- Run the tool
- ⌘ K
- Search every tool
- /
- Filter the sidebar