Encoding Utilities

Base64 Decode

Converts base64-encoded strings back to readable text through `/v1/encode/base64/decode`. Essential for decoding API responses, configuration data, or embedded content that's been base64-encoded. Works with any valid base64 string and handles padding automatically. Claude Code and other MCP-enabled editors can decode base64 instantly without guesswork.

API Endpoint

GET /v1/encode/base64/decode

Code Examples

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

How do I decode base64 to text using MCP?

Use the base64 decode tool in Cursor, Claude Code, or other MCP editors by providing the encoded string. The tool handles standard base64 with automatic padding detection.

What happens if I try to decode invalid base64?

Invalid base64 strings will return an error. The input must contain only valid base64 characters (A-Z, a-z, 0-9, +, /) with proper padding (=).

Can this decode URL-safe base64 variants?

This tool handles standard base64 encoding. URL-safe base64 (using - and _ instead of + and /) may need conversion first.

Does base64 decode preserve binary data correctly?

The tool converts base64 to text output. For binary data, the decoded result shows the text representation of the original bytes.

What's the difference between base64 decode and encode tools?

Decode converts base64 strings back to readable text, while encode converts plain text into base64 format. They're inverse operations.

Try Base64 Decode Now

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

Get Free API Key