Content and text
HTML Entity Encoder and Decoder
Encode special characters as HTML entities, or decode entities back to readable text.
Runs in your browser; nothing is uploaded. · Free, no account · 1 min
Importing a saved run into your account is coming soon. Until then, your last runs stay in this browser only, and you can download your files.
How to use
- Choose Encode or Decode.
- Paste the text or HTML into the box.
- When encoding, choose whether to escape only the reserved characters, or all non-ASCII characters as named or numeric references.
- Copy the result, or press swap to run it back the other way.
What it checks and how it works
Encoding replaces the five characters HTML reserves (the ampersand, the two angle brackets and the two quote marks) with entities, so text can be shown on a page without being read as markup. The named style also writes characters such as é as a named reference where the HTML Living Standard defines a name, and the numeric style writes every non-ASCII character as a hexadecimal reference. Decoding follows the HTML Living Standard's list of named character references and also reads decimal and hexadecimal numbers.
Encoding is not a full defense against injection: where text lands in a script, a URL or an attribute, each place has its own escaping rules. If decoded text still contains entities, the tool tells you it was probably encoded twice.
Sources
- HTML Living Standard: Named character references opened 29 Oct 2026
Related tools
URL Encoder and Decoder
Encode Arabic URLs as UTF-8 percent-encoding, or decode them back to readable text.
Base64 Encoder
Encode text to Base64 or URL-safe Base64, with Arabic and emoji handled as UTF-8.
HTML to Markdown Converter
Turn pasted HTML into tidy Markdown for docs, notes and content migrations.
Markdown to HTML Converter
Convert Markdown to clean, safe HTML you can paste into a CMS or a template.
Questions
About this tool
No. In a UTF-8 page, Arabic letters can be written as they are. Encode only the reserved characters, unless your system cannot handle UTF-8.
A named entity, such as the one for the copyright sign, is readable but exists only for some characters. A numeric entity works for any character.
The text was probably encoded twice, so one round of decoding leaves entities behind. Decode it again until none remain.
Get started today
Find out where your brand stands in AI. Free.
Run a free AI visibility analysis on your domain. No credit card, results in minutes. See what AI engines say about your brand today.
Brands already measuring their AI visibility with Zaher.


