- Home
- Resources
- Integrations
- Compression
n8n Compression nodeConfigure Compression in n8n.
The n8n Compression node turns binary files into archives, and archives back into files. It carries 2 operations, Compress and Decompress, nothing to authenticate, and it reads the archive format from the file extension. Useful as soon as attachments travel through a workflow.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Compression node do in a workflow?
The n8n Compression node compresses files into a zip or gzip archive, and decompresses zip and gzip files back into separate items. It works on the binary data attached to the items that reach it, so a trigger always runs first: a Schedule Trigger, a Webhook, or the trigger of a tool. Nothing to connect, no credential, no account.
First scenario: a report that arrives in pieces. A workflow pulls five files during the night, and the recipient wants one attachment, not five. Compress collects the binary fields listed in Input Binary Field(s) and writes a single archive under the name set in File Name. The Gmail node then sends that one file, and the mailbox stays readable.
Second scenario: an archive that lands in the workflow and has to be opened. A supplier drops a zip on an endpoint, the HTTP Request node downloads it, and Decompress splits it into one item per member file. From there each file follows the normal path, one row at a time into Google Sheets, or straight into a storage node.
Third scenario: a heavy export that travels badly. A daily database dump goes out as a single file, and gzip shrinks it before it crosses the network. The output lands in the binary field named in Put Output File in Field, which keeps the original data untouched if the next node still needs it. A short message to Slack closes the run.
When to reach for something else: this node handles files, not records. Turning a list of items into a csv, renaming fields, or filtering rows belongs upstream, and an archive that never needs to exist as a file is usually a sign the compression step is not the right tool. Compression also does not fetch anything by itself, so the download stays the job of the node before it.
The known limits are worth reading before building on top. Decompress detects the format from the extension and supports 5 of them, zip, gzip, tar, tar.gz and tgz. Anything else throws an error rather than producing an empty output, which is the friendlier behavior but still stops the execution. A .tar.gz or .tgz archive is unpacked in a single step, so there is no gzip layer to peel first. The node ships with n8n on Cloud and on a self-hosted instance alike, at version 1, and our n8n review covers how the rest of the builder holds up.
Which parameters does the Compression node expose?
The Compression node exposes 2 operations. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Compress file(s)
compressWhat you see in n8n
Notes & use cases
Compress reads the binary files carried by the incoming item and writes an archive back onto it, in zip or gzip format.
Key parameters
- Input Binary Field(s): the binary field holding the file. For several files, a comma separated list such as
data,data2,data3. - Output Format:
zipgathers the files into one archive,gzipcompresses the stream. - File Name: the name of the archive created, for example
data.zip. - Output File Prefix: the prefix added to the gzip file.
- Put Output File in Field: the output binary field the archive lands in.
Decompress file(s)
decompressWhat you see in n8n
Notes & use cases
Decompress opens an archive already attached to the item and gives back its member files, format recognized from the extension.
Key parameters
- Input Binary Field(s): the field carrying the archive, or a comma separated list to open several in the same run.
- Output Prefix: the prefix the node puts in front of each extracted file, followed by an incrementing index.
Need help automating Compression with n8n?
A person reads every message.
Compression and n8n, the questions that come up
01Is the Compression node free in n8n, on Cloud and self-hosted?
02What credentials does the Compression node need?
03What are the limits of the n8n Compression node?
04When should you use Compression rather than another node?
05n8n or Make for compressing files?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
