HTML Entity Encoder / Decoder
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Results
Your input is too long to share as a link, so the page address no longer includes it.
In HTML, characters like < and & have special meanings. To show them as text they’re written as entities: < and &. This tool converts in both directions.
How to use it
- Choose Encode or Decode.
- Paste your text or HTML.
- Copy the result.
Example: <a href="x">Tom & Jerry</a> encodes to <a href="x">Tom & Jerry</a>. Decoding café or café gives “café”.
Questions and answers
Which characters must be escaped?
& and < always. > is good practice. Inside attribute values, also the quote character that wraps the value: “ as " or ‘ as '.
Does decoding know every named entity?
It knows numeric entities (all of them) and the common names: accented letters, Greek letters, quotes, dashes, currency, math and arrows. A name it doesn’t know is left as written.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
text | The text to encode, or HTML to decode. |
mode | encode or decode. |
all | 1 to also encode non-ASCII characters. |
Example: https://toolabelle.com/html-entities/#text=Tom+%26+Jerry+%3C3&mode=encode&all=0