HTML Escape and Unescape
Convert <, >, &, quotes into HTML entities (<, &…) and back.
Processed in your browserFree
Related tools
- Base64 Encoder and DecoderConvert text (UTF-8) or a file to Base64, and decode a Base64 string, URL-safe variant included.
- URL Encoder and DecoderConvert the special characters of a text to %XX (percent-encoding) and decode an encoded URL.
- Clean Up TextRemove extra spaces, blank lines and duplicates, rejoin lines broken by a PDF, sort lines.
- JSON Formatter and ValidatorIndent, validate (with the line and column of the error), minify or convert JSON to CSV.
About this tool
Prepare a code snippet or a text for display in an HTML page by replacing special characters with their entities, or recover the readable text of content full of entities (é, é, …). Useful for blogs, CMSs, HTML emails and debugging.
How to use this tool
- 1Choose escape or unescape.
- 2Paste the text.
- 3Copy the result.
Limits to know
- Unescaping converts numeric entities (é, é) and common named entities; HTML tags are not removed.
- Escaping covers & < > " '; accented characters are kept as they are (UTF-8 being the standard).
- Accepted formats
- HTML, Text
- Maximum size
- 2 MB
Privacy and file processing
Data is processed in your browser and is never sent to a server.
Read our privacy policyFrequently asked questions
No: it converts special characters into entities and back, without touching tags. To strip HTML from a text, use "Clean Up Text".
In UTF-8, "é" is valid as is in an HTML page; only & < > and quotes need to be escaped. Numeric entities (é) are still recognized when unescaping.
