FREE DEVELOPER TOOL

HTML Entity Encoder / Decoder

Encode text into HTML entities or decode HTML entities back into readable text.

HTML encoding is context-specific. Encoding text for HTML content does not automatically make the same value safe for JavaScript, CSS, URLs, or every HTML attribute context.

0 / 250,000
Encodes text for HTML representation. This is not a universal sanitizer for every browser context.
Encoding Options
Converts all Unicode scalar values to named or numeric entities where possible. Otherwise numeric character references are used.
REFERENCE

Common HTML Entities

<
&lt;
Less than
>
&gt;
Greater than
&
&amp;
Ampersand
"
&quot;
Quotation mark
'
&#39;
Apostrophe
 
&nbsp;
Non-breaking space
©
&copy;
Copyright
®
&reg;
Registered trademark
™
&trade;
Trademark
€
&euro;
Euro
£
&pound;
Pound
¥
&yen;
Yen
IMPORTANT

Entity encoding is not a universal XSS defense

Use the encoder appropriate to the output context. HTML text, attributes, JavaScript, CSS, and URLs have different escaping and validation requirements.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.

The session has been paused.