Encode special characters to HTML entities or decode entities back to plain text — 100% browser-based, instant, no data sent anywhere.
| Character | Named Entity | Numeric Entity | Description |
|---|---|---|---|
| & | & | & | Ampersand |
| < | < | < | Less-than sign |
| > | > | > | Greater-than sign |
| " | " | " | Double quote |
| ' | ' | ' | Single quote / apostrophe |
|   | Non-breaking space | |
| © | © | © | Copyright sign |
| ® | ® | ® | Registered sign |
| ™ | ™ | ™ | Trade mark sign |
| — | — | — | Em dash |
< > & ") to their safe HTML entity equivalents.€ — useful for legacy HTML systems.HTML entities are special sequences used to display reserved characters in HTML without the browser interpreting them as markup. The five most important are & (ampersand), < (less-than), > (greater-than), " (double quote), and ' (single quote). Encoding these characters is essential when inserting user-supplied content into HTML, generating HTML emails, writing XML, or building template strings. Decoding is equally important when parsing HTML from external sources or reading entity-escaped content from a database. This tool handles all standard named and numeric HTML entities via the browser’s built-in DOM parser — no external libraries needed, no data sent to any server.
Because the ampersand & is itself the entity escape character. If you replace < first and produce <, you must not re-encode the & or you would get &lt;. This tool always encodes & first to avoid double-encoding. If you paste already-encoded text and click Encode again, use Decode first.
Named entities like © are more readable, but only work in HTML5-aware parsers. Numeric entities like © are universally supported in HTML, XHTML, XML, and most legacy parsers. Use numeric entities when you need the widest compatibility — for example, in RSS feeds, XHTML documents, or SVG files.
For decoding, yes — the browser’s DOM parser handles all ~2,000 HTML5 named entities automatically. For encoding, this tool produces the five most critical named entities (&, <, >, ", ') plus optional numeric encoding for non-ASCII characters. This covers the vast majority of real-world encoding needs.