HTML Entity Encoder / Decoder
Encode special characters to HTML entities or decode HTML entities to text online for free.
Common HTML Entities
&&
<<
>>
""
''
©©
®®
™™
€€
££
¥¥
°°
±±
××
÷÷
µµ
¶¶
··
½½
¼¼
¾¾
««
»»
––
——
¡¡
¿¿
ÀÀ
ÁÁ
About This Tool
Encode special characters like <, >, &, and quotes to their HTML entity equivalents, or decode HTML entities back to readable text. Prevents XSS and ensures correct HTML rendering.
How to Use
Enter Text
Paste the text or HTML to encode or decode.
Encode or Decode
Click Encode to convert specials to entities, or Decode to convert entities back.
Copy
Copy the result.
Use Cases
XSS Prevention
Encode user input before inserting into HTML to prevent cross-site scripting.
Frequently Asked Questions
What characters are encoded?
All characters with named HTML entities plus any non-ASCII characters as numeric entities.