← Back to marketplace

Base64 Tools

Encode and decode Base64 strings. Convert text to Base64 for safe transport in URLs, headers, and JSON payloads.

infra
by APIHub2 endpoints100% uptime15ms avg

Endpoints

POST/base64/decode
$0.0010/req

Decode Base64 to text. Body: {"input": "base64string"}

Request schema

inputstringrequired
POST/base64/encode
$0.0010/req

Encode text to Base64. Body: {"input": "text"}

Request schema

inputstringrequired

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/base64-tools/base64/decode" \
  -d '{"input":"SGVsbG8gV29ybGQ="}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/base64-tools/base64/decode \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"input":"SGVsbG8gV29ybGQ="}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Base64 Tools.

POST /base64/decode$0.0010/req
-
POST /base64/encode$0.0010/req
-