Base64 Encode/Decode API — Convert Text to and from Base64
Encode text to Base64 and decode Base64 data back to text. Supports standard and URL-safe Base64. Free API.
What is Base64 Encoding?
Base64 encoding converts binary or text data into a string of ASCII characters that can be safely transmitted over text-based protocols like HTTP, email, and JSON. The API supports both standard Base64 and URL-safe Base64 variants, and can detect and decode Base64 input automatically.
How to Use It
Call GET /api/v1/base64?input=Hello+world&action=encode. Returns { action: string, input: string, output: string, encoding: string }.
Try it live
Test this endpoint in the interactive console
Open Console →
Frequently Asked Questions
What's the difference between standard and URL-safe Base64?
URL-safe Base64 replaces + with - and / with _, removing padding = characters for safe use in URLs and filenames.