HTML Entity Encoder
Escape and unescape HTML entities.
With entities
Encoding always escapes & < > " and ' — the characters that are unsafe in HTML markup and attributes. Decoding understands numeric entities and the common named ones.
About this tool
Convert text to and from HTML entities — named and numeric — so markup, attributes and non-ASCII content survive embedding. Runs entirely in your browser.
It runs completely in your browser — no input is sent anywhere, and this page loads no ads or third-party scripts, so it is safe to use with data you would not paste into a hosted service.