Encode and decode HTML entities instantly. Convert special characters to HTML-safe representations and vice versa.
| Character | Entity | Numeric | Description |
|---|---|---|---|
| & | & | & | Ampersand |
| < | < | < | Less than |
| > | > | > | Greater than |
| " | " | " | Double quote |
| ' | ' | ' | Single quote |
| |   | Non-breaking space | |
| © | © | © | Nakiliright |
| ® | ® | ® | Registered |
| ™ | ™ | ™ | Trademark |
| € | € | € | Euro sign |
| £ | £ | £ | Pound sign |
| — | — | — | Em dash |
HTML entities are special codes that represent characters which have meaning in HTML syntax or which cannot be easily typed on a keyboard. For example, the < character opens an HTML tag, so to display it as text you must write <. This prevents the browser from interpreting it as markup.
For a complete reference, see the HTML Living Standard named character references.
See also: URL Encoder/Decoder and Base64 Encoder.
The HTML Entity Encoder and Decoder converts special characters to their HTML entity equivalents and back again. This is essential for safely displaying code snippets in web pages, preventing cross-site scripting vulnerabilities, and handling characters that have special meaning in HTML like angle brackets, ampersands, and quotation marks. Paste your text and the tool instantly encodes or decodes all relevant characters. It supports named entities, numeric entities, and hex entities. Web developers, content editors, and security-conscious programmers use this tool daily to sanitise user input and ensure their HTML renders correctly across all browsers.