Encode and decode HTML special character entities
Built & maintained by Pappu Venkata Subbi Reddy, founder of Clacify
Clacify's HTML Entity Encoder converts special characters that have meaning in HTML — such as <, >, &, ", and ' — into their safe HTML entity equivalents (<, >, &, ", ') to prevent them from being interpreted as HTML markup. The decoder reverses this, converting entities back to their original characters. Used when displaying user-generated content, code samples, or any text that might contain HTML-significant characters.
Special characters like < > & " have special meaning in HTML. If you put them directly into HTML content without encoding, the browser may interpret them as HTML tags or attribute delimiters, breaking your layout or creating XSS security vulnerabilities. Encoding them (< > &) makes them display as literal characters.
< = < (less than), > = > (greater than), & = & (ampersand), " = " (double quote), ' = ' (single quote/apostrophe), (space) = (non-breaking space), © = © (copyright), ® = ® (registered), ™ = ™ (trademark), ₹ = ₹ (Indian Rupee).