HTML Encoder / Decoder
How do I encode or decode HTML?
- Type or paste plain text into the Text box. The HTML box shows it with special characters written as entities.
- Type or paste HTML into the HTML box to decode it. The Text box shows the characters a browser would display.
- Pick Also every non-ASCII character to write accented letters, emoji and other non-ASCII characters as numeric references too.
- Press Copy result to copy the box you did not type in.
Which characters are encoded?
These five characters always become entities, because HTML reads them as markup.
| Character | Entity |
|---|---|
| & | & |
| < | < |
| > | > |
| " | " |
| ' | ' |
With Also every non-ASCII character, each character from U+00A0 upward becomes a decimal reference such as é for é, and an emoji becomes one reference such as 😀. The control characters U+0080 to U+009F stay as they are, because HTML reads their numeric references as other characters.
Which references does the decoder read?
The decoder reads text with the HTML parser of this browser. It reads all 2,231 named references in the HTML standard, decimal and hexadecimal references such as & and &, and the older names written without a semicolon such as ©. An ampersand that starts no reference stays as it is, and tags such as <b> stay as text.
Whichever of the two boxes you type into, the other one changes at once, and decoding gives the same characters a browser displays.
Common questions
- What is the HTML entity for an ampersand?
- &, or the numeric reference &.
- How do I show a less-than sign on a web page?
- Write < in the HTML. The greater-than sign is >.
- Why is an apostrophe written as '?
- Because ' works in every version of HTML.
- What is the difference between HTML encoding and URL encoding?
- HTML encoding writes characters as entities for page text. URL encoding writes them as percent codes for web addresses.
- Why does ©2026 decode to ©2026?
- Browsers read some old entity names even without a semicolon.