Base64 to file decoder
Turn Base64 text back into the original file. Paste the text or a complete data URI; the tool works out what kind of file it is and gives the download the right extension.
How it works
-
Paste the text
Paste the Base64 text, or choose a .txt file that contains it.
-
Checked instantly
You see at once whether the text is valid and what kind of file is in it.
-
Download the file
The file automatically gets the right extension.
What it accepts
Plain Base64, base64url (with - and _), text with line breaks or spaces, missing = padding, and data URIs such as data:image/png;base64,iVBORw0KGgo…. If something is wrong, you see exactly where: line and character.
Knowing what you get
The tool looks at the first bytes of the result to recognise images, PDFs, ZIP files, audio and text. Images and text are previewed before you download, and you can rename the file.
A word of caution
Be careful with files you didn't expect. If you don't know what a decoded file is, don't open it on a computer that holds anything important.
Frequently asked questions
Is the base64 to file free?
Yes. The base64 to file is completely free, with no account, sign-up or usage limit.
How do I know what kind of file comes out?
The tool looks at the first bytes of the result and recognises images, PDFs, ZIP files, audio and text, among other things. The file automatically gets the right extension, and images and text are shown straight away.
Is my text uploaded?
No. The decoding happens in your browser; nothing leaves your device.