---
title: "HTML Entity Encoder encode and decode tool - AllTools"
description: "Convert bidirectionally between plain text and HTML entities, covering named ones like & and < plus numeric &#xxxx; forms."
canonical_url: "https://tool.warmday.wang/en/dev/html-encode"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "Convert bidirectionally between plain text and HTML entities, covering named ones like & and < plus numeric &#xxxx; forms."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "HTML Entity Encoder encode and decode tool"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **HTML Entity Encode / Decode**

Convert between HTML special characters and entity encodings (named, decimal, hexadecimal).

## **Settings**

**Encode Style**

**Decode Level**

**Input**

**Output**

## **Common HTML Entities**

| **Char** | **Named Entity** | **Decimal** | **Hex** | **Description** |
| --- | --- | --- | --- | --- |
| < | \&lt; | \&#60; | \&#x3C; | Less-than sign |
| > | \&gt; | \&#62; | \&#x3E; | Greater-than sign |
| & | \&amp; | \&#38; | \&#x26; | Ampersand |
| " | \&quot; | \&#34; | \&#x22; | Double quotation mark |
| ' | \&apos; | \&#39; | \&#x27; | Single quotation mark |
|  | \&nbsp; | \&#160; | \&#xA0; | Non-breaking space |
| © | \&copy; | \&#169; | \&#xA9; | Copyright sign |
| ® | \&reg; | \&#174; | \&#xAE; | Registered trademark sign |
| ™ | \&trade; | \&#8482; | \&#x2122; | Trademark sign |
| ¥ | \&yen; | \&#165; | \&#xA5; | Yen sign |
| € | \&euro; | \&#8364; | \&#x20AC; | Euro sign |
| → | \&rarr; | \&#8594; | \&#x2192; | Rightwards arrow |

### **Usage**

#### **What is an HTML Entity**

HTML entities display reserved characters (like <, >, &) or characters that cannot be typed directly (like ©, ¥) in HTML.

#### **Three Encoding Methods**

Named entities use readable names (e.g. \&lt;); decimal entities use \&#60;; hexadecimal entities use \&#x3C;.

#### **Encode and Decode**

Encoding converts special characters into entities to avoid HTML parsing errors; decoding restores entities to original characters.

## **Related tools**

More from the same category · Developer Tools

[**Cron Expression**Visual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.](https://tool.warmday.wang/en/dev/cron) [**JSON Formatter**JSON beautify, minify and validate with auto error location for missing brackets and stray commas.](https://tool.warmday.wang/en/dev/json) [**Timestamp Converter**Convert Unix timestamps to dates and back with second/millisecond precision and live current time.](https://tool.warmday.wang/en/dev/timestamp) [**Regex Tester**Test regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.](https://tool.warmday.wang/en/dev/regex) [**JWT Parser**Split a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.](https://tool.warmday.wang/en/dev/jwt-parser) [**JWT Generator**Issue JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing.](https://tool.warmday.wang/en/dev/jwt-generator)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/dev/html-encode#webpage","url":"https://tool.warmday.wang/en/dev/html-encode","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"HTML Entity Encoder encode and decode tool","description":"Convert bidirectionally between plain text and HTML entities, covering named ones like &amp; and &lt; plus numeric &#xxxx; forms."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/dev/html-encode#app","name":"HTML Entity Encoder encode and decode tool","description":"Convert bidirectionally between plain text and HTML entities, covering named ones like &amp; and &lt; plus numeric &#xxxx; forms.","url":"https://tool.warmday.wang/en/dev/html-encode","applicationCategory":"DeveloperApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/dev/html-encode#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/dev/html-encode#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Developer Tools","item":"https://tool.warmday.wang/en/dev"},{"@type":"ListItem","position":3,"name":"HTML Entity Encoder","item":"https://tool.warmday.wang/en/dev/html-encode"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
