HTML Entity Encoder
Encode text to HTML entities (reserved characters, all special characters or all non-ASCII) or decode entities, with a searchable entity table.
HTML Entity Encoder
HTML entity reference
| Character | Description | Named | Numeric |
|---|---|---|---|
| & | Ampersand | & | & |
| < | Less than | < | < |
| > | Greater than | > | > |
| " | Double quote | " | " |
| ' | Apostrophe | ' | ' |
| [ ] | Non-breaking space | |   |
| © | Copyright | © | © |
| ® | Registered | ® | ® |
| ™ | Trademark | ™ | ™ |
| — | Em dash | — | — |
| – | En dash | – | – |
| … | Horizontal ellipsis | … | … |
| « | Left double angle quote | « | « |
| » | Right double angle quote | » | » |
| • | Bullet | • | • |
| · | Middle dot | · | · |
| ° | Degree sign | ° | ° |
| ± | Plus-minus | ± | ± |
| × | Multiplication | × | × |
| ÷ | Division | ÷ | ÷ |
| µ | Micro sign | µ | µ |
| ¶ | Paragraph sign | ¶ | ¶ |
| § | Section sign | § | § |
| € | Euro sign | € | € |
| £ | Pound sign | £ | £ |
| ¥ | Yen sign | ¥ | ¥ |
| ¢ | Cent sign | ¢ | ¢ |
| ‘ | Left single quote | ‘ | ‘ |
| ’ | Right single quote | ’ | ’ |
| “ | Left double quote | “ | “ |
| ” | Right double quote | ” | ” |
| ← | Left arrow | ← | ← |
| → | Right arrow | → | → |
| ↑ | Up arrow | ↑ | ↑ |
| ↓ | Down arrow | ↓ | ↓ |
| ♥ | Heart suit | ♥ | ♥ |
| ♦ | Diamond suit | ♦ | ♦ |
| ♣ | Club suit | ♣ | ♣ |
| ♠ | Spade suit | ♠ | ♠ |
Updated . Provided as is. Check the output before you rely on it in production.
How to use HTML Entity Encoder
- 1
Choose Encode or Decode
Encode turns special characters into HTML entities; Decode turns entities back into readable text.
- 2
Paste text or entities
Paste text with characters such as ©, ™ or <, or an HTML string containing entities such as <, & or .
- 3
Look up an entity
Search the reference table for the named and numeric form of common characters, from arrows to currency symbols.
- 4
Copy the result
The output updates as you type. Copy it into HTML, email templates or anywhere user input must be escaped.
Questions and answers
What is HTML Entity Encoder?
When should I use HTML entities?
Use it as an API
HTML Entity Encoder is also callable as a free HTTP JSON API at
https://aidevhub.io/api/html-entity-encoder/ — GET with query
parameters or POST with a JSON body, no authentication, CORS enabled, fair use
(abusive traffic is throttled at the edge; there is no per-request quota header). Responses return
{ ok, tool, result, meta }.
curl -s "https://aidevhub.io/api/html-entity-encoder/?input=%3Ch1%3EHello%20%26%20welcome%3C%2Fh1%3E&mode=encode"
Machine-readable contract: /api/tool/html-entities.json All API endpoints: /agents/ LLM site index: /llms.txt
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Dedicated API endpoint
Deterministic outputs, machine-safe contracts, and production-ready examples.
Dedicated API
https://aidevhub.io/api/html-entity-encoder/ OpenAPI: https://aidevhub.io/api/openapi.yaml