Text & Web Utilities
HTML Entity Encoder
Encode and decode HTML entities.
FreeNo sign-upWorks in your browser
Result
Your result will appear here.About the HTML Entity Encoder
Encode and decode HTML entities free. Escape special characters like <, >, &, and quotes into their safe entity forms (<, >, &) so user content can't break your markup or inject scripts — or decode entity-riddled text back into readable characters. Essential when displaying code snippets on a web page, cleaning scraped content, or debugging double-encoded strings.
How to use the HTML Entity Encoder
- 1Paste your text or HTML.
- 2Choose Encode or Decode.
- 3Copy the result.
Frequently asked questions
Why encode HTML entities?
Encoding characters like <, >, and & prevents them from being interpreted as markup — essential for safely displaying user content.
Which characters get encoded?
The core ones: & < > " and '. These cover the cases that break or inject markup.
What does & mean in HTML?
It's the entity for the ampersand (&) itself — encoded because a bare & starts an entity. Likewise < is < and > is >.