HTML Entity Encoder/Decoder

Escape special characters to HTML entities or decode any entity reference back to plain text. Handles & < > " ', non-ASCII characters and numeric references.

Prefilled with <b>"Hi"</b> — click Encode or Decode.

How to use the HTML Entity Encoder/Decoder

Paste your text, HTML source or existing entity string into the input box.

Click Encode to turn & < > " ' and non-ASCII characters into entities such as &amp; and &#8364;.

Click Decode to turn entities back into characters, then use Copy output to take the result.

Frequently asked questions

What is the difference between encoding and decoding?

Encoding replaces characters that are special in HTML with entity references such as &amp; or &lt;; decoding turns those references back into their original characters. It is a format change, not encryption.

Which HTML entities are supported?

The named entities &amp; &lt; &gt; &quot; &apos; &nbsp; plus any numeric decimal (&#123;) or hexadecimal (&#x1F600;) reference. Non-ASCII characters are encoded to decimal numeric references.

Is my text uploaded to a server?

No. Encoding and decoding happen entirely in your browser, so your text never leaves the page.

Related tools