Developer tool

HTML entities: encode and decode

Show code on a web page without the browser running it, or turn & and ₹ codes back into normal characters.

Advertisement
Result

Advertisement

Common HTML entities

CharacterEntityNumberUse
<&lt;&#60;Less than, starts a tag
>&gt;&#62;Greater than
&&amp;&#38;Ampersand, starts an entity
"&quot;&#34;Quote inside attributes
'&#39;&#39;Apostrophe
(space)&nbsp;&#160;Space that never breaks a line
©&copy;&#169;Copyright
₹—&#8377;Indian rupee

Escaping <, >, & and quotes is also how websites stop cross-site scripting (XSS): text a user types is shown as text, never run as code.

Advertisement