HTML Entity Encoder & Decoder
Convert special characters to named, decimal, or hex HTML entities and decode encoded HTML entities back to raw text. · Updated
Options
Conversion Mode:
text
Formatted Outputtext
Draft saved locally.
Options
| Option | Description |
|---|---|
| Conversion Mode | Select whether to encode special characters into HTML entities or decode entities back into plain characters. |
FAQ
Why do I need to encode HTML entities?
HTML reserved characters like `<`, `>`, `&`, and quotes must be encoded to prevent browsers from misinterpreting them as HTML tags or attributes, protecting against XSS and display errors.
What is the difference between named, decimal, and hex entities?
Named entities use mnemonic names (e.g. `©`), decimal entities use ASCII/Unicode numeric values (`©`), and hex entities use hexadecimal values (`©`). All render identically in modern browsers.
Related tools
HTML Formatter
Clean up unformatted, messy HTML markup into well-indented, readable code with customizable line wrapping.
URL Encode & Decode
Encode, decode, or parse URL query strings and percent-encoded query parameters instantly.
Base64 Encode & Decode
Encode plain text to Base64 or decode Base64 strings to UTF-8 text with URL-safe encoding and automatic JSON formatting.
Markdown to HTML
Convert Markdown documents, tables, lists, and code blocks into clean, formatted HTML markup.