HTML Entity Encode / Decode

Convert special characters to HTML entities or decode HTML entities back to characters. Supports named, numeric, and hexadecimal entity formats.

Entity Format

Options

Statistics
Input: 0 characters | Output: 0 characters | Entities: 0

How to Use

1

Enter Text

Paste text with special characters, or HTML-encoded entities.

2

Encode or Decode

Click Encode to convert to HTML entities, or Decode to convert back.

3

Copy Result

Copy the result to clipboard or download as a file.

Use Cases

XSS Prevention
Encode user input to prevent cross-site scripting attacks.
Display HTML Code
Show HTML tags as text on web pages.
Special Symbols
Insert copyright, trademark, and math symbols.
Attribute Values
Safely encode quotes inside HTML attributes.
✓ Copied to clipboard!