Base64 to File
Base64 to File
Decode Base64 text or data URI into a downloadable file.
Live
Live update on input changes.
File input
Choose a file
Click, drop, or paste from clipboard.
More actions
Input: manual
Awaiting valid input
Paste Base64 text, data URI, or upload a file to generate a downloadable binary.
Your input is processed locally in your browser whenever possible. We do not store your data.
Flow
- Accept both raw Base64 strings and full data URI input.
- Decode Base64 into binary bytes and wrap bytes in a Blob using selected MIME type.
- Create a temporary object URL so you can download the reconstructed file locally.
Example
Worked example: decode text payload
- 1 Paste SGVsbG8gQ2FsY0NvbnZlcnRUb29scw== as Base64 input.
- 2 Set MIME type to text/plain and filename to hello.txt.
- 3 Decode and download to confirm file content.
Downloaded hello.txt contains: Hello Calctrove.
How
- Paste Base64 text or a full data URI into the input panel.
- Set MIME type and filename to match the file you expect.
- Decode and download the generated file to verify content.
Cases
- Recover image attachments embedded as Base64 in JSON responses.
- Extract downloadable files from Base64 payloads in integration tests.
- Validate whether incoming encoded data matches an expected file format.
Avoid
- Leaving whitespace or truncated characters inside the Base64 payload.
- Using incorrect MIME type, which can confuse apps opening the file.
- Assuming every Base64 input is UTF-8 text instead of binary file bytes.
FAQ
Does base64 to file send data to a server?
No. Decoding and file generation happen locally in your browser.
Can I paste a full data URI instead of plain Base64?
Yes, the tool accepts full data URIs and extracts the Base64 portion automatically.
Why does the downloaded file not open correctly?
Check that the Base64 payload is complete and MIME type/extension match the original file format.
Switch
Switch12
No match.