Base64 Encoder/Decoder
Encode and decode Base64 text and files online. Supports Unicode, URL-safe Base64, and file download.
Input
Mode
Options
Output
✨ Features
- ✅ Encode text and files to Base64
- ✅ Decode Base64 to text or binary files
- ✅ URL-safe Base64 encoding
- ✅ Configurable padding and line wrapping
- ✅ Unicode and emoji support
- ✅ File upload and download
- ✅ Copy to clipboard
- ✅ Completely private and in-browser
🎯 How to Use
- Enter text or upload a file
- Select Encode or Decode mode
- Configure options (URL-safe, padding, etc.)
- Click Convert
- Copy output or download as file
❓ FAQ
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used in email, data URLs, and APIs.
What is URL-safe Base64?
URL-safe Base64 replaces `+` with `-` and `/` with `_` to make the encoded string safe for use in URLs and filenames.
How do I decode an invalid Base64 string?
Enable "Ignore whitespace" option to automatically remove spaces and newlines. If the string is still invalid, check for corruption or use a different Base64 variant.
Can I encode/decode files?
Yes! Use the "Upload File" button to encode any file to Base64. You can also decode Base64 and download the result as a binary file.
Is my data private?
Yes! All encoding and decoding happens entirely in your browser. No data is sent to any server.
Does this support Unicode and emojis?
Yes! This tool fully supports Unicode characters, including emojis. They are properly encoded using UTF-8.
What is line wrapping?
Line wrapping breaks the Base64 output into lines of a specific length (64 or 76 chars). This is useful for email and some protocols.
Can I use this tool offline?
Yes! Once the page loads, all processing happens in your browser without internet connection.