Convert special characters to HTML entities and decode them back — instantly in your browser.
Paste your text or HTML below. Choose Encode to convert special characters into HTML entities, or Decode to convert entities back to readable text.
Click any row to load that character into the encoder.
| Char | Named Entity | Decimal | Hex | Description |
|---|
HTML entities are special codes used to represent characters that have a reserved meaning in HTML, or characters that cannot easily be typed on a keyboard. For example, the less-than sign < must be written as < in HTML source code — otherwise the browser would interpret it as the start of an HTML tag. Entities can be written in three formats: named (&), decimal numeric (&), and hexadecimal numeric (&).
<, >, and & characters must be encoded so the browser treats them as text rather than markup." and ') must be encoded when they appear inside attribute values to avoid breaking the attribute string.Named entities like & or © are easier to read and remember, but only exist for a limited set of characters defined in the HTML specification. Numeric entities — both decimal (©) and hexadecimal (©) — work for every Unicode character, making them more universal. All three formats are equally valid in modern HTML5 and are decoded identically by all browsers.