Free browser-based tools. No uploads. No tracking.

Advertisement

🔣 HTML Entity Encoder/Decoder

Convert special characters to HTML entities and back

Input

Output

Common HTML Entities

& → &
< → &lt;
> → &gt;
" → &quot;
' → &apos;
© → &copy;
® → &reg;
™ → &trade;
— → &mdash;
– → &ndash;
→ &nbsp;
€ → &euro;

FAQ

When should I encode HTML entities?

Encode HTML entities when displaying user-generated content on a webpage to prevent XSS attacks, or when you need to show HTML code as text rather than rendered markup.

What's the difference between named and numeric entities?

Named entities use words (like &amp;) while numeric entities use character codes (like &#38;). Both produce the same result. Named entities are more readable.