$html-encoder
Encoders
Encode special characters to HTML entities or decode HTML entities back to text. Supports named entities (&) and numeric entities (&). Everything runs in your browser.
Mode:
Encodes & < > " and ' to named HTML entities. Use for escaping user content in HTML.
Output will appear here
Also converts non-ASCII characters (é, ñ, ü, etc.) to numeric entities. Use when the target charset is ASCII-only.
Output will appear here
HTML Entity Reference
| Character | Named | Decimal | Description |
|---|---|---|---|
| & | & | & | Ampersand |
| < | < | < | Less than |
| > | > | > | Greater than |
| " | " | " | Double quote |
| ' | ' | ' | Single quote / apostrophe |
| |   | Non-breaking space | |
| © | © | © | Copyright |
| — | — | — | Em dash |