Steps
File Name is required, the extension is not
Compress with File Name left empty did not even start:
The 'Compression' node has issues: - Parameter "File Name" is required.A File Name without an extension is fine when you make the zip:exportstill came out asapplication/zipwith the extensionzip, and unzipping it later in n8n worked. The input JSON is kept on the item, but the original files are replaced by the archive: after zippingdataandatt, only the zip was left indata.Several files in one zip: list the binary fields
To put two files of the same item into one zip, list their binary field names separated by commas.
data, att(the spaces were trimmed) gave onea.zipwithreport.csvandnote.txt. A name that is not on the item failed withThe item has no binary field 'file' [item 0], and an item with only JSON failed withThis operation expects the node's input data to contain a binary file 'data', but none was found [item 0]. See n8n binary data not found for where the file went.Three items gave three zips: aggregate them first
The node works per item. Three items, each with one CSV in
data, gave three separatea.zipfiles, one CSV in each, with a green run. The fix we ran: an Aggregate node with All Item Data and the option Include Binaries turned on. It gave ONE item with the binary fieldsdata,data_1anddata_2. Compression with Binary Fieldsdata,data_1,data_2then made one zip withr1.csv,r2.csvandr3.csv. With onlydatain the list the zip held justr1.csv, still green. More on Aggregate: n8n Split Out, Aggregate and Summarize.Duplicate file names silently lose files
Two binary fields that are both called
file.csvgave a zip with ONEfile.csv, holding the content of the last field. The same happened after Aggregate with two items that each hadreport.csv: one entry in the zip, green run, data gone. Give every file a unique name before you zip. A file with no file name at all went into the zip as an entry literally calledundefined.After unzip the files are in file_0, not data
Decompress put the files in
file_0,file_1,file_2. So an Extract From File right after it, left on its default fielddata, failed withThe item has no binary field 'data' [item 0]. Two fixes: set the Extract From File input field tofile_0, or set Output Prefix todataon the Compression node. We ran the second one: the files came out asdata0,data1,data2(no underscore) and Extract From File readingdata0returned the CSV rows. CSV problems after that: n8n Extract From File (CSV) not working.All unzipped files stay in one item
A zip with three files gave one item with
file_0tofile_2, not three items, and two input zips gave two items with three files each. The node does not split files into items, so a node that should process each file sees only one item (splitting needs a Code node, which we did not run). Folder paths were dropped (notes/readme.txtcame out asreadme.txt), folder entries and__MACOSXentries were skipped, and an accented name likeRésumé été.txtwas kept. The input JSON stayed on the item."File extension not found", "Unsupported archive format", "invalid zip data"
Decompress decides the format from the file extension. A file named
download, or one with no name, failed withFile extension not found for binary data data: set a file name with the right extension first..rarand.7zfailed withUnsupported archive format ".rar" for binary data dataand the noteThe Decompress operation supports the following formats: zip, gzip, tar, tar.gz and tgz. An uppercaseARCHIVE.ZIPworked. Random bytes, or an HTML error page saved asexport.zip, failed withinvalid zip data. That last one is what you get when an HTTP Request downloads a login or 403 page instead of the file: check the size and MIME type of what came back, see n8n HTTP Request node errors.gzip, tar and tar.gz: the name decides what happens
Compress with gzip made one
.gzper field:report.csvbecamereport.csv.gz(application/gzip), and two fields came out asdataanddata1. A File Name ofbackup.gzstill gavebackup.csv.gz. Node v1 named itreport.gzipin the fielddata0. Tar madea.tar(3.07 kB for two tiny files) and Tar (Gzip) madea.tar.gz(152 B). On the way back,report.csv.gzgavereport.csv, butreport.gzgave a guessedreport.txt. A tar.gz archive namedbackup.gzwas only gunzipped, intobackup.tar(10.2 kB), not unpacked; named.tar.gzor.tgzit unpacked toa.txtandb.json.Green runs that did nothing
An empty zip unzipped with success and no files at all, so the next node got an item with no binary. A zip inside a zip came out as
inner.zip, still zipped: Decompress goes one level only, so add a second Compression node for the inner one (we did not run this). With On Error set to continue (regular output), a bad zip gave{"error":"invalid zip data"}and the file was gone from the item. Node v1 decompressed exactly like v1.1.
What we ran
On 24 October 2026 we ran 42 executions of the Compression node v1.1 (two on v1) on self-hosted n8n 2.43.7 with n8n execute: a Manual Trigger, a Code node with test files built with Python zipfile, gzip and tarfile, the Compression node and a Code node that read the real archive bytes with getBinaryDataBuffer. 31 runs succeeded and 11 failed. Every value below is copied from those runs.
| Setup | Result |
|---|---|
| Compress zip, File Name empty | Not started: Parameter "File Name" is required. |
Compress zip, File Name export.zip | export.zip 140 B, input JSON kept |
Compress zip, File Name export | export, application/zip, extension zip |
Zip of data, att | One a.zip with report.csv and note.txt (247 B) |
Zip of field file (not on the item) | Error The item has no binary field 'file' [item 0] |
| Zip of an item with JSON only | Error binary file 'data', but none was found [item 0] |
| 3 items, one CSV each | 3 items, 3 separate a.zip files |
| Aggregate, All Item Data, Include Binaries | 1 item, binary data, data_1, data_2 |
Aggregate, then zip of data | Zip with r1.csv only, green |
Aggregate, then zip of data,data_1,data_2 | One zip with r1.csv, r2.csv, r3.csv (352 B) |
| Aggregate of 2 items both named report.csv, then zip | Zip with one report.csv |
| Zip of 2 fields both named file.csv | Zip with one file.csv, last content wins |
| Zip of a file with no file name | Entry named undefined |
| Gzip v1.1, one field | report.csv.gz 40 B, application/gzip |
| Gzip v1.1, two fields | data report.csv.gz, data1 note.txt.gz |
Gzip v1.1, File Name backup.gz | backup.csv.gz |
| Gzip v1 | data0 report.gzip |
| Tar, two files | a.tar 3.07 kB, application/x-tar |
| Tar (Gzip), two files | a.tar.gz 152 B, application/gzip |
| Zip, then Decompress | file_0 report.csv, file_1 note.txt |
Zip named export, then Decompress | file_0 report.csv |
| Decompress zip with a folder, __MACOSX and an accented name | file_0 to file_2: report.csv, readme.txt, Résumé été.txt |
Decompress ARCHIVE.ZIP | Same 3 files |
Decompress download (no extension) | Error File extension not found for binary data data |
| Decompress a file with no name | Same error |
Decompress a.rar | Error Unsupported archive format ".rar" |
Decompress a.7z | Error Unsupported archive format ".7z" |
Decompress random bytes as a.zip | Error invalid zip data |
Decompress an HTML page saved as export.zip | Error invalid zip data |
Decompress report.csv.gz | file_0 report.csv (text/csv) |
Decompress report.gz | file_0 report.txt (text/plain) |
Decompress b.tar.gz | a.txt and b.json |
Decompress b.tgz | a.txt and b.json |
Decompress a tar.gz named backup.gz | backup.tar 10.2 kB, not unpacked |
Decompress, then Extract From File on data | Error The item has no binary field 'data' [item 0] |
Decompress with Output Prefix data, then Extract on data0 | CSV rows returned |
Decompress field attachment_0 (not on the item) | Error The item has no binary field 'attachment_0' [item 0] |
| Decompress an empty zip | Success, no binary |
| Decompress a zip inside a zip | file_0 inner.zip, still zipped |
| Decompress 2 items with a zip each | 2 items, 3 files each |
| Decompress a bad zip, On Error continue | {"error":"invalid zip data"}, file gone |
| Decompress on node v1 | Same as v1.1 |
Quick checklist
- One zip per item? Aggregate with Include Binaries, then list
data,data_1,data_2. - Files missing from the zip? Two had the same name: rename them first.
no binary field 'data'after unzip? The files are infile_0: change the field or set Output Prefix.File extension not found? Give the file a name with .zip, .gz, .tar, .tar.gz or .tgz.invalid zip data? Check you downloaded the file and not an error page.- .tar.gz only gunzipped? Name it .tar.gz or .tgz, not .gz.
- Empty result but green? The zip was empty or nested one level deeper.
Good to know
- Making the CSV or XLSX to zip: n8n Convert to File not working. It drops the JSON fields, the Compression node does not.
- Every error message we reproduced is in the n8n error message index.
What we didn't test
- The editor UI itself (we ran workflows from JSON, so labels may differ slightly), n8n Cloud, password-protected zips, large archives and any size or entry limits, and splitting unzipped files into separate items.
Start from a working agent
FAQ
How do I zip multiple items into one zip file in n8n?
The Compression node makes one zip per item. Aggregate the items first with All Item Data and Include Binaries, then list every binary field (data,data_1,data_2) in the Compression node. In our run that gave one zip with all three files.
Why is there no binary field data after unzip in n8n?
Decompress outputs the files as file_0, file_1 and so on. Point the next node to file_0, or set Output Prefix to data to get data0, data1.
What does "File extension not found for binary data data" mean in n8n?
Decompress picks the format from the file name, and the file had no extension. Give it a name ending in .zip, .gz, .tar, .tar.gz or .tgz first.
Can n8n unzip .rar or .7z files?
No. The Compression node failed with Unsupported archive format and lists zip, gzip, tar, tar.gz and tgz as the supported formats.
Why do I get "invalid zip data" in n8n?
The file is not a real zip. In our runs random bytes and an HTML page saved as export.zip both gave this error; it usually means an HTTP Request saved an error or login page.
Why are files missing from my n8n zip?
Two files had the same name, so only one entry was kept, with the last content. Or only data was listed in Binary Fields. Rename the files and list every field.
Related guides
- n8n Extract From File (CSV) not working: delimiter, BOM, encoding and errors, 32 runs
- n8n Convert to File not working: empty CSV, lost fields and broken base64, 38 runs
- n8n binary data not found? Fix 'none was found' and 'no binary field', 25 tests
- n8n XML node not working: parse errors, one item vs array, attributes and Split Out, 39 runs
- Get an alert when a cron job or n8n workflow silently stops running
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes