HTML Entity Converter
Escape HTML text delimiters and Unicode numerically, or decode basic and numeric character references.
Loading tool…
How to use HTML Entity Converter
Prepare plain text for an HTML text context or recover readable text from character references. Output remains inert text in this page, even when it contains markup characters.
- Choose encoding or decoding and paste the text.
- Select Run tool to convert supported HTML character references.
- Review the result, then copy it or download the generated file.
Good to know
- Up to 200,000 characters. Decode supports amp, lt, gt, quot, apos, nbsp, and semicolon-terminated decimal/hex numeric references; other named entities stay unchanged.
- Not an HTML sanitizer or attribute/JavaScript encoder. Numeric C1 references follow HTML’s legacy Windows-1252 mapping; invalid Unicode scalar references remain unchanged. Decoding runs once.
Decode a supported reference without recursively decoding text
Choose Entities to text and paste the example. Running decodes amp into an ampersand and the decimal numeric reference into the waving-hand character. The named copy reference remains exactly as written because it is outside this converter's six-name subset. Download decoded.txt when you want the resulting plain text. To obtain the copyright character within this profile, supply the numeric reference with value 169 instead. Decoding happens once, so text produced by one replacement is not automatically passed through another decoding cycle in the same run.
Input; choose Entities to text
Tom & Ana 👋 ©
Decoded text
Tom & Ana 👋 ©
- Supported names are amp, lt, gt, quot, apos, and nbsp. Numeric references require a terminating semicolon and a valid supported scalar value.
- Encoding uses text escaping and numeric references for non-ASCII characters. It is not a general attribute, JavaScript, or URL encoder.
- Treat decoded angle brackets as text. Entity conversion is not HTML sanitization and does not make untrusted markup safe to execute.
Common questions
Will © be decoded?
No. This bounded converter supports six named entities and numeric references; use © for that character.
Keep going with related tools
All developer →JSON String Escaper
Encode text as a JSON string literal or decode one JSON string into readable text.
DeveloperURL Encoder
Percent-encode a URL component with UTF-8 for safe query parameter and path-segment use.
DeveloperHTML Formatter and Minifier
Format static HTML or remove ordinary comments while preserving all other source characters.
TextHTML to Plain Text
Extract plain text from pasted HTML without mounting markup or requesting linked resources.
DeveloperQuoted-Printable Converter
Encode UTF-8 text as MIME quoted-printable or decode its byte escapes and soft breaks.