logoFAQ

Frequently Asked Questions

Base64 is a method used to convert binary data (like pdfs and images) into a common, safe text format using exactly 64 printable ASCII characters. It allows computers to reliably transmit files without corruption.

A few of the major benefits are:

API Documentation

Base64 to File

Uploads a Base64-encoded file and returns a publicly accessible file URL.

Endpoint

POST /api/zapier/base64ToFile

Authentication

Authentication is required.

Request

Content-Type

application/json

Request Body

{
  "base64": "JVBERi0xLjQKJc..."
}

| Field | Type | Required | Description | | -------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------- | | base64 | string | ✅ | Base64-encoded file. Can be either a raw Base64 string or a Data URI (e.g. data:application/pdf;base64,...). |

Example Request

curl -X POST https://base64to.xyz/api/zapier/base64ToFile \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "base64": "JVBERi0xLjQKJc..."
  }'

Success Response

Status: 200 OK

{
  "file": "https://..."
}

| Field | Type | Description | | ------ | -------- | -------------------------------- | | file | string | Public URL of the uploaded file. |

Error Responses

401 Unauthorized

Returned when:

Example:

{
  "error": "Usage limit exceeded: https://base64to.xyz/dashboard"
}

or

{
  "error": "Missing base64 in request body"
}

or

{
  "error": "Not authenticated"
}

Usage Limits

Notes

Disclaimer

Base64to is not affiliated nor sponsored by Zapier. All product and company names are trademarks of their respective holders.