Skip to content

Base64 encoding Rest API

Convert images to base64 programmatically.
Built for developers, designed for scale.

1,000 free tokens included

Every account starts with 1,000 free conversion tokens. No credit card required.

+1,000 bonus tokens with GitHub

Connect your GitHub account and get 1,000 additional tokens for free. That's 2,000 tokens to start with.

What you get

Everything you need to integrate base64 image encoding into your workflow.

Secure authentication

Login required with Bearer token authentication. Create and manage multiple API keys from your dashboard.

Token management

Track your usage in real-time. Check your balance, view consumption history, and manage your token packs from the dashboard.

5 MB file size

Convert images up to 5 MB per file, the same limit logged-in users get on the web tool. Token cost scales with file size.

Batch encoding

Encode up to 20 images in a single API request. Perfect for processing multiple assets at once.

60 requests / minute

Generous rate limits to keep your integrations running smoothly without throttling concerns.

Code examples

Ready-to-use examples in cURL, JavaScript, PHP, and Python. Copy, paste, and start encoding.

How it works

Get started in three simple steps.

1

Create an account

Sign up for free and get 1,000 conversion tokens instantly. No credit card needed.

2

Generate an API key

Create a Bearer token from your dashboard. Manage multiple keys for different projects.

3

Start encoding

Send images to the API and receive base64-encoded output. It's that simple.

Token packs

Need more tokens? Grab a pack. No subscriptions, no recurring charges.

Starter
10,000 tokens
≈ 4,000 conversions at 2.5 MB avg
$3 USD
$0.30 per 1,000 tokens
  • Great for getting started
  • Max. 5 MB per file
  • Batch processing (up to 20 files)
  • Tokens never expire
Business
100,000 tokens
≈ 40,000 conversions at 2.5 MB avg
Save 33% per token
$20 USD
$0.20 per 1,000 tokens
  • 10× the tokens of Starter
  • Max. 5 MB per file
  • Batch processing (up to 20 files)
  • Tokens never expire
Secure checkout via Stripe
Tokens never expire
One-time payment, no subscription
Invoice receipt for every purchase

Token usage

Each conversion costs tokens based on file size. 1 token per MB, rounded up.

≤ 1 MB
WebFree
API1 token
≤ 2 MB
Web2 tokens
API2 tokens
≤ 3 MB
Web3 tokens
API3 tokens
≤ 4 MB
Web4 tokens
API4 tokens
≤ 5 MB
Web5 tokens
API5 tokens

Ready to get started?

Create a free account and start encoding images in minutes.