Base64 Encoder & Decoder: Text, Files, Data URI
Pricing
from $0.70 / 1,000 conversions
Base64 Encoder & Decoder: Text, Files, Data URI
Encode or decode Base64 in bulk from texts, file URLs or a dataset column. Standard and URL-safe, data URI creation and parsing with MIME detection. Decoded binary is saved to storage with a link. Failed items are free. Empty input = free demo.
Pricing
from $0.70 / 1,000 conversions
Rating
0.0
(0)
Developer
Actor Factory
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Base64 encode and decode in bulk: texts, files, data URIs
Returns Base64 (or the decoded text or file) for every text, file URL or dataset value you give it. For anyone who has a list of things to convert and does not want to paste them into a web page one by one: image URLs that must become data: URIs for an HTML e-mail or a JSON payload, a column of Base64 strings from a scraper that must become readable text or real image files, tokens that need the URL-safe form. This Actor encodes and decodes standard and URL-safe Base64, builds and takes apart data URIs (the MIME type is detected), and for decoded binary it saves the file to storage and gives you a link. It works from the Console form, no code.
Try it free: leave input empty and press Start (clear the prefilled texts first; the demo is not charged and rows carry _demo: true).
$1 per 1,000 conversions ($0.001 each). One conversion = one text, one file or one dataset value. Items that fail are free, and so are runs with no result and the demo. The $5 monthly free credit covers about 5,000 conversions. No scraping, no API keys.
Sample
Input {"operation": "encode", "texts": ["Hello, world!", "<<???>>>"], "alphabet": "urlsafe", "padding": false}:
| input | result | resultType | mime |
|---|---|---|---|
| Hello, world! | SGVsbG8sIHdvcmxkIQ | base64 | text/plain |
| <>> | PDw_Pz8-Pj4 | base64 | text/plain |
Input {"operation": "decode", "texts": ["SGVsbG8sIHdvcmxkIQ==", "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]}:
| input | result | resultType | mime | fileUrl |
|---|---|---|---|---|
| SGVsbG8sIHdvcmxkIQ== | Hello, world! | text | text/plain | |
| data:image/gif;base64,R0lGOD… | file | image/gif | link to the saved .gif |
What it does
- Encode: text (UTF-8, Shift_JIS, EUC-JP, Latin-1 or UTF-16) or the bytes of a file at a public URL. Standard or URL-safe alphabet, with or without
=padding, optional line breaks every 64 or 76 characters. - Data URI maker:
data:<type>;base64,...for texts and files. The MIME type comes from the server's Content-Type, then from the file's first bytes (PNG, JPEG, GIF, WebP, PDF, ZIP, SVG and more), then from the file extension. - Decode: standard and URL-safe at once; whitespace and line breaks are ignored and missing
=are added. Adata:URI is taken apart automatically: you get the MIME type and the charset it names. - Decoded result: readable text is returned in the
resultcolumn. Binary (images, PDFs, archives) is saved to the key-value store and the row hasfileKeyand afileUrldownload link. Choose always text or always a file if you want to force one. - Dataset columns: pick an Apify dataset and the columns to convert (dot paths such as
image.base64); every value becomes one row. Copy other columns (for exampleid) onto the result rows to match them back. Tick values are file URLs to download and encode the files a column points to. - Long results (default over 256 KB) go to the key-value store as a text file instead of a table cell, so the dataset stays small.
Input example
{"operation": "encode","fileUrls": ["https://example.com/logo.png"],"makeDataUri": true}
Decode a column of a dataset: {"operation": "decode", "datasetIds": ["<id>"], "datasetFields": ["imageBase64"], "keepFields": ["id"]}.
Output
- Dataset: one row per item with
status,operation,source(text, file or dataset),input(a short preview, or the file URL),result,resultType(base64,data-uri,textorfile),mime,inputBytes,outputBytes,fileKey,fileUrl,error; dataset rows also carrydatasetId,rowIndexandfield. - STATS record (key-value store): items processed, converted, failed, skipped empty values, conversions charged, whether the run stopped at a limit, bytes downloaded.
Rules worth knowing
- Decoding needs valid Base64: a row with an impossible character or length gets
status: errorand a plain explanation, and is not charged. - A decoded file whose type is unknown is saved as
.bin. Themimecolumn says what was detected. - Decoding a file URL expects a text file that contains Base64 or a data URI; a binary file there is reported as an error.
- Empty or missing dataset values are skipped (counted in STATS), not charged.
Limits (cannot be raised past these by input)
- Files: 10 MB each by default (set up to 50 MB), 200 MB downloaded per run, 500 file URLs per run, 30 seconds timeout per attempt by default, up to 4 retries only for timeouts, 429 and 5xx answers.
- Files are fetched one at a time with a pause of at least 0.5 s between requests to the same host; redirects are followed up to 5 times. Only public
httpandhttpslinks; addresses on internal networks (localhost, private ranges, cloud metadata) are blocked, also after redirects. - 100,000 items per run (default 1,000), set by Max items.
Pricing
Pay per event: $1 per 1,000 conversions (event conversion, $0.001 each): 2,500 conversions cost $2.50. Failed items, values that cannot be read and the demo are free. Set a maximum charge per run: the Actor then stops at that budget (never past it) and says so in the run summary.
On the Apify Free plan, the $5 of monthly platform credit covers about 5,000 conversions a month.
Use cases
- Turn image URLs into data URIs for HTML e-mails, CSS, SVG or JSON files
- Turn a scraper column of Base64 images or documents back into real files with download links
- Decode a list of Base64 strings (config values, API payloads, e-mail attachments) to readable text
- Produce URL-safe, unpadded Base64 for tokens, links and file names
- Inspect a data URI: its type, charset and size
FAQ
Is it the same as a Base64 web page? The conversion is the same standard (RFC 4648, with data URIs as in RFC 2397). What you get here is a list at once, files by URL, dataset columns and saved files with links. Is Base64 encryption? No. Anyone can decode it. Do not use it to hide secrets. Why was my decoded text turned into a file? Its bytes were not readable text in the chosen character set (or looked like an image or archive). Pick the right Text character set, or Always text. Does it change my source dataset? No. It only reads it and writes a new dataset.
If this Actor saved you time, a rating on the Store helps others find it.
More tools from the same developer
- Bulk File Downloader — download files from URL lists or dataset fields into storage, with links, SHA-256 and an optional ZIP
- Image Converter — convert images between JPG, PNG, WebP and AVIF, with optional resize
- JSON to CSV Converter — turn nested JSON files or datasets into one flat CSV file
- Dataset Transform — flatten, filter, rename and convert any Apify dataset, export CSV / JSON / JSONL with a link
- HTML to Markdown Converter for LLM and RAG — clean Markdown from URLs, raw HTML or datasets for LLM and RAG