UUtiliTools
home/developer/html-entity-encoder

HTML Entity Encoder & Decoder

Encode special characters to HTML entities or decode entities back to characters. Real-time results.

0 characters
0 characters

Common HTML Entities

EntityCharacterDescription
&&Ampersand
&lt;<Less than
&gt;>Greater than
&quot;"Double quote
&apos;'Apostrophe
&nbsp; Non-breaking space
&copy;©Copyright
&reg;®Registered
&trade;Trademark
&euro;Euro sign
&pound;£Pound sign
&yen;¥Yen sign
&mdash;Em dash
&ndash;En dash
&laquo;«Left guillemet
&raquo;»Right guillemet

Why encode HTML?

HTML entities prevent browsers from interpreting characters like <, > and & as markup. This avoids rendering issues and protects against XSS injection attacks.

Named vs numeric

Named entities like &amp; are human-readable. Numeric entities like &#38; work for any Unicode character and are useful when a named form does not exist.

Non-ASCII encoding

Enable "Encode all non-ASCII" to convert accented letters, symbols and emoji to numeric HTML entities. Useful for ensuring compatibility across all character encodings.