Skip to main content

Unicode to HTML Entities Converter

Convert Unicode text to HTML entities and back. Encode to named (©), decimal (©) or hexadecimal (©) entities, encode all characters or only special/non-ASCII ones, and decode any entity type back to plain text — with a per-character reference table.

Input

Output

Result
Character Reference
CharCode PointNamedDecimalHex
No data yet
Was this helpful?

Guides

Convert Unicode text into HTML entities — and turn HTML entities back into readable text — right in your browser. Whether you need to safely display a copyright sign, an em dash, a Greek letter or an emoji in an HTML document, this converter produces the exact entity reference you need in the format you want.

What it does

Every character has a Unicode code point, and HTML lets you write that character three different ways: as a named entity (©), a decimal numeric reference (©) or a hexadecimal numeric reference (©). This tool converts freely between plain text and all three forms, and decodes any mix of them back to the original characters.

How to use it

  1. Paste your text (or a block of HTML entities) into the input box.
  2. Choose a Mode:
    • Encode turns text into HTML entities.
    • Decode turns HTML entities back into text.
  3. When encoding, pick an Entity Format — Named, Decimal or Hexadecimal.
  4. Optionally enable Encode all characters to escape every character, including plain ASCII letters and digits. Leave it off to encode only special and non-ASCII characters, which keeps your markup readable.

The result updates as you type. Below it, a Character Reference table lists each converted character with its code point, named entity, and decimal and hexadecimal forms — handy for looking up a single symbol.

Named format falls back to decimal

Not every character has a standard HTML5 named entity. When you choose the Named format and a character has no name, the converter automatically falls back to a decimal numeric reference so the output is always valid — nothing is silently dropped.

Encode all vs. special characters only

With Encode all characters off, ASCII characters (code points 0–127) such as normal letters, digits and spaces are left as-is, and only the "interesting" characters — accented letters, symbols, punctuation and anything non-ASCII — are converted. Turn it on when you need a fully escaped string, for example to embed arbitrary text where even <, > and & must be encoded.

Decoding handles every entity type at once

Decode mode recognises named references (&mdash;), decimal references (&#8212;) and hexadecimal references (&#x2014;) in the same input, converting each back to its character. Anything that is not a valid, known entity is left untouched, so surrounding text is never mangled.

Privacy

All conversion happens locally in your browser. Your text is never uploaded to a server, which makes this safe for private or sensitive content.

unicodehtmlentitiesencodedecodeescape

Use it from code

From 3 credits per call

REST API

curl -X POST https://api.iotools.cloud/v1/tool/unicode-to-html-entities \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputText": "Café ©",
    "mode": "encode",
    "format": "named",
    "encodeAll": ""
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `unicode-to-html-entities` tool (Unicode to HTML Entities Converter) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.