HTML Entity Encoder / Decoder
Encode text to HTML entities, or decode HTML entities back to plain text.
Runs 100% in your browser•Nothing is uploaded to a server•Free forever
Input
Copied!
About this HTML entity encoder
Hit Encode to convert &, <, >, ", and ' to their named HTML entities and every other non-ASCII character to a numeric entity, so the result is safe to drop directly into HTML markup. Hit Decode to reverse the process — it understands numeric entities (decimal and hex) plus common named entities (amp, lt, gt, quot, apos, nbsp, mdash, and more). Anything it doesn't recognize as a valid entity is left untouched rather than mangled. Runs entirely in your browser — nothing you paste is uploaded.
More developer tools
- JSON Formatter
- Base64 Encode / Decode
- URL Encoder / Decoder
- Unix Timestamp Converter
- Regex Tester
- UUID Generator (v4 / v7)
- Hash Generator (MD5 / SHA / HMAC)
- JWT Decoder
- Password Generator
- JSON ⇄ CSV Converter
- Cron Expression Explainer
- Color Converter (HEX / RGB / HSL / HSV)
- WCAG Contrast Checker
- All tools on one page (home)