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 | ♠ | ♠ |
What This Tool Does
HTML Entity Encoder is built for deterministic developer and agent workflows.
Encode and decode HTML entities and special characters.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Programmatic Access
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,
50 requests/day per IP. 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
Agent Invocation
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
Unified Runtime API
https://aidevhub.io/api/tools/run/?toolId=html-entities&a=...
GET and POST are supported at /api/tools/run/ with identical validation and limits.
Limit: 60 req / 60s, input max 128 KB.
How to Use HTML Entity Encoder
- 1
Choose encode or decode
Select whether you're encoding (text → HTML entities) or decoding (entities → readable text).
- 2
Paste text or entities
Input raw text with special characters (©, ™, →, émojis) or paste an HTML string with entity codes (<, &, ).
- 3
Select entity format
Choose named entities (&), numeric (&38;), or hexadecimal (&). Named is most readable; hex is most compact.
- 4
Encode or decode instantly
The tool processes on-the-fly. See character-by-character conversion in a side-by-side comparison.
- 5
Copy for web use
One-click copy to clipboard. Perfect for embedding in HTML, email, or preventing XSS attacks by escaping user input.