How to convert Base64 to File
Restore local file bytes from Base64 text or a data URL. Save the result with an appropriate extension so the receiving application can open it.
- Paste the full encoded value, set Output filename and decode.
- Verify that the new file matches the expected type before using it.
Example input
SGVsbG8=
Example use
Recover a PNG fixture supplied as a Base64 data URL and view it in an ordinary image viewer.
Output and compatibility
The output is the decoded bytes. Naming the download .png does not force it to be a PNG. This tool cannot repair missing data, and a large Base64 string can put extra pressure on memory.
Troubleshooting
If the saved file does not open, check the copied source for truncation and use File Type Detector to inspect its actual data.
Use File to Base64 for the reverse workflow.
Frequently asked questions
Can it decode a data URL with a MIME prefix?
Yes, it can decode compatible Base64 data URLs as well as plain Base64.
Should I use it for a readable text string?
Base64 Decode displays decoded UTF-8 text directly.