Input
Developer utility
HTML Entity Converter
Encode HTML special characters, convert text to named or numeric entities, and decode entity strings back to readable text directly in your browser.
Ready to encode or decode HTML entities locally.
Input chars0
Output chars0
Entities0
Changed0
Output
Converted result
Preview
Decoded text preview
Detected entities
Entities found in input or output
| # | Entity | Decoded character | Code point |
|---|
Examples
Common entity conversions
Common HTML entities
| Character | Named entity | Decimal | Hex | Use |
|---|---|---|---|---|
& | & | & | & | Ampersand in text and URLs |
< | < | < | < | Opening angle bracket |
> | > | > | > | Closing angle bracket |
" | " | " | " | Double quote in attributes |
' | ' | ' | ' | Apostrophe in attributes |
© | © | © | © | Copyright symbol |
€ | € | € | € | Euro symbol |
— | — | — | — | Em dash |
HTML entity notes
- Use
<and>when showing HTML code as text on a page. - Encode ampersands before other characters to avoid double-interpreting existing entities.
- Named entities are readable, but numeric entities can represent any Unicode character.
- The preview is displayed as text so converted markup does not execute as HTML.
HTML entity converter FAQ
What characters must be escaped in HTML?
At minimum, escape ampersands and angle brackets. Quotes and apostrophes should be escaped inside HTML attributes.
Are named entities better than numeric entities?
Named entities are easier to read for common symbols. Numeric entities work for any Unicode code point and are more general.
Can this decode mixed named, decimal, and hex entities?
Yes. The decode mode handles common named entities plus decimal and hexadecimal numeric references.