HTML Encoder/Decoder

Encode special characters to HTML entities or decode them back. Prevent XSS attacks!

Common HTML Entities

<

&lt;

>

&gt;

&

&amp;

"

&quot;

'

&#39;

&nbsp;

©

&copy;

®

&reg;

&trade;

&euro;

£

&pound;

&mdash;

Enter text to encode

Features

  • Encode to entities
  • Decode from entities
  • Multiple encode modes
  • Numeric encoding
  • XSS prevention
  • Copy result

How to Use

  1. 1
    Choose encode or decode
  2. 2
    Paste your text
  3. 3
    Select encoding type
  4. 4
    Copy the result

Frequently Asked Questions

Why encode HTML?

To display HTML as text, prevent XSS attacks, and handle special characters.

What is XSS?

Cross-Site Scripting - injecting malicious scripts. Encoding prevents this.

Basic vs Full vs Numeric?

Basic: essential chars only. Full: more entities. Numeric: &#xxx; format.

When to use numeric?

When you need maximum compatibility or encoding non-standard characters.