About HTML Entity Encoder & Decoder
Encode characters such as ampersands and angle brackets for display as text, or decode HTML entities. Encoding is not a substitute for context-aware security controls.
How to use it
- Enter the text or entities.
- Choose encode or decode.
- Convert and copy the output.
Frequently asked questions
Does this sanitize HTML?
No. Entity conversion alone is not a complete HTML sanitizer or cross-site scripting defense.
Which characters are encoded?
The encoder handles ampersands, angle brackets, double quotes and apostrophes.