URL/Slug Utilities

Url Decode

URL decode transforms percent-encoded strings back to readable text. Call via MCP in Cursor or Windsurf, or REST at GET /v1/slug/url-decode. Input "Hello%20World%21" returns "Hello World!" — essential for processing URLs, form data, and query parameters in AI workflows.

API Endpoint

GET /v1/slug/url-decode

Code Examples

curl "https://tinyfn.io/v1/slug/url-decode" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/slug/url-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/slug/url-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 url/slug tools:

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

Learn more about MCP setup →

FAQ

How do I URL decode a string with MCP tools?

Use the url-decode tool in your MCP-enabled editor like Cursor or Claude Code. Pass the encoded string as input and get the decoded result instantly.

What characters does URL decode handle?

Decodes all percent-encoded characters (%20 for space, %21 for !, %3A for :, etc.) and handles UTF-8 sequences properly. Also converts + symbols back to spaces in form data.

Can I decode entire URLs or just query parameters?

You can decode any URL-encoded string — complete URLs, query parameters, form data, or individual components. The tool processes the entire input string.

What happens if I pass already decoded text?

Already decoded text passes through unchanged. The tool safely handles mixed content where some parts are encoded and others aren't.

How does URL decode differ from HTML decode?

URL decode handles percent-encoding (%20, %3A) used in URLs and forms, while HTML decode handles entities (&, <) used in HTML content. Different encoding schemes entirely.

Try Url Decode Now

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

Get Free API Key