HTML Entity Converter
Encode text to HTML entities or decode entities back to text locally — named entities for common characters, numeric references for everything else.
Loading calculator…
What this tool does
Encode text to HTML entities or decode entities back to text locally — named entities for common characters, numeric references for everything else. The built-in table holds about 110 common W3C named entities (symbols, punctuation, currency, arrows, Greek). Characters outside it still encode safely as numeric references, which browsers handle identically.
How to use the HTML Entity Converter
- Enter or select operation.
- Enter or select text or entities.
- Read the calculated result; change any measurement to compare alternatives.
Formula
Encode: & < > " ' become named entities, other characters with a W3C named entity in the built-in table use it, and remaining non-ASCII characters become numeric references. Decode: named, decimal (©) and hex (©) references are all resolved.
- mode
- Operation
- value
- Text or entities
The built-in table holds about 110 common W3C named entities (symbols, punctuation, currency, arrows, Greek). Characters outside it still encode safely as numeric references, which browsers handle identically.
Worked example
For html entity converter, the following measurements illustrate the exact method: Operation: encode; Text or entities: Fish & Chips <Menu> © 2026 — café.
Inputs
- OperationEncode text to entities
- Text or entitiesFish & Chips <Menu> © 2026 — café
Result
- Encoded textFish & Chips <Menu> © 2026 — café
Results explained
- Encoded text
- Encoded text from the formula above. The built-in table holds about 110 common W3C named entities (symbols, punctuation, currency, arrows, Greek). Characters outside it still encode safely as numeric references, which browsers handle identically.
Frequently asked questions
& starts an entity reference and < starts a tag, so literal uses of either inside text content must be written as & and < — otherwise browsers may swallow or mis-render your text.
Named entities like © are readable but only exist for a defined set of characters. Numeric references (© decimal, © hex) exist for every Unicode character and always work.
No. Browsers render ©, © and the literal © character identically. Encoding only changes the source representation, for safety and portability.
About 110 common W3C entities: markup essentials, Latin-1 letters, currency (£ € ¥), punctuation (— – “ ” …), maths (× ÷ ± ≤ ≥ ∞ √), arrows, Greek letters and card suits. Anything else falls back to a numeric reference when encoding.
Yes — choose Decode. Unknown or malformed entity names are left untouched so you can spot them in the output.