Base64 to File
Paste Base64 or a data URL and get the original file back, with its real type detected so it gets the right extension.
Base64 to File decodes Base64 text or a data URL back into the original file and downloads it. The real type is detected from the decoded bytes, so the file gets the right extension even when the text gives no hint. Images are previewed.
What Base64 can it read?
Raw Base64
Standard or URL-safe (with - and _), with or without = padding and line breaks. Spaces and line breaks are ignored.
Data URLs
Text starting with data:, such as data:application/pdf;base64,JVBERi0. Data URLs without ;base64 hold percent-encoded text and are decoded too.
Why use Base64 to File?
- Recover attachments. Turn a Base64 string from an API response, log or email source back into a file you can open.
- Right extension. The file type is read from the decoded bytes, so a PDF is saved as .pdf even if nothing said so.
- Private. Decoding happens in this tab.
How to use Base64 to File, step by step

- Paste the text into Base64 to File. Try the example to decode a small PNG image.
- Name the file if you like. Leave it empty to call it decoded, with the detected extension added.
- Make the file and download it. The note shows the size and the detected type.
Frequently asked questions
Why does it say a character is not Base64?
The text contains something outside the Base64 alphabet, often a quote or comma copied by accident. The message gives its position.
What if the type cannot be detected?
The file is saved with a .bin extension. Give it a name with the right extension if you know what it is.
Is there a size limit?
Pasting very long text into a page is the main limit; tens of megabytes usually work on a laptop.
Looking for the long version? The guides cover each of these jobs in depth.