Formatters & Code
HTML Escape
Escape HTML special characters so text is safe to paste into markup.
Results appear here.
What the result means
Escaping rewrites five characters so a browser will show them instead of treating them as markup. Ampersand, less-than, greater-than, and both quote marks are replaced with the entities a page expects. Unescape performs the reverse and only for those five exact spellings, so a numeric entity or an uppercase name is left untouched. The result is placed in a preformatted block and escaped a second time, which means you can read the entities and the page does not render or run any tags. That is a display aid for text you are about to paste into markup. It is not a sanitiser, and it will not make an untrusted fragment safe to insert into a live document.
Related tools
Questions
Which characters are escaped?
Ampersand, less-than, greater-than, double quote, and single quote are escaped. They become &, <, >, ", and '. Unescape reverses only those five exact entities and leaves numeric or uppercase forms untouched.
Does this remove scripts?
No. Escaping only rewrites five characters so a browser will display them instead of opening a tag. It does not parse a document, delete a script, or make untrusted markup safe to insert. Unescaping puts the characters back, and this page still does not run them.
Why do I still see the entities?
The result is escaped again before it is inserted, so you can read the entities instead of watching the browser interpret them. Copying uses the real escaped text, not the double-escaped display. That second pass is only a display guard.