Your files stay on your device
HTML entities encoder and decoder
Named and numeric HTML entities, encoded and decoded. Bare ampersands stay as they are unless you turn on escaping.
Loading editor…
The result shows up here as you type.
OptionsCopy result
Named and numeric forms
Entities come in two forms. Named ones use a short label, such as & for an ampersand. Numeric ones use a code point, either decimal as é or hex as é. Both forms point to the same character, since 233 in decimal is E9 in hex.
& ampersand
< less than sign
Double encoding and &
Escape an ampersand twice and & becomes &, which the page shows as the literal text &. Escape the text once and decode it once, and the round trip holds. Mixing encoded and raw input in the same field is a frequent cause of this.
More encoding tools
- Escape / unescape (/text/escape)
- Punycode / IDN (/encoding/punycode)
All encoding tools (/encoding)
Was this tool useful?
YesNo
Canonical HTML: https://nutter.tools/encoding/html-entities
Markdown version: https://nutter.tools/encoding/html-entities.md
Plain-text version: https://nutter.tools/encoding/html-entities.txt
Agent index: https://nutter.tools/llms.txt