π‘ HTML Entity Encoder and Decoder
Paste text or HTML entities and switch between encoded and decoded forms with one click.
Input
Result
Private by design. This tool runs entirely in your browser β nothing you enter or add is uploaded to any server.
How it works
- Paste the text you want to encode or the entities you want to decode.
- Choose Encode or Decode mode.
- Click Convert to get the transformed output.
Examples
- < becomes < and & becomes & when encoding.
- Decoding <div> returns the actual <div> characters.
- Useful for safely embedding user content or reading escaped HTML.
Frequently asked questions
Which entities are handled?
Common named entities plus numeric entities are converted. The browser's built-in encoding is used for reliability.
Is this safe for XSS prevention?
Encoding helps, but always use proper contextual escaping in your templates. This tool is for convenience.
Does anything leave my browser?
No. Conversion is 100% client-side.
Related tools
More Encoding tools βBase64 Encoder/Decoder
Encode text to Base64 or decode Base64 back to text β free, private, and UTF-8 safe.
URL Encoder/Decoder
Percent-encode text for URLs or decode percent-encoded strings β free and private.
Morse Code Translator
Translate text to International Morse code and decode dots and dashes locally.
Background Remover
Remove the background from a photo and save a transparent PNG β free, private, no sign-up.