HTML Entity Encoder & Decoder
Safely encode special characters into standard named HTML entities (&, <, >, ") or numeric decimal/hex codes to prevent cross-site scripting (XSS) and browser rendering bugs. Decode encoded HTML entities back to raw text instantly.
How to Use HTML Entity Encoder & Decoder
Select Mode
Choose 'Encode' (Text to HTML Entities) or 'Decode' (Entities to Plain Text).
Paste Content
Enter your text, code snippet, or HTML markup.
Copy Result
Instantly copy the safe encoded or decoded output.
About HTML Entity Encoder & Decoder
In HTML, characters like '<' and '>' define tag boundaries. Displaying literal code examples or user-submitted input requires escaping these characters into entities like '<' and '>' so the browser displays them as visible glyphs rather than executing them as markup.
Key Features
- Named entities (©, €, ™), Decimal (©), and Hex (©) encoding
- Security escaping for core XSS vectors (<, >, &, ", ')
- Real-time bi-directional conversion
- Character table reference for common typography and math symbols
- 100% private in-browser string transformation
Frequently Asked Questions
Related Tools
More in Developer ToolsJSON Formatter & Validator
Format, validate, beautify, and minify JSON with syntax highlighting.
Base64 Encoder & Decoder
Encode text and files to Base64, or decode Base64 strings back to original format.
URL Encoder & Decoder
Encode and decode URLs and query parameters for safe web transmission.