Skip to content
Lite Tools

Developer

HTML entity encoder and decoder

Encode special characters to HTML entities, or decode entities back to text. Decoding uses a safe textarea path so untrusted strings are not executed as scripts.

Enter text to convert.

How to use

Choose encode or decode, paste markup or text, and copy the result.

Questions

Which characters are encoded?
&, <, >, ", and ' are escaped on encode. Decode also understands numeric &#…; and &#x…; entities.
Is decode safe for untrusted input?
Yes. Decoding does not run scripts; it only turns entities into text.