HTML Entity Decoder & Encoder API - Named, Numeric & Emoji
Pricing
from $0.32 / 1,000 run operations
HTML Entity Decoder & Encoder API - Named, Numeric & Emoji
Encodes text to HTML entities or decodes entities back to characters, with auto-detected direction, up to 200 strings per run. Returns the converted text, handling named, decimal and hex references and emoji by code point. For email template developers, scraping engineers and CMS migration teams.
Pricing
from $0.32 / 1,000 run operations
Rating
0.0
(0)
Developer
Broke to Built
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
14 days ago
Last modified
Categories
Features
Share
HTML Entity Encoder & Decoder — named, hex, decimal, emoji-aware
Encode text to HTML entities or decode entities back to characters, with auto-direction.
Handles named entities (&, ©), decimal/hex numeric references, and non-ASCII/emoji via
code points. Bulk-capable. $0.0004 per operation. Empty input is uncharged.
What you get
- Encode: escapes
& < > " ', maps common symbols to named entities, non-ASCII to numeric refs. - Decode: resolves named, decimal (
é), and hex (é) references. - Auto: decodes if entities are present, else encodes.
- Emoji-safe: iterates by code point (surrogate pairs handled).
- Bulk: up to 200 strings per run.
Input
{ "items": [ { "input": "<a>café & co</a>", "direction": "encode" }, { "input": "<b>", "direction": "decode" } ] }
Output (real run, 2026-08-07)
{"ok": true,"input": "<a href=\"x\">café & co</a>","direction": "encode","output": "<a href="x">café & co</a>"}
Example
A real run on 2026-10-31 with the input this page's form is prefilled with:
{"input": "Café & <co> — \"100% smörgåsbord\" 🚀"}
It finished in 1 second and returned 1 result. It was charged for 1 operation-run event ($0.0004 on the Free plan). The first result (long text and lists cut for display):
{"ok": true,"input": "Café & <co> — \"100% smörgåsbord\" 🚀","direction": "encode","output": "Café & <co> — "100% smörgåsbord" 🚀"}
Pricing — $0.0004 per operation
Priced at the floor. No comparable HTML-entity encoder/decoder actor was found on the Apify Store on 2026-08-07 (the "entity" search returns unrelated scrapers), so there is no competitor price to quote.
Limits (honest ones)
- Up to 200 items per run.
- Encoding maps a curated set of symbols to named entities and everything else non-ASCII to numeric references; it does not emit every possible named entity.
- Unknown named entities on decode are left untouched (lossless, never corrupted).
FAQ
- Does it handle emoji and accents? Yes — non-ASCII encodes to numeric references and decodes back exactly.
- Named or numeric entities? Encoding prefers named for common symbols, numeric otherwise; decoding accepts all three forms.
- How does auto work? If the string contains an entity reference it decodes, otherwise it encodes.
- Bulk? Yes — up to 200 strings, one charge each.
Use from code or AI agents
curl -X POST "https://api.apify.com/v2/acts/EliAI~html-entity-converter/runs?token=YOUR_APIFY_TOKEN" \-H 'content-type: application/json' \-d '{"input":"<b>café & co</b>"}'
Callable as an agent tool through the Apify MCP server (mcp.apify.com).
Who uses it
- Email template developers encoding accented characters and symbols into entities that survive old mail clients
- Scraping engineers decoding
&,'and hex references left in extracted product titles - CMS migration teams cleaning double-encoded entities from exported article bodies in batch
- Frontend developers escaping user-facing text with emoji before inserting it into legacy HTML
- Data analysts decoding entity-laden text fields in a CSV export before analysis
Changelog
- 2026-11-01: Page text only: an Example section from a real run. Code, output and price are unchanged.