All Tools →
&

HTML Entities Encoder — & < > '

Convert special characters to HTML entities and decode HTML entities to text.

Free No Signup Copy & Paste

What are HTML Entities?

HTML entities are special codes that represent characters with special meaning in HTML. The < character starts a tag, so to display it as text you write < instead. Similarly & becomes &, > becomes >, and " becomes ".

Most Common HTML Entities

& → &amp; | < → &lt; | > → &gt; | " → &quot; | © → &copy; | ® → &reg; | ™ → &trade; | nbsp → &nbsp; (non-breaking space)

When do I need HTML entities?

Use HTML entities when inserting text content into HTML that may contain reserved characters (< > & "). This prevents broken markup and XSS security vulnerabilities in web applications.

What is the difference between named and numeric entities?

Named: &amp; — human readable. Decimal numeric: &#38; — works everywhere. Hex numeric: &#x26; — compact. All three produce the same output character.

Copied!