Ads disabled until consent granted.

Browser tool

HTML Entities Encoder/Decoder

Convert between plain text and HTML entities with HTML and XML modes that preserve astral Unicode characters.

Key points

Encode or decode instantly

Paste plain text or HTML entities, then convert them with a single button. Named and numeric references stay intact.

Switch between HTML and XML modes

HTML mode prefers named entities such as © while XML mode sticks to numeric references for strict parsers.

Share and download results securely

All conversions run locally in your browser. Share links encode state in the URL and downloads save plain-text snapshots.

HTML mode uses the HTML5 entity set, including named entities like ©.

Ads disabled until consent granted.

How to use this tool

  1. Step 1

    Choose encode or decode

    Select the Encode tab to generate entities from text or switch to Decode when you need the original characters back.
  2. Step 2

    Pick the right entity mode

    Use HTML mode for web content that supports named references or XML mode for feeds, templates, and strict parsers.
  3. Step 3

    Copy, download, or share

    After converting, copy the output, download a text file, or share a link that preserves the active tab and results.

Frequently asked questions

What is the difference between HTML and XML modes?
HTML mode outputs named entities when available, such as ©, while XML mode always uses numeric references so RSS readers and XML parsers accept the result.
Will existing entities be double-encoded?
No. The encoder first normalizes any existing entities before generating new ones so & stays a single ampersand entity.
Does the tool support emoji and other astral characters?
Yes. Astral Unicode characters are preserved whether you encode or decode thanks to the underlying html-entities library.
HTML Entities Encoder/Decoder — WebUtility.org | WebUtility.org