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

API users get an increased file size limit of up to 5 MB per image, compared to 1 MB on the free web tool.

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
$3 USD
$0.30 per 1,000 tokens
  • Max. 5 MB per file
  • Batch processing (up to 20 files)
  • Image optimization
  • Never expires
Business
100,000 tokens
$20 USD
$0.20 per 1,000 tokens
  • Max. 5 MB per file
  • Batch processing (up to 20 files)
  • Image optimization
  • Never expires

Token usage

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

≤ 1 MB
file size
1 token
≤ 2 MB
file size
2 tokens
≤ 3 MB
file size
3 tokens
≤ 4 MB
file size
4 tokens
≤ 5 MB
max file size
5 tokens

Ready to get started?

Create a free account and start encoding images in minutes.