💡Need to decode Base64 data? Our free online tool instantly converts encoded strings and files back to their original format—perfect for developers working with APIs, email attachments, and data recovery. 🚀 Supports files up to 10MB. No downloads required!
🔍 Verify the Base64 string follows RFC 4648 standards
📊 Convert each Base64 character to its 6-bit value
🧩 Combine four 6-bit chunks into 24-bit sequences
💾 Split into original 8-bit bytes and convert to output format
Accepts RFC 4648 standard Base64 alphabet plus variants:
Type | Characters | Notes |
---|---|---|
0 -25 | A-Z | 🔠 Uppercase letters |
2 6-51 | a-z | 🔡 Lowercase letters |
5 2-61 | 0 -9 | 🔢 Digits |
6 2-63 | +/ | ⚡ Standard symbols |
= | ⏹ ️ Padding character | |
-_ | 🌐 URL-safe variant |
Decoding size comparison:
Base64 Size | Original Size | Reduction |
---|---|---|
4 characters | 3 bytes | 🔽 25% |
1 .33KB | 1 KB | 🔽 25% |
1 .33MB | 1 MB | 🔽 25% |
Average processing times (Chrome v120):
File Size | Decoding Time |
---|---|
1 KB | ⚡ <50ms |
1 00KB | ⚡ <300ms |
1 MB | ⏳ <1.5s |
1 0MB | ⏳ <8s |
Native Base64 tools across platforms:
🔤Decode string
echo 'SGVsbG8=' | base64 --decode
Basic string decoding
📁Decode file
base64 -d input.b64 > output.txt
Base64 to file conversion
🔌PowerShell decode
[Text.Encoding]::UTF8.GetString([Convert]::FromBase64String("SGVsbG8="))
Native PowerShell method
⌨️ CMD decode
certutil -decode input.b64 output.txt
Built-in Windows utility
const binaryString = atob('iVBORw0KGgo...');
const decodedData = JSON.parse(atob(localStorage.getItem('cache')));
Content-Transfer-Encoding: base64
const attachment = Buffer.from(encodedContent, 'base64');
Base64
characters, 2) Missing padding '=', or 3) The data was originally binary (try saving as file rather than viewing as text).Base64
back to standard format.Base64
is not encryption - it's encoding. For sensitive data, ensure proper encryption (like AES) was used before the original encoding.For debugging, first validate your Base64 string with our tool before attempting to decode it in your application.
Always check the output size after decoding - it should be ~25% smaller than the Base64 input.
Combine with gzip decompression when handling large decoded data that was previously compressed.