Web Tools
HTML Entity Encoder / Decoder
Convert text to and from HTML entities directly in your browser.
Entities in output
7
Conversion status
Output changed
About This Tool
Use this HTML entity encoder and decoder when you need text that is safe to show inside HTML, or when copied content contains entities such as &, <, ©, or 💡 that you want to read normally.
How To Use It
- Choose Encode to escape HTML-sensitive characters, or Decode to turn entities back into readable text.
- Use the non-ASCII encode option when you also want characters such as symbols or accented letters represented as numeric entities.
- Paste or type the text to convert.
- Copy the result or use it as the next input to reverse the conversion.
Examples
Escape HTML markup
<strong>Hanakash</strong> becomes <strong>Hanakash</strong> so it can be displayed as text.
Decode copied entities
Tom & Jerry or © decodes back to readable characters.
Useful Notes
Handled entities
The decoder supports common named entities plus decimal and hexadecimal numeric references. Unknown named entities are left unchanged.
Local processing
The conversion runs in your browser, which is useful when you are cleaning snippets, templates, documentation, or CMS text.
FAQ
Is this the same as URL encoding?
No. HTML entities make characters safe or readable in HTML content, while URL encoding prepares text for URLs and query strings.
Will this sanitize unsafe HTML?
No. It converts text characters and entities. It is not a full HTML sanitizer or security filter.
Does it decode numeric entities?
Yes. Decimal entities such as © and hexadecimal entities such as 💡 are decoded when they are valid Unicode code points.
Related Tools
URL Encode / Decode
Convert URL text to and from percent encoding.
Base64 Encode / Decode
PopularConvert plain text and Base64 in either direction.
JSON Formatter & Validator
PopularValidate JSON, pretty-print it, minify it, and inspect JSON paths.
Case Converter
PopularConvert text into common writing and developer casing styles.