T-38 · Developer tools
HTML Entity Encoder and Decoder
Escape text for HTML with entities such as < and &, or decode named, decimal and hex entities back to text. Safe, local and instant.
- Runs in your browser
- Nothing uploaded
- No account
39 → 65 characters
About this instrument
What it does
Encode special characters so text can be placed safely inside HTML, or decode entities like ©, é, é and é back to readable text. Decoding is done with a lookup table rather than by parsing HTML, so pasted markup is never rendered or run.
How to use it
- Choose Encode or Decode.
- When encoding, choose whether to escape only & < > " ' or every non-ASCII character too.
- Paste your text and copy the result.
FAQ
Common questions.
01Which characters must be escaped in HTML?
& and < in text, plus " or ' inside attribute values. Escaping > as well is common and harmless.
02Does encoding prevent XSS?
Escaping & < > " ' protects text placed in HTML content and quoted attributes. It is not enough for URLs, JavaScript or CSS contexts, which need their own escaping.
03What is the difference between é and é?
None in the result: both are “é”. Numeric entities work for any Unicode character; named ones exist only for a fixed list.
Related instruments
- T-07URL Encode / DecodePercent-encode or decode URLs and query strings. Choose between encoding a component or a whole URL.Local
- T-06Base64 Encode / DecodeEncode text to Base64 or decode Base64 back to text, with full UTF-8 support and a URL-safe option. Private and instant.Local
- T-05JSON FormatterFormat, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.Local