HTML Entity Encoder / Decoder
Paste text or HTML and instantly encode or decode HTML entities with local browser processing.
Options
What is an HTML entity encoder / decoder?
An HTML entity encoder converts special characters like <, >, &, quotes, and apostrophes into safe HTML entities.
An HTML entity decoder converts HTML entities back into readable text or HTML. This is useful for templates, CMS fields, code samples, and safe output rendering.
How to use the HTML Entity tool
- Paste text or HTML into the input field.
- Click Encode to convert special characters into HTML entities.
- Click Decode to convert entities back into readable text.
- Use Copy or Swap if needed.
Tips
- Encoding helps safely display raw HTML as text.
- Decoding is useful when content already contains entities and you want readable output.
- Use the extended encoding option when you want non-ASCII characters converted into numeric entities.
- Everything runs locally in your browser.
Related tools
You may also find these tools useful.
Base64 Encoder / Decoder
Encode and decode Base64 online instantly. Free Base64 converter with no login.
Encoding & Security
›
URL Encoder
Encode URL strings online
Encoding & Security
›
Markdown Preview
Preview Markdown and copy rendered HTML instantly.
Text & Content
›
Meta Tags / Open Graph Preview
Preview Google and Open Graph snippets and generate meta tags.
SEO & Webmaster
›
HTML Entity FAQ
Is my text sent to the server?
No. Everything runs locally in your browser.
What characters are encoded?
At minimum, the tool encodes &, <, >, double quotes, and apostrophes. Optionally it can encode extended characters too.
Can I decode HTML entities back to normal text?
Yes. The Decode action converts HTML entities back into readable characters.