Home › APIs › Text & developer tools
Base64 Encode / Decode API
Turns text or a file into Base64 code and back.
Used by: Developers, marketers, IT admins and content writers.
Encode text or a file to Base64 or decode Base64 back, with URL-safe variant. Runs on our server, files are deleted right after the call, nothing stored.
Try it live, no sign-up
Run the example as is, or change the input. 5 own tries a day without a key.
Example request
curl -X POST https://radarbg.com/v1/base64-encode-decode \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"text": "hello", "mode": "encode"}'
Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.
Inputs
| Field | Type | Description |
|---|---|---|
fileContent | string | Or send a file as base64 (a data: URI is fine) instead of text |
fileName | string | File name with extension, e.g. report.pdf |
files | array | Or several files: [{fileName, fileContent (base64)}] |
text | string | The text |
mode | string | encode or decode |
urlSafe | boolean | URL-safe alphabet (- and _) |
Price
Included in every plan: 500 calls a month free, then from €9 a month for 5,000 calls across all APIs. Pro, €29 for 25,000 calls, is the one we recommend.
Questions
What does the Base64 Encode / Decode API do?
Turns text or a file into Base64 code and back.
Where does the data come from?
Encode text or a file to Base64 or decode Base64 back, with URL-safe variant. Runs on our server, files are deleted right after the call, nothing stored.
How much does it cost?
500 calls a month are free with no card. Paid plans start at EUR 9 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.
Can I use it without writing code?
Yes. Try it live on this page, use our free browser tools, or ask us to run it on your list as a service.