How to use the HTML Entity Encoder & Decoder
- Paste text.
- Encode or decode.
- Copy the result.
Frequently Asked Questions
Is this sanitization?
No. Encoding is different from full HTML sanitization.
Is processing local?
Yes.
Escaping HTML safely
Characters such as <, > and & have special meaning in HTML. Encoding them lets you show code on a page without the browser treating it as markup.
Encoding is not the same as sanitizing. If you accept HTML from users, use a proper sanitizing library on the server rather than relying on this tool.