GoWin Tools
Tools

Dev & Design

HTML Entity Encoder & Decoder

Encode special characters to HTML entities or decode them back. Named, decimal, and hex formats.

Test data
Format:
1
1

Entity reference

CharNamedDecHex
&&&&
<&lt;&#60;&#x3C;
>&gt;&#62;&#x3E;
"&quot;&#34;&#x22;
'&apos;&#39;&#x27;
NBSP&nbsp;&#160;&#xA0;
©&copy;&#169;&#xA9;
®&reg;&#174;&#xAE;
&trade;&#8482;&#x2122;
&euro;&#8364;&#x20AC;
£&pound;&#163;&#xA3;
¥&yen;&#165;&#xA5;
&mdash;&#8212;&#x2014;
&ndash;&#8211;&#x2013;
&hellip;&#8230;&#x2026;
&bull;&#8226;&#x2022;
&rarr;&#8594;&#x2192;
&larr;&#8592;&#x2190;
&uarr;&#8593;&#x2191;
&darr;&#8595;&#x2193;
×&times;&#215;&#xD7;
÷&divide;&#247;&#xF7;
±&plusmn;&#177;&#xB1;
°&deg;&#176;&#xB0;
½&frac12;&#189;&#xBD;
¼&frac14;&#188;&#xBC;
¾&frac34;&#190;&#xBE;
§&sect;&#167;&#xA7;
&para;&#182;&#xB6;
&dagger;&#8224;&#x2020;
How it works

Encoding converts special characters into safe HTML representations. Decoding reverses the process — useful when reading escaped HTML from APIs or databases.

Sanitize user input

Safely embed user text into HTML

Email templates

Some email clients need encoded entities

XML payloads

Encode reserved chars before embedding in XML

Decode API responses

Unescape HTML from CMS APIs

Prevent XSS

Encode before injecting into the DOM

Copy-paste from docs

Clean up auto-encoded content from Word/Google Docs

Debug encoding bugs

See exactly what your encoder is outputting