Encode special characters to HTML entities and decode HTML entities back to plain text. Supports named, decimal, and hexadecimal formats — free online tool.
What is HTML Entity Encoder / Decoder?
HTML Entity Encoder / Decoder is a free online tool that converts
special characters to their corresponding HTML entities and vice versa.
It supports multiple encoding modes: minimal (only HTML-special characters),
named entities (using ©, —, etc.), decimal numeric
references (©), and hexadecimal references (©). The
Inspect Characters feature shows the Unicode code point, decimal, hex,
and named entity for each character in your input.
When to use it?
Use the HTML Entity Encoder when you need to safely embed user-provided
text into HTML pages to prevent rendering issues or XSS vulnerabilities.
The different encoding modes let you choose between minimal encoding for
readability or full encoding for maximum compatibility. The character
inspector is useful for debugging encoding issues and understanding
Unicode characters in your content.
Common use cases
Web developers use HTML Entity Encoder to sanitize user input for HTML
templates, convert code snippets for display in blog posts, decode
entity-encoded strings from APIs, prepare text for XML/RSS feeds, and
debug double-encoded entities. Email template developers use the hex
encoding mode to ensure special characters render correctly across
all email clients.