snaptools

🔤 HTML Encoder/Decoder

Encode and decode HTML entities to prevent XSS attacks

Input (Plain Text)
Output (HTML Encoded)

Common HTML Entities:
• & → & (Ampersand)
• < → &lt; (Less than)
• > → &gt; (Greater than)
• " → &quot; (Double quote)
• ' → &#39; (Single quote)

Decoding accepts the full set of named entities (&copy;, &reg;, &nbsp; …). Encoding escapes only the five characters that are significant in HTML, so encode → decode returns your text unchanged.