About this tool
Characters like < and & have special meaning in HTML. Encode them to show code safely on a page, or decode entities to read them.
How to use HTML Entity Encoder & Decoder
- Paste your text.
- Choose encode or decode.
- Copy the result.
Frequently asked questions
Why encode HTML?
To display characters like < literally and to avoid breaking markup or injecting scripts.
What about accented letters?
Tick the option to turn non-ASCII characters into numeric entities.