🏷️
HTML Entities
Encode and decode HTML entities
htmlentitiesencodedecode
Convert between text and HTML entities
Characters: 42
HTML Encoded
Special characters converted to HTML entities
Valid
HTML Decoded
HTML entities converted back to special characters
Valid
Common HTML Entities
Examples of frequently used HTML entities

Basic HTML

Original:

<p>Hello & welcome to "our" website</p>

Encoded:

&lt;p&gt;Hello &amp; welcome to &quot;our&quot; website&lt;/p&gt;

Special Characters

Original:

Copyright © 2024, Price: €100

Encoded:

Copyright &copy; 2024, Price: &euro;100

Quotes & Apostrophes

Original:

"Hello", he said, 'It's working!'

Encoded:

&quot;Hello&quot;, he said, &#39;It&#39;s working!&#39;
About HTML Entities
Learn about HTML entities and their usage

Common Entities

  • &lt; = < (less than)
  • &gt; = > (greater than)
  • &amp; = & (ampersand)
  • &quot; = " (quotation mark)
  • &copy; = © (copyright)

Use Cases

  • Display HTML tags as text
  • Prevent XSS attacks
  • Email content encoding
  • XML/XHTML compliance

Note: Always encode user input when displaying HTML to prevent security vulnerabilities.