HTML entity escaper
Paste text to convert characters like <, >, &, and quotes into HTML entities so they display literally instead of being parsed as markup. Runs locally.
Loading tool…
What HTML escaping does
It replaces the five characters that are significant in HTML — ampersand, less-than, greater-than, and both quotes — with their entity equivalents so they render as text rather than markup.
Why escape HTML
Displaying user input or code samples without escaping can break your layout or open the door to injection. Escaping renders the raw characters safely.
Great for code samples
Escaping a snippet lets you paste it inside a page and have the tags show up literally instead of being interpreted by the browser.
How to html escape
- Paste the text or markup you want to escape.
- Click Convert to produce the escaped output.
- Copy it into your HTML where it will display as literal text.