Developer tools TOOL

HTML entities

Encode and decode special HTML characters.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

No account. No uploads.

HTML entities · How to use

Encode and decode special HTML characters.

Example

<p> → &lt;p&gt;

Things to know

Encodes and decodes HTML special characters. It does not audit the security of an HTML document.

Output options

Operation
Encode · Decode

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 &amp; or &#233; 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;amp; one level at a time

Step-by-step instructions

  1. Paste the text or HTML to convert, or choose Use sample.
  2. Under Operation, choose Encode or Decode.
  3. Choose Convert.
  4. 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 &eacute; and © into &copy;. Encode only the parts that need it if you want the source to stay readable.

Does decoding unwrap &amp;amp; all at once?

No. Decoding runs one level at a time, so &amp;amp; becomes &amp;. 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.

Save only the tools you need.