Encode and decode HTML entities for safe display
Input
Output
Common HTML Entities
&
&
Ampersand
<
<
Less than
>
>
Greater than
"
"
Double quote
'
'
Single quote
␣
Non-breaking space
©
©
Copyright
®
®
Registered
™
™
Trademark
€
€
Euro
£
£
Pound
¥
¥
Yen
—
—
Em dash
…
…
Ellipsis
←
←
Left arrow
→
→
Right arrow
•
•
Bullet
°
°
Degree
Examples
Before Encoding:
<script>alert("Hello & World")</script>After Encoding:
<script>alert("Hello & World")</script>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
- 1Paste text containing special characters
- 2Click Encode to convert to HTML entities
- 3Or paste HTML entities to decode
- 4Review common entity reference table
- 5Copy encoded/decoded result