HTML Entity Encoder / Decoder
Encode special characters like <, > and & into safe HTML entities, or decode entities like &lt; back to readable text. Essential when embedding code samples or user text in web pages.
How to use
- Paste your text or HTML.
- Click Encode to escape special characters, or Decode to convert entities back.
- Copy the result.
Frequently asked questions
Whenever text containing <, >, & or quotes must appear inside a web page without being interpreted as markup — like code examples or user comments.
Yes — named entities (&amp;), decimal (&#65;) and hex (&#x41;) forms are all decoded.