A free edge API by formatho.com, privacy-first developer tools.
Free, no signup, runs entirely in your browser — your data never leaves your device.
curl "https://html-entity-encoder-formatho.filesformatho.workers.dev/api?text=Cafe©&mode=encode"
curl "https://html-entity-encoder-formatho.filesformatho.workers.dev/api?text=<div>&mode=decode"
| Param | Default | Description |
|---|---|---|
text | "" | Text to convert (max 100,000 chars). |
mode | both | encode, decode, or both. |
all | 0 | 1 also encodes all non-ASCII characters as numeric entities (&#xHH;). |
Full parameter reference and live response: /api endpoint.
Entity encoding prevents broken markup and XSS injection when user-supplied text is embedded in HTML: < becomes <, & becomes &, quotes become " / '. Decoding reverses named (©), decimal (©) and hex (©) references, Unicode-aware.
Prefer a UI? Use the complete client-side version — your data never even leaves your browser: HTML Entity Encoder on formatho.com.
Browse every free Formatho Worker tool on the Formatho Tools index.