🔍

🔤 HTML / XML Entity Encoder & Decoder

Safely encode special characters into HTML/XML entities to prevent XSS, or decode HTML entities back into plain readable text online. 100% client-side.

📥 Input Text / HTML
📤 Converted Result
❓ Frequently Asked Questions

Why is HTML entity encoding important for web security?

HTML entity encoding converts potentially dangerous executable characters (like <, >, &, and quotes) into inert text representations (&lt;, &gt;, &amp;), preventing Cross-Site Scripting (XSS) code injection.

What characters are escaped in Basic HTML/XML mode?

Basic mode converts the 5 mandatory XML/HTML special characters: ampersand (&amp;), less-than (&lt;), greater-than (&gt;), double quotes (&quot;), and single quotes (&#39;).

Is my text data processed on external servers?

No. All entity encoding, decoding, string replacements, and file downloads operate 100% locally inside your web browser.

🗓️ Updated 2026-08-22

Report a tool bug

You Might Also Like