Encode and decode HTML entities — convert special characters to safe HTML and back.
| Entity | Character | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| " | " | Double quote |
| ' | ' | Single quote |
| | Non-breaking space | |
| © | © | Copyright sign |
| ® | ® | Registered trademark |
| ™ | ™ | Trademark |
| € | € | Euro sign |
| — | — | Em dash |
| – | – | En dash |
| … | … | Ellipsis |
| « | « | Left double angle quote |
| » | » | Right double angle quote |
HTML entities are special character sequences used in HTML to safely display reserved and special characters.
HTML entities are special character sequences that the browser displays as characters rather than markup. For example, the less-than sign (<) is written as <. Encoding is necessary to safely display user input, prevent XSS attacks and publish code examples on a page. Without encoding, the browser may break the layout or execute an unwanted script.
An encoder converts plain text into HTML entities: the ampersand & becomes &. A decoder does the reverse — it restores original characters from entities. Our tool on 101ip.ru handles both directions. Simply choose the conversion mode depending on what you need to do.
Most likely the text was encoded but the ampersand was not converted properly, or double-encoding occurred. Check whether you have a construction like &amp;copy; instead of &copy;. Use our decoder to clean the string. When inserting text into an HTML file, apply encoding only once per character.