# HTML Entity Encoder / Decoder

> Encode text to HTML entities such as & and <, or decode named, decimal and hex entities back to characters. Live result with one-click copy.

- Page: https://mondaytool.com/tools/html-entity-converter
- Category: developer-tools
- Price: free, no sign-up. Most tools run in the browser, so input is not uploaded.
- Use it: open https://mondaytool.com/tools/html-entity-converter. It is an interactive web page; this file is its documentation.

Last updated: 16 October 2026

## Encode and decode HTML entities

This **HTML entity encoder and decoder** converts special characters into entities such as `&` and `<`, or turns entities back into normal characters. The result updates as you type.

## How to use it

1. Choose **Encode → Entities** or **Decode ← Entities**.
2. Paste or type your text into the input box. It starts with a short HTML example.
3. Read the result in the output box.
4. Click **Copy** to copy it.

## How it works

When encoding, each character is checked against a built-in list of named entities, such as `&copy;`, `&euro;`, `—`, `&rarr;` and some Greek letters and math symbols. The list covers 60-plus characters, including the five that matter most in HTML: `&`, ``, `"` and `'`. Any other character above code 127 becomes a numeric entity like `&#8364;`. Plain ASCII letters and digits stay unchanged.

When decoding, the tool reads named entities from the same list, plus any decimal (`&#169;`) or hex (`&#xA9;`) entity.

## Examples

| Character | Entity |
| --- | --- |
| & | `&` |
|  | `<` and `>` |
| " | `"` |
| © | `&copy;` |
| Any other non-ASCII character | Numeric, such as `&#233;` for é |

## Assumptions and limits

- Decoding only knows the named entities in the tool's list. Other names, such as `&eacute;`, are left as they are, though the numeric form works.
- Decoding runs once. `&#60;` becomes `&#60;` and is not decoded again.
- Invalid numbers, such as zero or values above the Unicode range, are left unchanged.
- Encoding changes every matching character in your text, including the tags in HTML you paste in.

## Frequently asked questions

### Why does encoding turn my tags into text?

The tool encodes every character it knows, so `` becomes `<h1>`. That is what you want when showing code on a web page.

### Why was an entity not decoded?

It is probably a named entity outside the built-in list. Use its numeric form, like `&#233;`, which the decoder always handles.

### Is a non-breaking space handled?

Yes. A non-breaking space is encoded as ` ` and decoded back from it.
