HTML Entity Converter
- Safe
- Processing runs on your device, so input/output is not sent anywhere.
Explanation
HTML entities are sequences used in HTML to represent characters that have a special meaning or are hard to type. There are two types: named character references and numeric character references.
Numeric character references use a numeric code point to represent a character. For example, © represents © (code point 169). Historically, they were used for characters within encodings such as ISO-8859-1. Numeric references are not the preferred form for Unicode text, but are still used for historical reasons.
Named character references use a human-readable name to represent a character. For example, © represents ©. Compared to numeric references, they are easier to read and write, and are generally recommended when available.
In HTML5, both named and numeric references are officially supported. This tool can output either form.
Encode
You can choose which characters to encode.
| All characters | Converts all characters in the input into HTML entities. |
|---|---|
| Non-ASCII | Converts only non-ASCII characters in the input into HTML entities. |
| HTML escape | Converts only the characters typically needed when showing code in HTML: &"'<>. |
| 5C characters (Shift-JIS specific) | Converts only the characters associated with the Shift-JIS 0x5C mojibake set, which can appear garbled in some environments. |
| Custom | Specify target characters explicitly. To convert only < and >, input <>. |
With the option, you can choose between numeric references and named references for the output.
Decode
Decodes all named and numeric character references detected in the input.