# Base64 encoder and decoder

> Encode text to Base64 or decode Base64 back to text online. UTF-8 safe, with the URL-safe variant used in tokens and links. Free.

Free tool by Orkosi. Page: https://orkosi.com/tools/base64-encoder

Base64 carries any text through systems that only accept letters and digits: headers, data URIs, tokens. Encode or decode it here, emoji and accents included.

1. Paste the text or the Base64 string.
2. Choose Encode or Decode.
3. Press Convert and copy the result.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `text` | text | yes | Text or Base64. |
| `mode` | "encode" \| "decode" | no | Action. Default: "encode". |
| `url_safe` | true \| false | no | URL-safe variant (encoding). Default: false. |

## Example

Input:

```json
{
  "text": "Hello, Orkosi! Olá 👋",
  "mode": "encode"
}
```

Result:

```json
{
  "output": "SGVsbG8sIE9ya29zaSEgT2zDoSDwn5GL",
  "bytes": 24
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "base64-encoder", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/base64-encoder/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"text":"Hello, Orkosi! Olá 👋","mode":"encode"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Is Base64 encryption?**

No. Anyone can decode it. It changes how data is written, not who can read it, so never use it to hide a secret.

**What is URL-safe Base64?**

A variant that writes - and _ instead of + and / and drops the = padding, so the string can sit in a URL or a file name. JSON Web Tokens use it.

**Can it decode files or images?**

This tool decodes text. If the bytes are not text (an image, a PDF) it says so instead of printing noise.

All free tools: https://orkosi.com/tools.md
