Base64 Encoder/Decoder - Encode and Decode Base64
Convert text to Base64 and Base64 back to text instantly.
What Is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used for transmitting data over media that are designed to deal with text. Base64 encoding is used in email attachments, image embedding in HTML/CSS, and data exchange in APIs.
How to Use the Base64 Encoder/Decoder
- Select mode — Choose "Encode to Base64" or "Decode from Base64".
- Enter your data — Type or paste the text/Base64 string you want to process.
- Click "Process" — The tool encodes or decodes your data instantly.
- Copy the result — Use the "Copy Result" button to copy the output.
Common Base64 Use Cases
| Use Case | Description |
|---|---|
| Email Attachments | Base64 encodes binary files for email transmission |
| Data URLs | Embed images directly in HTML/CSS |
| API Authentication | Encode credentials for HTTP Basic Auth |
| JSON Data | Encode binary data within JSON structures |
| URL Encoding | Safe transmission of data in URLs |
Base64 Encoding Table
| Value | Character | Value | Character |
|---|---|---|---|
| 0-25 | A-Z | 26-51 | a-z |
| 52-61 | 0-9 | 62 | + |
| 63 | / | = | Padding |
Example Conversions
| Text | Base64 |
|---|---|
| Hello | SGVsbG8= |
| Hello, World! | SGVsbG8sIFdvcmxkIQ== |
| JavaScript | SmF2YVNjcmlwdA== |
| admin:password | YWRtaW46cGFzc3dvcmQ= |
Frequently Asked Questions
What is Base64 used for?
Base64 is used to encode binary data (like images, files, or any binary data) into a text format that can be safely transmitted over text-based protocols like HTTP, email, or JSON.
Is Base64 encryption?
No, Base64 is encoding, not encryption. It converts data to a different format but does not secure it. Anyone can decode Base64 back to the original data.
Can I encode images with this tool?
This tool works with text data. For images, you would need to convert the image to a data URL first. This tool is perfect for encoding text strings, JSON data, and small files.
Does Base64 increase file size?
Yes, Base64 encoding increases the size by about 33% compared to the original binary data.
Is this Base64 encoder/decoder free?
Yes, our Base64 encoder/decoder is completely free to use. No registration, no subscription, no hidden costs.