HTML Escape / Unescape
Escape special characters for safe HTML output, or restore them from entities. Use this html escape / unescape free, directly in your browser. It runs entirely on your device, so your data stays private, and it works on desktop and mobile without any signup.
HTML Escape / Unescape
Runs locally0 characters
Features
- Escapes & < > " '
- Reverse unescape mode
- Unicode preserved
- Copy or download
How to use HTML Escape / Unescape
- 1 Paste or type your content into the HTML Escape / Unescape input area.
- 2 Choose the options you need — the result updates instantly as you type.
- 3 Copy, download, or send the result to another tool when you are done.
Examples
Escape
<script>alert("x")</script> <script>alert("x")</script> Attribute value
<input value="a&b"> Common errors and fixes
The output is empty.
Check that the input is valid and not empty.
The result looks unexpected.
Review the format notes below the input and try again.
Frequently asked questions
Is HTML Escape / Unescape free?
Yes. HTML Escape / Unescape is free with no signup, no installation and no usage limits.
Is my data uploaded?
No. Everything runs locally in your browser — your data never leaves your device.
Does it work on mobile?
Yes. The layout adapts to small screens and works in any modern browser.
Related tools
See all Encoding toolsHTML Entity Encoder
Convert characters to HTML entities and back, including named and numeric entities.
String Escape / Unescape
Escape strings for JavaScript, JSON, C, Python or shell with the right backslashes.
URL Encoder / Decoder
Percent-encode text for safe use in URLs, or decode percent-encoded strings.