HTML Entity Encoder and Decoder Online
This free HTML entity encoder and decoder helps developers, students, content creators and website owners convert special characters into HTML-safe entity notation or turn encoded entities back into readable text. It supports common HTML entities such as &, <, > and ", along with numeric and hexadecimal entity formats.
Use it as an HTML entity converter, HTML character encoder, HTML character decoder, or special character encoder when preparing markup for websites, templates, documentation and code examples. The tool works in modern desktop and mobile browsers and keeps the conversion process on the client side.
What this HTML Entity Converter Supports
- Named HTML entities such as
&,©and". - Decimal numeric entities such as
©. - Hexadecimal numeric entities such as
©and👋. - Mixed entity strings containing named, decimal and hexadecimal values.
- Unicode characters, accents, symbols and emoji.
- Already encoded content with an option to preserve valid entities during encoding.
- Invalid or unknown entity text is handled without silently deleting the original input.
How to Encode and Decode HTML Entities
- Paste normal text or HTML markup into the left box and use Encode to create entity notation.
- Paste encoded HTML such as
<div>,©,©or👋into the right box and use Decode. - Use hexadecimal numeric entities when you prefer
&#x...notation. - Enable preservation when you want existing valid entities to remain unchanged during encoding.
- Use Swap to exchange the two text areas without losing the current text.
HTML Entity Encoding Examples
For example, the ampersand character & becomes &, the less-than sign < becomes <, and the greater-than sign > becomes >. A copyright symbol can be represented as © or ©, while an emoji can be represented with a hexadecimal numeric entity such as 👋.
Frequently Asked Questions
" and apostrophes to a numeric character reference.