Encodes the five characters that matter in HTML — & < > " and ' — in the right order, so ampersands are not double-encoded. Decoding also resolves decimal and hexadecimal numeric references.
Runs entirely in your browser
To display characters like < > & " and ’ as literal text in HTML rather than having the browser interpret them as markup, they must be escaped as entities. This tool encodes those special characters into HTML entities and decodes entities back into plain text.
It escapes the five characters that matter in HTML in the correct order, so ampersands are not double-encoded — a common bug where & becomes &amp; because it was escaped after another character. On decoding it also resolves numeric references, both decimal and hexadecimal, so entities written in any of the standard forms are handled.
It runs in your browser, so nothing is uploaded. Use it to safely show code or user-supplied text on a page, to fix double-encoded content, or to decode entities you have found in HTML source.
TechToolsHQ is an independent, reader-supported tech platform. If this free tool saved you time, solved a problem, or helped your workflow, consider supporting our work. Your support helps us keep our utilities 100% free, private, and ad-free for everyone.