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
| Character | Entity | Number | Use |
|---|---|---|---|
| < | < | < | Less than, starts a tag |
| > | > | > | Greater than |
| & | & | & | Ampersand, starts an entity |
| " | " | " | Quote inside attributes |
| ' | ' | ' | Apostrophe |
| (space) | |   | Space that never breaks a line |
| © | © | © | Copyright |
| ₹ | — | ₹ | 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