HTML Escape
Your data never leaves your browserEscape special HTML characters to safe entity equivalents.
Brie — Bug Reporting Tool
Fixing broken HTML in production?
Brie captures the DOM, console errors, and a full session replay so your team can see exactly what went wrong.
About HTML Escape
Convert special characters (&, <, >, ", ') into their HTML entity equivalents (&, <, >, ", '). Essential for safely embedding user-generated content or dynamic text inside HTML documents to prevent cross-site scripting and parsing errors.
How to use
- Paste the text containing special characters into the input panel.
- The escaped text appears instantly in the output panel.
- Use the escaped text safely inside HTML attributes or body content.
More HTML Tools
Frequently Asked Questions
FAQs about HTML Escape
Which characters are escaped?
& for &, < for <, > for >, " for ", and ' for single quotes.
Why is HTML escaping important?
Unescaped characters in HTML can break page structure and open cross-site scripting (XSS) vulnerabilities when displaying user input.
Is HTML escaping the same as XML escaping?
Very similar. XML escaping uses ' for single quotes while HTML commonly uses '. Both are equivalent.
Does this handle Unicode?
This tool escapes the 5 standard HTML special characters. Unicode characters are passed through unchanged, as they are valid in HTML5.
Is my data safe?
Yes. All processing happens in your browser. No data is sent to any server.