How to use HTML Entity Encoder and Decoder
Convert text characters to entity references for HTML or read a string containing ampersand escape sequences. Choose the operation and use the result in the appropriate context.
- Paste the source and select Encode or Decode.
- In Encode, use Common entities for typical HTML-significant characters or Encode non-ASCII for more extensive entity output.
- Select Process input and review the result.
Example input
Design & Development <2026>
Example use
Convert a literal ampersand in a documentation example to an entity, or decode a snippet that displays ampersand-escaped symbols.
Output and compatibility
The output is text. Escaping for an HTML text node differs from handling URL, CSS, JavaScript or untrusted HTML input in an application. Decoding can reveal markup characters rather than presenting them safely in another environment.
Troubleshooting
If a character still appears to be escaped, check whether the source was encoded twice. Inspect the actual text before deciding whether another pass is appropriate.
Use Unicode Escape for JavaScript-style Unicode escape sequences.
Frequently asked questions
Can it decode numeric references such as ©?
The decoder interprets supported named and numeric references.
Does it URL-encode Unicode?
Use URL Encode or Decode for percent encoding.