Ecommet

HTML Entity Encoder and Decoder

Escape text for safe use in HTML, or turn entities such as & and ₹ back into characters.

Loading the tool…

How to use it

Encode turns &, <, >, quotes and, if you choose, every non-ASCII character into entities. Decode turns any named or numeric entity back into its character.

Questions

Which characters must be escaped in HTML?

Always & and <. Escape > too, and ” or ‘ inside attribute values.

When should I encode non-ASCII characters?

Rarely. Pages served as UTF-8 can use characters such as ₹ or é directly. Encoding them helps only when the file or system cannot store UTF-8.

Have a project in mind?

Tell me what you need, even in a few lines, and I’ll come back with questions or a quote.