Base64 Encoder & Decoder: Bulk Text, Files, Images & Data URIs
Pricing
from $0.80 / 1,000 items
Base64 Encoder & Decoder: Bulk Text, Files, Images & Data URIs
Encode or decode Base64 in bulk: texts, Base64 strings, data URIs and files by URL (images, PDFs). Auto-detects direction, URL-safe alphabet, data URI output, decoded binaries saved as downloadable files. For Make, Zapier, n8n and AI agents. $1 per 1,000 items.
Pricing
from $0.80 / 1,000 items
Rating
0.0
(0)
Developer
DataDesk
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 hours ago
Last modified
Categories
Features
Share
Encode or decode Base64 in bulk: plain text, Base64 strings, data URIs and files by URL (images, PDFs, any file). Auto-detects whether each item should be encoded or decoded, supports the URL-safe alphabet (base64url) and data URI output for HTML/CSS, and saves decoded images, PDFs and other binaries as downloadable files. Every row includes size, MIME type and SHA-256. Built for Make, Zapier, n8n, the API and AI agents (MCP). $1 per 1,000 items.
Try it now (one click)
- Click Start. The prefilled input encodes one text and decodes one Base64 string. In our latest check (Nov 22, 2026) it returned 3 items in about 1 seconds. An empty input runs a small demo too.
- Paste texts or Base64 strings (one per line) and/or file URLs, then pick a mode (auto, encode, decode).
- Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.
Price example: 100 items = $0.105, 1,000 items = $1.005 ($1.00 per 1,000 items + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per item. Apify's free plan includes $5 of usage every month, enough for about 4,995 items. Runs that find nothing are not charged.
Sample of real results
Real rows from a local test run on Nov 22, 2026 (some columns). Each item also includes the other fields listed below.
| Operation | Input | Output | MIME type | OK |
|---|---|---|---|---|
| encode | Hello from Apify! | SGVsbG8gZnJvbSBBcGlmeSE= | text/plain | True |
| decode | SGVsbG8gZnJvbSBBcGlmeSE= | Hello from Apify! | text/plain | True |
| encode | https://example.com/?q=base64 & more | aHR0cHM6Ly9leGFtcGxlLmNvbS8/cT1iYXNlNjQgJiBtb3… | text/plain | True |
| decode | iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAA… | — | image/png | True |
What you get
| Field group | Fields |
|---|---|
| Conversion | operation (encode/decode), input (first 300 chars), output, sizes, URL-safe flag |
| Files | MIME type, binary flag, key-value store key and download link for decoded or large files, SHA-256 |
| Status | success flag (only successful items are charged), error message |
Why this Actor
- Auto mode: mixed lists of text and Base64 are handled item by item.
- Files and images: encode any file by URL, decode Base64 images and PDFs back to downloadable files.
- Data URIs in and out (data:image/png;base64,...).
- Failed items are free and explained (e.g. invalid Base64).
- $1 per 1,000 items, below the $1.50 per 1,000 texts and $3 per 1,000 files of the most-used Base64 Actor.
How to use it
- Click Try for free (or Start): the prefilled input runs a quick test.
- Paste texts or Base64 strings (one per line) and/or file URLs, then pick a mode (auto, encode, decode).
- Click Start and wait a few seconds.
- Open the Output tab and export as JSON, CSV, Excel, XML or HTML, or read the dataset via API.
Input examples
Encode and decode (prefill):
{"texts": ["Hello from Apify!", "SGVsbG8gZnJvbSBBcGlmeSE="]}
Image URL to data URI:
{"fileUrls": ["https://apify.com/favicon.ico"], "outputDataUri": true}
Decode a Base64 PNG to a file:
{"texts": ["iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="], "mode": "decode"}
URL-safe tokens:
{"texts": ["user:42|role=admin"], "mode": "encode", "urlSafe": true}
Input fields
| Field | Type | Description |
|---|---|---|
texts | array | One item per line: plain text to encode, or Base64 / data URI to decode. Empty = 3-item demo. |
mode | string | Auto decodes items that look like Base64 or data URIs and encodes the rest. |
fileUrls | array | Images, PDFs or any file by URL: each file is downloaded and returned as Base64 (or a data URI). |
urlSafe | boolean | Use - and _ instead of + and / (RFC 4648 base64url). Decoding detects it automatically. |
outputDataUri | boolean | Prefix encoded output with data: |
saveDecodedFiles | boolean | Decoded images, PDFs and other binary data are saved to the key-value store with a download link. |
maxFileSizeMb | integer | Larger files are skipped (not charged). |
Output example
Example record from a local test run (long lists shortened).
{"index": 0,"inputType": "text","input": "Hello from Apify!","inputLength": 17,"operation": "encode","urlSafe": false,"output": "SGVsbG8gZnJvbSBBcGlmeSE=","outputLength": 24,"outputMimeType": "text/plain","isBinary": false,"fileKey": null,"fileUrl": null,"sha256": "ac9e37cc326682c5bfc5dde74b5da8f9035e15ee064a3923803a643c63e8b34f","success": true,"error": null,"scrapedAt": "2026-11-22T23:16:49.637517+00:00"}
Output fields
| Field | Description |
|---|---|
index | Position in the input |
inputType | text or fileUrl |
input | Input text (first 300 chars) or file URL |
inputLength | Characters (text) or bytes (file) |
operation | encode or decode |
urlSafe | True when the base64url alphabet was used |
output | Encoded Base64 or decoded text (large outputs are in fileUrl) |
outputLength | Characters of Base64 or bytes decoded |
outputMimeType | Detected or declared content type |
isBinary | True when the decoded data is not UTF-8 text |
fileKey | Key-value store key of the saved file |
fileUrl | Download link of the saved file |
sha256 | Hash of the raw bytes |
success | True when converted (only successful items are charged) |
error | Why the item failed, e.g. invalid Base64 |
scrapedAt | When the row was saved (UTC) |
Pricing
Pay-per-event: $0.005 once per run that saves results + $0.001 per item ($1.00 / 1,000). Runs that save nothing are not charged.
| Items saved | Approx. cost |
|---|---|
| 20 | $0.025 |
| 100 | $0.105 |
| 1,000 | $1.005 |
| 10,000 | $10.005 |
Use cases
- Prepare images and PDFs as Base64 for APIs (OpenAI, email, CRMs) in Make, Zapier or n8n
- Decode Base64 attachments and webhook payloads back to files
- Generate data URIs for HTML emails and CSS
- Encode credentials and tokens (base64url) in automations
- Give AI agents a reliable Base64 tool through MCP
Integrations / API
Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:
curl "https://api.apify.com/v2/acts/datadesk-io~base64-encoder-decoder/run-sync-get-dataset-items" \-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \-d '{"texts": ["Hello from Apify!", "SGVsbG8gZnJvbSBBcGlmeSE="]}'
Python:
from apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("datadesk-io/base64-encoder-decoder").call(run_input={"texts": ["Hello from Apify!", "SGVsbG8gZnJvbSBBcGlmeSE="]})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
MCP
Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (datadesk-io/base64-encoder-decoder).
FAQ
How does auto mode decide? Items that are valid Base64 (or data URIs) and decode to readable text or a known file type are decoded; everything else is encoded. Use Encode or Decode mode to force one direction.
Where do decoded files go? Binary results (images, PDFs...) and very large outputs are saved in the run key-value store; the row has a download link.
Is my data sent anywhere? No. Conversion runs inside the Actor; only file URLs you give are downloaded.
What is the size limit? Files up to 50 MB (default 10 MB). Outputs above 200,000 characters are stored as files.
Limitations
- Files by URL up to 50 MB.
- Text input is treated as UTF-8.
- Very large outputs are delivered as a file link instead of inline.
Start now
Click Start to run the prefilled example, then adjust the input. Missing a field or filter? Open an issue on the Issues tab and tell us what you need.
Support
Questions, bugs or a missing field? Email datadesk.io@proton.me or open an issue on the Actor page.
ES: Codifica o decodifica Base64 en lote: textos, cadenas Base64, data URIs y archivos por URL (imágenes, PDF). Detección automática, alfabeto URL-safe, salida data URI y archivos decodificados descargables. $1 por 1.000 elementos. PT: Codifique ou decodifique Base64 em lote: textos, strings Base64, data URIs e arquivos por URL (imagens, PDF). Detecção automática, alfabeto URL-safe, saída data URI e arquivos decodificados para download. US$1 por 1.000 itens.