Encode text to Base64, with correct Unicode handling.
Open toolHTML Entity Encoder
Escape or unescape HTML entities safely.
Privacy and limitations
Your tool input is processed in this browser rather than submitted to our server. Large inputs can be slow or exceed your device's memory. Keep a copy of the original and check the output before relying on it; formatting or conversion does not establish that the content is correct or safe.
Read the privacy policyAbout 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"
}