HTML entity encoding and decoding
HTML Escape / Unescape converts reserved characters such as ampersands, angle brackets, and quotes into entities, then converts entities back into readable text when needed.
Escape or unescape HTML entities quickly.
Use HTML Escape / Unescape to convert reserved markup characters into entities or decode entity-heavy text back into readable content.
Dev Workbench
Escape or unescape HTML entities quickly.
Run the tool to see output.
HTML Escape / Unescape converts reserved characters such as ampersands, angle brackets, and quotes into entities, then converts entities back into readable text when needed.
Escaping is useful when a page needs to show HTML as text. Without entities, the browser may treat angle brackets as real tags instead of visible code.
Escaping is one layer of safe output handling, but real XSS prevention depends on the exact HTML, attribute, URL, script, and CSS context used by your application.
<div title="A & B">Hello</div>
<div title="A & B">Hello</div>
Open HTML Escape / Unescape and review the default example input.
Paste your own input or upload source data when required.
Run HTML Escape / Unescape to generate output instantly in the browser.
Verify the output using the preview and formatting helpers on the page.
Copy the final result and continue with a related tool if needed.
Use related links to continue your workflow and keep your output consistent across ToolHarbor pages.
Common characters include ampersand, less-than, greater-than, double quote, apostrophe, and sometimes nonbreaking spaces or non-ASCII characters.
It decodes entities such as &, <, ©, and < back into readable characters.
No. Escaping must match the output context, and applications still need proper sanitization, validation, and framework-safe rendering.
Escape them before placing HTML snippets inside a page where they should be displayed as text rather than executed or rendered.