Base64 Encode/Decode
Convert text to Base64 and back, or encode files to Base64 strings
Input
Or Upload a File
About Base64 Encode/Decode
This free online Base64 encoder and decoder helps developers quickly convert text to Base64 and back, or encode files to Base64 strings. Base64 encoding is a method of converting binary data into ASCII text, making it safe to transmit over text-based protocols like HTTP, email, or JSON.
Common use cases include embedding images in HTML/CSS as data URLs, encoding binary attachments in JSON APIs, storing binary data in databases, and encoding credentials for Basic Authentication headers. The tool automatically detects whether your input is plain text or Base64-encoded, making it easy to convert in either direction.
Upload any file to generate its Base64 representation, perfect for creating data URLs or encoding files for API transmission. All processing happens entirely in your browser using native JavaScript APIs for maximum privacy and speed. No data is sent to any server.
Need webhook testing?
HooksDash provides instant webhook endpoints, request inspection, and local forwarding. Perfect for testing the requests you build here.