HTML Entity Encoder / Decoder — Free & Private

A free edge API by formatho.com, privacy-first developer tools.

Open the full browser tool →

Free, no signup, runs entirely in your browser — your data never leaves your device.

🔓 Free 🔒 Zero tracking 🚫 No data collection ⚡ Edge-fast

Usage

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"

Parameters

ParamDefaultDescription
text""Text to convert (max 100,000 chars).
modebothencode, decode, or both.
all01 also encodes all non-ASCII characters as numeric entities (&#xHH;).

Full parameter reference and live response: /api endpoint.

Privacy-first: every request is processed in-memory on Cloudflare's edge and answered immediately. No logs, no analytics, no cookies, no data collection. See the Formatho privacy philosophy.

Why encode HTML entities?

Entity encoding prevents broken markup and XSS injection when user-supplied text is embedded in HTML: < becomes &lt;, & becomes &amp;, quotes become &quot; / &#39;. Decoding reverses named (&copy;), decimal (&#169;) and hex (&#xA9;) references, Unicode-aware.

Full browser tool

Prefer a UI? Use the complete client-side version — your data never even leaves your browser: HTML Entity Encoder on formatho.com.

All Formatho edge APIs

Browse every free Formatho Worker tool on the Formatho Tools index.