Which characters are encoded?
Ampersand, less-than, greater-than, double quote, and single quote become HTML entities.
Encode and decode HTML entities
Runs in your browser. No signup required.
Follow along with the steps below.
Paste your HTML content or text into the input area
Choose Encode or Decode depending on the operation you need
Click Process to convert the content
Copy the result for use in HTML, templates, or web pages
Ampersand, less-than, greater-than, double quote, and single quote become HTML entities.
Entities the browser understands, including the ones this tool writes and common named entities. Decoding uses a textarea in the page, not a server.
It is the right step before you put text in HTML body or an attribute. It is not a substitute for a framework’s templating when you insert untrusted HTML.
No. Encode and decode run locally.
Advertisement