HTML Entity Encoder icon

Free HTML Entity Encoder & Decoder Online

Encode and decode HTML entities, special characters, named entities, numeric entities, hexadecimal entities, Unicode text, and emojis directly in your browser.

100% FreeNo Signup RequiredPrivacy Friendly
Privacy note: this HTML entity converter processes your text in your browser. It does not need to upload the text to a server. Avoid entering passwords, private keys, payment data or other confidential information into any online tool.
Encode mode: type in the left box to convert characters into HTML entities. You can also edit the right box and decode it into readable text.
Ready. Enter text or HTML entities to begin.
Input: 0 characters Output: 0 characters Entities: 0

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

  1. Paste normal text or HTML markup into the left box and use Encode to create entity notation.
  2. Paste encoded HTML such as <div>, ©, © or 👋 into the right box and use Decode.
  3. Use hexadecimal numeric entities when you prefer &#x... notation.
  4. Enable preservation when you want existing valid entities to remain unchanged during encoding.
  5. Use Swap to exchange the two text areas without losing the current text.

HTML Entity Encoding Examples

For example, the ampersand character & becomes &amp;, the less-than sign < becomes &lt;, and the greater-than sign > becomes &gt;. A copyright symbol can be represented as &copy; or &#169;, while an emoji can be represented with a hexadecimal numeric entity such as &#x1F44B;.

Frequently Asked Questions

What is an HTML entity?
An HTML entity is a notation used to represent a character in HTML, commonly using a named form or a numeric character reference.
Can I decode named, decimal and hexadecimal entities together?
Yes. The decoder accepts mixed entity types in the same input and decodes them in one pass.
Does the decoder handle already encoded text?
Yes. Decoding is performed as a single HTML character-reference pass, so escaped entity text is not repeatedly decoded.
Can I encode apostrophes and quotation marks?
Yes. The encoder converts double quotes to &quot; and apostrophes to a numeric character reference.
Is this HTML entity converter free?
Yes. The browser-based converter is available without signup.