HTML Entity Encode and Decode

Make text safe to place inside HTML, or read escaped text. Processed in your browser.

Your files stay with you. Your files never leave your browser. This tool runs on your device: nothing is uploaded to our servers, so there is nothing for us to store or see.

How to use it

  1. Paste your text or HTML.
  2. Choose Encode or Decode and the options.
  3. Copy or download the result.

Questions people ask

Which characters must always be escaped?
In HTML text: & < and >. Inside attribute values also the quote character that wraps the value. The encoder escapes all of & < > " and '.
What is the difference between &#233; and &eacute;?
They both show é. The first is a numeric reference that works for any character; the second is a named entity that exists only for common characters. The option to use names applies only where a name exists.
Does decoding handle numeric entities?
Yes, decimal (&#8377;) and hexadecimal (&#x20B9;) references are decoded, plus the most common named entities such as &amp; &copy; and &nbsp;. Unknown names are left untouched.
Does escaping protect my site from XSS?
Escaping output is a key defence, but it must be done by your server or framework in the right context. This tool is for quick conversions, not a security layer.

Want this inside your own account?

Marketiism keeps your invoice numbers, GST reports, UPI payment links and WhatsApp reminders in one place. Leave your details and we'll call to set it up for your business, or start the trial yourself.

Start free trial

We use this only to contact you about Marketiism. No spam.

More Developer tools

XML Formatter

Pretty-print or minify XML and find unclosed or mismatched tags.

JSON Formatter

Format, validate and minify JSON, and see exactly which line has a mistake.

JSON to CSV

Turn a JSON list of records into CSV for Excel or Google Sheets.

CSV to JSON

Convert CSV rows into a JSON list, with numbers and true/false detected.

Try it on your own business for two weeks.

14 days free, no card. If you get stuck setting up WhatsApp, we'll get on a call and do it with you.