Free Online HTML Entity Encoder & Decoder

Encode special characters as HTML entities or decode entities back to readable text. Supports named and numeric entities.

Input
Output

How to Use This HTML Entity Encoder & Decoder

Paste text to encode special characters as HTML entities, or paste encoded text to decode back. Standard encode converts < > & " and \'. Encode All converts every character to numeric entities.

What are HTML entities?

HTML entities are special codes that represent characters in HTML. For example, &amp; represents &, &lt; represents <, and &quot; represents double quotes.

When should I encode HTML?

Encode when displaying user input in HTML to prevent XSS attacks, or when you need to show HTML source code on a web page without the browser rendering it.

What does Encode All do?

Encode All converts every character to its numeric entity (e.g. H for H). This is useful when you need to obfuscate text or ensure maximum compatibility.

Is my data stored?

No. All encoding and decoding runs locally in your browser.