---
title: "Base64 Encode & Decode API"
slug: base64-encode-decode-api
url: https://apyhub.com/freedailypro/service/base64-encode-decode-api
provider: FreeDailyPro
tags: [base64, encoding, decoding, developer-tools, data-conversion]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Base64 Encode & Decode API

Easily encode text to Base64 or decode it back using the Base64 Encode & Decode API. Supports Unicode text and emoji.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/base64-encode-decode-api/security/base64` | What it does Encodes text to Base64, or decodes Base64 back to text, chosen with action. Unicode te… | 10 |

## Endpoint reference

### Base64 Encode / Decode Text

`POST https://api.eu.apyhub.com/freedailypro/base64-encode-decode-api/security/base64` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | body | string | yes |  |
| `action` | body | string | yes | One of: encode, decode. |

#### Quickstart

Encode or decode a string by sending the required `text` and `action` fields.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/base64-encode-decode-api/security/base64" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"Hello, world!","action":"encode"}'
```

#### What you'll get back

The live response to the request above:

```json
{
  "tool": "Base64 tool client and server side from freedailypro",
  "action": "encode",
  "result": "SGVsbG8sIHdvcmxkIQ=="
}
```

## About

## What it does
Base64 Encoder Decoder converts text to Base64 and back again. Send a `text` string with an `action` of `encode` or `decode`, and it returns the performed `action`, the `tool` name, and the resulting `result` string.

Use it when you need to safely move plain text through systems that expect Base64-encoded values, such as email payloads, configuration values, or webhook integrations. It also helps when you need to decode an encoded string back into readable text for debugging or data handling.

The request schema is intentionally small: one input object with `text` and `action`, no extra fields. The response is equally direct, so you can plug the result into downstream logic without parsing unrelated metadata.

Base64 Encoder Decoder is a fit for basic encoding and decoding workflows where you want deterministic text transformation and a compact response shape.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/freedailypro/service/base64-encode-decode-api
