ConvertCaseTool

HTML Entity Encoder & Decoder

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

Output appears here...

Common HTML Entities

&&Ampersand
<&lt;Less than
>&gt;Greater than
"&quot;Double quote
'&#39;Single quote
/&#x2F;Forward slash
 &nbsp;Non-breaking space
©&copy;Copyright

🔣 What Are HTML Entities?

HTML entities are special codes used to represent characters that have special meaning in HTML. For example, the less-than sign (<) starts an HTML tag, so to display it as text you must encode it as &lt;.

Encoding prevents XSS (Cross-Site Scripting) attacks and ensures characters like &, <, >, and quotes display correctly in web pages instead of being interpreted as HTML markup.

Frequently Asked Questions

Which characters need encoding?

At minimum: & (ampersand), < (less than), > (greater than), " (double quote), and ' (single quote). These characters have special meaning in HTML and must be encoded when used as text content.

Why is HTML encoding important for security?

Without encoding, user-supplied text containing <script> tags could execute malicious JavaScript (XSS attack). Encoding converts these characters to harmless entities that display as text.

Is this tool free?

Yes, 100% free. No account, no ads. All processing happens in your browser.

🔗 Related Tools