HTML Entity Encoder & Decoder
Escape HTML-sensitive characters, decode entity-filled snippets from CMS content, and convert named or numeric entities locally in your browser.
52 characters
78 characters
Encoded successfully.
Template-safe text
Encode characters that can break HTML markup before pasting text into examples, templates, snippets, or CMS fields.
Entity decoding
Turn named entities, decimal entities, and hex entities back into readable text when debugging feeds or copied source.
Private local processing
The tool uses browser-native text and HTML parsing behavior. No upload endpoint or server-side conversion is involved.
Frequently Asked Questions
Is my text uploaded when I encode or decode HTML entities?
No. HTML entity encoding and decoding run with JavaScript in your browser. The text you paste is not sent to Convertr servers.
What are HTML entities?
HTML entities are text sequences such as & or < that represent characters safely inside HTML documents and attributes.
Which characters should I encode for HTML?
Encode at least ampersands, less-than signs, greater-than signs, double quotes, and apostrophes when displaying untrusted text in HTML.
Can this decode numeric HTML entities?
Yes. The decoder handles named entities, decimal numeric entities such as ©, and hexadecimal numeric entities such as 😀 using the browser HTML parser.
Related developer tools
- HTML MinifierCompress HTML snippets and files locally.
- URL Encoder & DecoderEncode URLs, query strings, and URL components.
- Image to Base64 ConverterCreate local image data URIs for HTML and CSS.
- Text Case ConverterConvert uppercase, title case and identifiers.
- JSON FormatterFormat, validate, and inspect JSON data.