Encoding Utilities

Html Decode

Converts HTML-encoded text back to readable characters, transforming entities like &amp; to & and &lt; to <. Use via MCP in Cursor or Claude Code, or call GET /v1/encode/html/decode with your encoded text. Essential for processing web scraped content, form data, or XML parsing. Returns clean, human-readable text from HTML entities.

API Endpoint

GET /v1/encode/html/decode

Code Examples

curl "https://tinyfn.io/v1/encode/html/decode" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/encode/html/decode', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/encode/html/decode',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's encoding tools:

{
  "mcpServers": {
    "tinyfn-encoding": {
      "url": "https://tinyfn.io/mcp/encoding",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What HTML entities does this decode?

Decodes all standard HTML entities including &amp;, &lt;, &gt;, &quot;, &#39;, plus numeric entities like &#8364; (€) and hexadecimal ones like &#x20AC;.

How do I decode HTML entities in my AI workflow?

Connect via MCP in Cursor or Windsurf, then pass your HTML-encoded string. Perfect for cleaning scraped web data or processing form submissions before analysis.

Does it handle malformed or partial HTML entities?

Only decodes valid, complete HTML entities. Malformed entities like &am or incomplete ones are left unchanged in the output.

What's the difference between HTML decode and URL decode?

HTML decode handles entities like &amp; and &lt; from web content, while URL decode handles percent-encoded characters like %20 for spaces in URLs.

Can I decode large blocks of HTML text?

Yes, processes entire HTML documents or large text blocks efficiently. Useful for cleaning scraped content or processing XML feeds with embedded HTML.

Try Html Decode Now

Get your free API key and start using Html Decode in seconds.

Get Free API Key