HTML Escape
Escape HTML characters online: &, <, >, " and ' become &, <, >, " and ', so code or markup shows as plain text instead of being interpreted by the browser.
Loading tool…
Your files are processed on your device and are not uploaded for processing.
How to use this tool
- Enter your values or load the example shown in the tool.
- Check the available settings, then run the tool.
- Check the result, then copy it or download the text file.
Example
<p>Tea & cake</p> → <p>Tea & cake</p>
When to use this tool
Display markup in an HTML text node. Attributes, scripts and URLs need their own handling.
Supported formats & limits
Up to 5 MiB of text. Escape handles &, <, >, quotes and apostrophes. Unescape recognizes named and numeric entities ending in a semicolon. The result is displayed as inert text, not rendered as HTML.
Something isn’t working ↗Good to know
What happens when I change the input?
An edited input needs a new result. Run the action again; previous download links are removed so you cannot mistake an old output for the current one.
What inputs and limits apply to HTML Escape?
Up to 5 MiB of text. Escape handles &, <, >, quotes and apostrophes. Unescape recognizes named and numeric entities ending in a semicolon. The result is displayed as inert text, not rendered as HTML.