Special characters like & and < need to be escaped before they can safely appear as content inside HTML, instead of being read as markup. This tool encodes text to HTML entities or decodes entities back to plain text instantly, entirely in your browser.
How to use the html entity converter tool
- 1
Choose Encode or Decode
Pick the direction you need.
- 2
Paste your text or markup
Add raw text to encode, or HTML with entities to decode.
- 3
Copy the result
The converted text updates instantly.
Common use cases
Safely display code in HTML
Encode angle brackets and ampersands so a code snippet displays correctly instead of being interpreted as markup.
Read encoded text
Decode entities like & or < back into normal readable text.
Prepare user-generated text for embedding
Escape special characters before inserting text into an HTML template.
Frequently asked questions
The five characters that are special in HTML: & < > " and ' — encoding just these is enough to safely display text as content instead of markup.