Base64 to File Converter

Decode Base64 or a data URI and download the result as a file, with the name and type you choose.

Processed on your device. Files are not uploaded

How to turn Base64 into a file

  1. Paste your Base64

    Plain Base64 or a full data URI both work.

  2. Check what it is

    The first bytes are read to tell you what kind of file it looks like.

  3. Name the file

    Set the file name and, if you know it, the type.

  4. Download

    Save it as a file, such as a PDF or an image.

Worked example

This is what Base64 to File Converter gives for its own sample values. Open the tool above and change anything to try your own.

Base64 or data URI

SGVsbG8sIFNhcnZhIQ==
File name
decoded.bin
File type

Result

First bytes (hex)
48 65 6c 6c 6f 2c 20 53

About Base64 to File Converter

Decode Base64 or a data URI and save the result as a file, such as a PDF or an image, with the name you choose. The first bytes are checked to tell you what kind of file it looks like.

FAQs

Does it know the file type?

It recognises common signatures such as PDF, PNG, JPEG, GIF and ZIP, but you choose the name, so use the right extension.

What if the Base64 is URL-safe?

Both alphabets are accepted, and missing padding is fine.

Can I preview an image?

Use Base64 to Image.

Related tools