Base64 Encoder/Decoder
Convert text and files to Base64 and back. Free, fast and 100% private.
Result
Decoded text
Drop your file here
All file types - Max 50 MB
Result
Your data stays on your device. Nothing is sent to our servers.
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. Each Base64 character represents exactly 6 bits of data. Three bytes (24 bits) are encoded into four Base64 characters. It's a universal standard used in emails (MIME), data storage, URLs and more.
Features
Lightning fast
Instant conversion in your browser, no waiting time.
100% private
Your data never leaves your device. No server uploads.
Bidirectional
Encode text to Base64 and decode Base64 to text.
File support
Encode any file type up to 50 MB.
How to use?
Choose mode
Select encode (text to Base64), decode (Base64 to text), or file.
Enter your data
Type or paste your text, or drag and drop a file.
Copy the result
Copy the result or download it as a .txt file.
Use cases
Data storage
Store binary data in text formats like JSON or XML.
Email and MIME
Encode attachments and binary content in emails.
Data URLs
Embed images or files directly in HTML or CSS.
APIs and Web Services
Transmit binary data through REST or SOAP APIs.
Frequently asked questions
Is Base64 encoding secure?
Base64 is an encoding, not encryption. It doesn't protect your data. Anyone can decode Base64. For security, use proper encryption (AES, RSA, etc.) before Base64 encoding.
Why does the size increase by 33%?
Base64 encodes 3 bytes (24 bits) into 4 characters (6 bits each). This less efficient representation increases size by about 33%, but ensures compatibility with text-only systems.
What's the difference between standard and URL-safe Base64?
URL-safe Base64 replaces + with -, / with _, and removes padding = to be usable in URLs without additional encoding.
Can I encode any file?
Yes! Any file (images, PDFs, videos, documents...) can be Base64 encoded. The limit here is 50 MB for browser performance reasons.
Is my data sent anywhere?
No! All processing happens locally in your browser. Your data never leaves your device.