Developer tools TOOL
HTML entities
Encode and decode special HTML characters.
Enter your text
On-device processingHTML entities · How to use
Encode and decode special HTML characters.
Example
<p> → <p>
Things to know
Encodes and decodes HTML special characters. It does not audit the security of an HTML document.
Output options
Your files and results are never sent to a server. Everything is processed in this browser.
How to encode and decode HTML entities
Encode when you want an HTML snippet in a blog post or document to appear as text instead of being rendered as tags. Decode when text full of entities such as & or é needs to be readable again.
When to use this tool
- Show HTML tag examples as plain text in an article
- Read RSS or raw email text full of entities
- Unwrap double-encoded strings like &amp; one level at a time
Step-by-step instructions
- Paste the text or HTML to convert, or choose Use sample.
- Under Operation, choose Encode or Decode.
- Choose Convert.
- Copy the result into your HTML or document.
Frequently asked questions
Are accented letters and other non-ASCII characters encoded too?
Yes. Besides markup characters, every non-ASCII character becomes an entity, so é turns into é and © into ©. Encode only the parts that need it if you want the source to stay readable.
Does decoding unwrap &amp; all at once?
No. Decoding runs one level at a time, so &amp; becomes &. Repeat the decode until the original characters appear.
Is encoding enough to prevent XSS?
This tool converts special characters; it does not audit the security of an HTML document. Values placed inside attributes or scripts need handling suited to that context.