HTML Entity Encoder & Decoder
Escape HTML-sensitive characters or restore encoded entity text.
Encode HTML special characters into entities or decode entity text back into readable characters.
About This Tool
ToolsFaction HTML Entity Encoder & Decoder converts common HTML-sensitive characters into safe entity representations and decodes entity references back into readable text. It is useful when preparing code examples, markup strings and escaped content.
How to Use
- Paste text or entity-encoded content into Input.
- Choose Encode or Decode.
- Review the transformed result.
- Copy the output when ready.
Example
Encode angle brackets in an HTML example so the markup can be displayed as text instead of interpreted as elements.
Frequently Asked Questions
Which characters are encoded?
The encoder converts ampersands, angle brackets, double quotes and apostrophes into HTML-safe references.
Can it decode named entities?
The browser-based decoder can decode HTML entity references recognized by the browser.
Does decoding execute HTML?
No. The decoded value is returned as text in the output field.
Is processing local?
Yes. Encoding and decoding run in your browser.