Skip to main content

HTML Entity Encoder

Convert HTML special characters to entities and back. Supports & < > and numeric character references.

Common HTML Entity Reference

&&
<&lt;
>&gt;
"&quot;
'&#39;
/&#x2F;
`&#x60;
=&#x3D;
Share this tool
📖

How to Use

Step 1

Input

Input

Paste your HTML code or text into the input field

Step 2

Select

Select

Choose encode or decode mode

Step 3

Result

Result

Results are displayed in real-time, ready to copy

Features

Real-time Conversion

Encoding and decoding results appear as you type

XSS Prevention

Use for HTML escaping to prevent injection attacks

Browser-based

All processing happens in your browser

FAQ

HTML entities are alternative representations for characters with special meaning in HTML (< > & "). For example, < is written as &lt;.