Five characters have structural meaning in HTML — less than, greater than, ampersand, and both quote marks — and any of them appearing literally in content can break the page or open an injection hole. This tool escapes them to named entities and decodes entities back to readable text.
& becomes &, < becomes <, > becomes >, " becomes ", and ' becomes '. Escaping the ampersand first matters, otherwise you double-escape everything else.
For accented letters and emoji, no — UTF-8 handles them directly. The five structural characters must still be escaped regardless of encoding.
Context-appropriate escaping is the core defence, but the correct escaping differs inside HTML text, an attribute, a URL, and a script block. Use your framework’s contextual escaping rather than one blanket pass.
renders as a space that never wraps to a new line. Useful between a number and its unit, but strings of them used for layout indentation are a sign the CSS needs attention.
All free tools · Blog · About · Contact