---
title: Base64 Encoding Plugin
slug: api-marketplace/base64-encoding-plugin
createdAt: 2025-08-18T08:19:30.514Z
---

### Overview

The Base64 plugin enables encoding of request and response data into Base64 format to ensure safe transmission of URLs and file references.

- **Purpose:** Encode input values (such as URLs or files) into Base64 strings.&#x20;
- **Effect:** Request and response structures remain unchanged; only the parameter values are encoded.&#x20;

### How to Use

1. **Access API Studio**&#x20;
   - Go to the *My APIs* page.&#x20;
   - Select the required API.&#x20;
   - Click **Open API Studio** (redirects to the API Studio configuration page).&#x20;
2. **Configure Base64 Plugin**&#x20;
   - Provide a **Studio API Name**.&#x20;
   - Select the **Base API** and continue.&#x20;
   - Choose the environment (**Test** or **Live**).&#x20;
   - Enable the **Base64 Encoder/Decoder** plugin.&#x20;
3. **Access Studio API**&#x20;
   - Navigate to the *Studio API* tab under *My APIs*.&#x20;
   - Locate the newly created Base64-enabled API.&#x20;
4. **Use the API**&#x20;
   - Refer to the plugin-specific documentation within the Studio API view.&#x20;
   - Convert input data (file or URL) into a Base64 string.&#x20;
   - Replace the corresponding request parameters with the Base64-encoded value.&#x20;

### Response Handling

- Responses are returned with Base64-encoded values where applicable.&#x20;
- Decode the Base64 values to retrieve the original data.&#x20;

### Notes

- Only parameter values are encoded; request and response schemas remain unchanged.&#x20;
- Ensure proper encoding before sending requests to avoid validation errors.

**Example Request**

```json
{
  "documentImage": "iVBORw0KGgoAAAANSUhEUgAA..."
}
```

**When to Use**

Use the Base64 plugin when your input data (like images or documents) cannot be reliably shared as plain URLs. Instead of uploading a file to storage and passing its URL, you can directly embed the file as a Base64 string in the request.

### Base 64 Encoded API Example

```curl
curl -X POST https://<endpoint>/api/v3/studio/<id>/<base-api-id> \
  -H 'Authorization:<your-signzy-auth-key>' \
  -H 'Content-type:application/json' \
  -d '<Existing request string with base64 values instead of urls>'
```

![](https://api.archbee.com/api/optimize/w0YdjmC6Uxu0AJ6sPj9OT/YzuIXVxGjZfHlaEE_d5nP_.blob)

