HTML Entity Decoder / Encoder
Decode HTML entities (&, &, &) back to plain text, or encode plain text into safe HTML entities.
Use the HTML Entity Decoder / Encoder
Format:
Encoded HTML
Encode:
Decoded Text
0
Converted
0
Input chars
0
Output chars
Common HTML Entity Reference
| Char | Named | Decimal | Hex |
|---|
Copied!
Summary
The HTML Entity Decoder / Encoder converts HTML entities — named (&amp;), decimal (&), and hex (&) — back to readable plain text, and also encodes special characters like <, >, &, and " into their safe HTML equivalents. Everything runs in the browser; no data is sent to any server.
How it works
- Select Decode to convert HTML entities to plain text, or Encode to escape special characters.
- Paste or type your content into the input panel.
- Click Run or let the tool process automatically as you type.
- For encoding, choose Named (&amp;), Decimal (&), or Hex (&) output format.
- Copy the output or use Swap to feed output back as new input.
Use cases
- Decode entity-escaped text from a database or CMS export before processing.
- Fix double-encoded HTML from email clients or content management systems.
- Safely encode user-generated content before inserting it into HTML templates.
- Convert numeric entity references (< or <) to human-readable form.
- Decode named entities like &mdash;, &copy;, and &euro; for display.
- Prepare text for HTML email by encoding accented characters to portable entities.
- Verify encode/decode round-trips to confirm no data loss.
Frequently Asked Questions
Last updated: 2026-05-23 · Reviewed by Nham Vu