HTML Entity Encoder (Extended)
Paste text and convert every non-ASCII character to its &#nnn; numeric HTML entity reference instantly.
Encoded Output
Character Breakdown
| Char | Code Point | Entity | Count |
|---|
Copied!
Summary
Paste text and convert every non-ASCII character to its &#nnn; numeric HTML entity reference instantly.
How it works
- Paste or type your text into the input box.
- Choose encoding options: encode only non-ASCII, or also encode ASCII special characters.
- The encoder converts each character to its decimal numeric entity reference (&#nnn;).
- Copy the encoded output with one click.
- Use the decode tab to reverse the process and recover original text.
Use cases
- Safely embed accented European characters in legacy HTML templates.
- Encode user-generated content before inserting it into HTML attributes.
- Prepare multilingual text for HTML email clients with limited charset support.
- Encode special symbols in XML or XHTML documents.
- Obfuscate email addresses in HTML source to reduce spam harvesting.
- Debug character encoding issues by inspecting code points.
- Convert emoji and Unicode symbols to portable entity references.
- Sanitize pasted text before publishing in a CMS.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu