Base64 Encoder & Decoder API — Text & Data URIs avatar

Base64 Encoder & Decoder API — Text & Data URIs

Pricing

$1.00 / 1,000 item processeds

Go to Apify Store
Base64 Encoder & Decoder API — Text & Data URIs

Base64 Encoder & Decoder API — Text & Data URIs

Batch encode text to Base64 or decode Base64 back to text, with URL-safe and data URI output modes, in one API call.

Pricing

$1.00 / 1,000 item processeds

Rating

0.0

(0)

Developer

Andrew

Andrew

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Batch-encode text to Base64 or decode Base64 back to text — with URL-safe alphabet and data URI support — in a single API call.

What you get

  • Encode or decode any number of strings in one run
  • Standard or URL-safe Base64 alphabet (+// vs -/_, with or without padding)
  • Wrap encoded output as a data URI (data:<mime>;base64,...) with one input field
  • Automatic data:...;base64, prefix stripping when decoding
  • Per-item validation — invalid Base64 input is reported with a clear error instead of silently returning garbage

Use cases

  • Batch-convert a list of strings or tokens to/from Base64 inside a no-code automation (Zapier/Make/n8n via the Apify API)
  • Generate data URIs for small assets to embed directly in HTML/CSS/JSON
  • Validate whether a field from an upstream system is genuinely Base64-encoded

How to use

  1. Choose Mode: Encode or Decode
  2. Paste your strings into Inputs (one per line)
  3. Optionally turn on URL-safe alphabet, or set Wrap encode output as data URI to a MIME type like image/png
  4. Run the actor — results appear in the Dataset tab

Output format

Each dataset record:

{
"mode": "encode",
"input": "Hello, world!",
"output": "SGVsbG8sIHdvcmxkIQ==",
"byteLength": 13,
"error": null
}

If an input isn't valid Base64 in decode mode, output is null and error explains why — the record is still returned so a downstream automation can count/handle failures without dropping items.