HTML Encoder / Decoder

Encode & decode HTML entities · Free · Instant

html • input
html • encoded
Common HTML Entities
& &
&lt; <
&gt; >
&quot; "
&apos; '
&nbsp; space
&copy; ©
&reg; ®
&trade;
&euro;
&pound; £
&mdash;

About HTML Encoding

HTML encoding converts special characters that have meaning in HTML into their entity equivalents. This prevents browsers from interpreting them as HTML tags. For example, < becomes &lt; so it displays as a literal less-than sign rather than the start of a tag. This is essential for preventing XSS (Cross-Site Scripting) attacks when displaying user-generated content.