Encode text to Base64, with correct Unicode handling.
Open toolHTML Entity Encoder
Escape or unescape HTML entities safely.
Result will appear hereWhat is a html entity encoder?
This tool escapes special characters into HTML entities (like & into &) or decodes entities back into readable text - useful whenever raw text needs to be safely displayed inside HTML without being interpreted as markup.
How to use this tool
- 1Choose Encode or Decode.
- 2Type or paste your text.
- 3The result updates instantly - use Swap to flip direction.
- 4Copy the result.
Common use cases
Frequently asked questions
Which characters get encoded?
The five characters with special meaning in HTML: &, <, >, ", and '.
Does it decode numeric entities too?
Yes - both decimal (') and hexadecimal (') numeric character references are decoded, along with named entities.
Is this the same as URL encoding?
No - HTML entity encoding protects text from being interpreted as HTML markup, while URL encoding protects text used inside a URL. They solve different problems.
Is my data sent anywhere?
No - encoding and decoding happen entirely in your browser.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Encoding"
}