Skip to content
Back

HTML Encoder/Decoder

Encode and decode HTML entities for safe display

Share this tool
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;