HTML Entity Encoder/Decoder

Encode and decode HTML entities. Convert special characters to HTML entities.

How to Use HTML Entity Encoder/Decoder

  1. Select Encode or Decode mode
  2. Enter your text or HTML entities
  3. Click the convert button
  4. Copy the result or download

Common HTML Entities

& &
&lt; <
&gt; >
&quot; "
&nbsp; → (space)
&copy; ©

Why Encode HTML Entities?

  • Prevent XSS (Cross-Site Scripting) attacks
  • Display special characters in HTML
  • Safely include user input in web pages
  • Preserve formatting in HTML documents

Features

  • Encodes all special HTML characters
  • Decodes named and numeric entities
  • Quick swap between encode/decode
  • One-click copy and download
  • Works entirely in your browser - no data is sent to any server