64 Base64Toolkit
Language:

Base64 to File

Paste Base64, get the original file back — decoded and downloaded locally, never uploaded.

Rebuilding files from Base64

This is the counterpart to File to Base64: it decodes a Base64 string into raw bytes and hands them to your browser as a normal file download. The file signature (magic bytes) is inspected locally to suggest the right extension — PDF, ZIP, PNG, JPG, GIF, WebP, GZIP and more are recognized automatically.

Typical uses: recovering a certificate or keystore stored as a CI/CD secret, saving an email attachment extracted from raw MIME source, extracting binary payloads from JSON responses, and turning Kubernetes Secret values back into the original config files.

Frequently Asked Questions

How do I convert Base64 back to a file?

Paste the Base64 string, optionally set a filename, and click Download file. The bytes are decoded locally and saved through your browser — the file type is auto-detected from its signature when possible.

How do I decode a Base64 file on the command line?

Linux: base64 -d input.txt > file.bin. macOS: base64 -D -i input.txt -o file.bin. PowerShell: [IO.File]::WriteAllBytes("file.bin",[Convert]::FromBase64String((Get-Content input.txt -Raw))). This page does the same with zero syntax to remember.

The downloaded file will not open — what went wrong?

Check that the Base64 was copied completely (truncation is the usual culprit), that it is not wrapped in quotes, and that it is not double-encoded. The detected-type indicator above the download button tells you what the bytes actually look like.

Related Tools