HTML Entity Encoder & Decoder Online

Convert special characters to HTML entities or decode entities back to text. Prevents XSS and ensures proper rendering.

How to Use

  1. 1

    Enter text

    Paste text with special characters or HTML entities.

  2. 2

    Encode or Decode

    Encode converts chars to entities; Decode reverses it.

  3. 3

    Copy

    Copy the safe HTML-encoded text.

FAQ

Why encode HTML entities?

HTML encoding converts characters like < > & " to their entity equivalents (&lt; &gt; &amp; &quot;), preventing XSS attacks and ensuring text displays correctly instead of being interpreted as markup.

What are common HTML entities?

&lt; (<), &gt; (>), &amp; (&), &quot; ("), &#39; ('), &nbsp; (non-breaking space), &copy; (©), &mdash; (—), &hellip; (…).