
Base64 Encode & Decode
Free online tool to encode and decode Base64 strings instantly
About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used to encode data for transmission over media that are designed to deal with text, such as email and XML.
Common Use Cases:
- Email attachments (MIME)
- Data URLs in HTML/CSS
- Storing complex data in JSON/XML
- JWT (JSON Web Tokens)
- Basic HTTP authentication
Advanced Options
- Character set: Select the output character set when decoding Base64 bytes
- Line by line: Process multiple independent data entries separated by line breaks
- Live mode: Output updates automatically as you type based on the selected Encode/Decode mode
- File upload: Upload and process text files directly
Safe and Secure
- All processing happens in your browser (client-side)
- No data is sent to servers
- Files are processed locally and never stored
- SSL encryption for all communications
Related Tools
Frequently Asked Questions
What is Base64 encoding?
Base64 is a way of representing binary data using only 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It lets you safely transmit or store data — like images, files, or text with special characters — in systems that only reliably handle plain text, such as URLs, JSON, XML, or email.
How do I encode text to Base64?
Paste or type your text into the input box on the left with "Encode" selected. The Base64 result appears instantly on the right thanks to live mode. Click "Copy" to copy it to your clipboard.
How do I decode a Base64 string?
Switch to "Decode", paste your Base64 string into the input box, and the original text appears on the right. If the string is not valid Base64, you will see a clear error message.
Is this Base64 tool safe and private?
Yes. All encoding and decoding happens entirely in your browser using JavaScript — your data is never uploaded to a server. This makes it safe to use even with sensitive text.
What is URL-safe Base64?
URL-safe Base64 replaces the "+" and "/" characters with "-" and "_" so the result can be used in URLs and filenames without additional escaping. Enable the "URL-safe variant" option before encoding.
Does Base64 encryption keep my data secure?
No. Base64 is an encoding, not encryption — anyone can decode it. Use it for safe transport and storage of data, not to protect secrets. For confidentiality you need real encryption.