Base64 to ZIP File Converter – Free

Convert Base64 to ZIP and download the archive. The decoder runs in your browser, verifies that the bytes begin with a ZIP signature and leaves the archive contents untouched.

How to use the Base64 to ZIP tool

  1. Paste the encoded archive into the Base64 or Base64 data URL box. Select Example to load an empty 22 byte archive.
  2. Select Decode file to decode the text and check its first four bytes.
  3. Read the size and the type application/zip in the Result box.
  4. Select Download to save decoded.zip, then extract it with your usual archive program.

How the tool recognizes a ZIP archive

ZIP records start with the letters PK, the initials of Phil Katz, who designed the format. Two more bytes say which record follows. A normal archive opens with a local file header, 50 4B 03 04. An archive with no entries consists only of the end of central directory record, 50 4B 05 06. This tool accepts either one and rejects everything else with The Base64 does not contain a ZIP file.

The check stops at the signature. The archive is not opened, entries are not listed and nothing is decompressed, so encrypted archives and very large ones are handled exactly like small plain ones. In Base64 the two accepted openings read UEsDB and UEsFB.

Worked example: reading an archive in Base64

The Example button loads UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==, which decodes to 22 bytes: the four signature bytes and 18 zero bytes for the disk numbers, entry counts, directory size, directory offset and comment length. It is the smallest valid ZIP, an empty archive.

The longer string below is an archive with one stored, uncompressed entry. Because nothing is compressed, you can spot the file name aGVsbG8udHh0 (hello.txt) and the content SGVsbG8sIHdvcmxkI inside the Base64. The 129 bytes are a 39 byte local header, 13 bytes of data, a 55 byte central directory entry and the 22 byte end record.

UEsDBAoAAAAAAI9EeF3mxubrDQAAAA0AAAAJAAAAaGVsbG8udHh0SGVsbG8sIHdvcmxk
IVBLAQIUAAoAAAAAAI9EeF3mxubrDQAAAA0AAAAJAAAAAAAAAAAAAAAAAAAAAABoZWxs
by50eHRQSwUGAAAAAAEAAQA3AAAANAAAAAAA

Result:  129 bytes · application/zip
File:    decoded.zip

ZIP based formats and look-alikes

Many modern file types are ZIP archives under another extension, and some popular archive formats are not ZIP at all.

  • Accepted: .docx, .xlsx, .pptx, .jar, .apk, .epub and .odt files all begin with a ZIP local header. They download as decoded.zip; rename them to restore the original extension.
  • Rejected: gzip data, whose Base64 starts with H4sI.
  • Rejected: 7z archives, which start with N3q8ryc.
  • Rejected: RAR archives, which start with UmFyIRo.
  • Rejected: self-extracting archives that begin with an executable stub, and split archives that begin with a spanning marker.

Why Base64 to ZIP output will not extract

A passing signature does not guarantee a healthy archive. The central directory, which lists every entry, sits at the end of the file. If the Base64 was truncated, the start still looks right and the tool still offers a download, but extraction programs report an unexpected end of archive. Compare the byte count in the Result box with the size the sender reported.

Double encoding is a frequent cause of the not-a-ZIP message. The first decode then yields text that starts with UEsDB instead of binary data. Decode that text a second time to reach the archive.

Frequently asked questions

Is the archive uploaded when I decode it?

No. The bytes are rebuilt in your browser and offered through a local download link. The server never sees the archive or the names of the files in it.

Can I see the files inside the ZIP on this page?

No. The tool verifies the four byte signature and saves the archive. It does not list or extract entries. Open decoded.zip with your operating system or an archive utility.

Does it work with password-protected ZIP files?

Yes. Encryption applies to the entries inside the archive, while the header the tool inspects stays readable. The file downloads normally and your archive program asks for the password when you extract it.

What does a Base64 ZIP string start with?

Almost always UEsDB, the encoding of the local file header signature 50 4B 03 04. An empty archive starts with UEsFB. Strings starting with H4sI are gzip, not ZIP, and need a different tool.

Why is my .jar or .epub saved with a .zip extension?

The tool knows only that the bytes form a ZIP container and always names the download decoded.zip. Rename the file to .jar, .epub or the extension you expected; the contents are unchanged.

Related tools