Developer Tools

HTML Entity Encoder

Encode special characters to HTML entities or decode entities back to characters.

Common HTML Entities

&  →  &
<  →  &lt;
>  →  &gt;
"   →  &quot;
'   →  &#039;
©  →  &copy;
®  →  &reg;
™  →  &trade;

FAQ

Why encode HTML entities?

Encoding prevents XSS attacks and ensures special characters display correctly in HTML without being interpreted as markup.

Which characters are encoded?

The tool encodes the five essential HTML characters: &, <, >, ", and ' which could otherwise break HTML or enable XSS.

Related tools