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.
Create an account
Sign up for free and get 1,000 conversion tokens instantly. No credit card needed.
Generate an API key
Create a Bearer token from your dashboard. Manage multiple keys for different projects.
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.
- Max. 5 MB per file
- Batch processing (up to 20 files)
- Image optimization
- Never expires
- Max. 5 MB per file
- Batch processing (up to 20 files)
- Image optimization
- Never expires
- 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.
Ready to get started?
Create a free account and start encoding images in minutes.