🔡 HTML Entities — encode & decode
Escape text into HTML entities for safe display in markup, and decode entities back to readable text.
How it works
- Paste or type your text into the input box.
- Choose "Encode to HTML entities" or "Decode from HTML entities" — the result appears instantly in the output box.
- Copy the result with one click. Unicode and emoji are fully supported.
- Everything runs locally in your browser, so even sensitive strings never leave your device.
Examples
- Encoding "<p>Tom & Jerry said "5 > 3" — café ☕</p>" produces "<p>Tom & Jerry said "5 > 3" — café ☕</p>".
- Decoding "<p>Tom & Jerry said "5 > 3" — café ☕</p>" returns the original "<p>Tom & Jerry said "5 > 3" — café ☕</p>".
- Errors are caught and explained — paste a broken value and the tool tells you what is wrong with it.
Frequently asked questions
What is HTML entities encoding?
HTML entity encoding turns characters like <, >, & and quotes into safe entities (<, >, &…) so text can be shown inside HTML without being parsed as markup.
Is my text or data uploaded to a server?
No. The HTML Entity Encoder / Decoder runs entirely in your browser using JavaScript — nothing you type or paste is sent anywhere, and everything disappears when you close the tab.
Is this tool free to use?
Yes, completely free with no sign-up, no watermarks and no usage limits. HTML Entity Encoder / Decoder is part of a collection of free tools where new tools are added after review.
Does it work on phones and tablets?
Yes. The layout is fully responsive and all processing is done on your device, so it works on any modern phone, tablet or computer — even offline once the page has loaded.
Related tools
More Encoding tools →Base64 Encoder / Decoder
Encode and decode Base64 text online with full Unicode and emoji support. Safe copy-paste for tokens, data URIs and API payloads.
ROT13 Encoder / Decoder
Apply the classic ROT13 cipher to obscure spoilers and puzzle answers — encoding and decoding are the same operation.
Text to Binary Converter
See any text as 8-bit binary bytes and convert binary back to readable text with validation.
Text to Hex Converter
Convert text to its hexadecimal byte representation and back, with full UTF-8 support for any language.