Skip to content
HTML Encoder/Decoder

Encode and decode HTML entities for safe display

Input

Output

Common HTML Entities

&

&

Ampersand

<

&lt;

Less than

>

&gt;

Greater than

"

&quot;

Double quote

'

&#39;

Single quote

&nbsp;

Non-breaking space

©

&copy;

Copyright

®

&reg;

Registered

&trade;

Trademark

&euro;

Euro

£

&pound;

Pound

¥

&yen;

Yen

&mdash;

Em dash

&hellip;

Ellipsis

&larr;

Left arrow

&rarr;

Right arrow

&bull;

Bullet

°

&deg;

Degree

Examples

Before Encoding:

<script>alert("Hello & World")</script>

After Encoding:

&lt;script&gt;alert(&quot;Hello &amp; World&quot;)&lt;/script&gt;

Encode special characters as HTML entities to display them safely in web pages, or decode HTML entities back to readable characters. Essential for preventing XSS attacks, displaying code snippets, and handling special characters in web content.

How to Use

  1. 1Paste text containing special characters
  2. 2Click Encode to convert to HTML entities
  3. 3Or paste HTML entities to decode
  4. 4Review common entity reference table
  5. 5Copy encoded/decoded result

Frequently Asked Questions