AcademyWorkflowsDevelopment

Split Out Binary Data

Developers who build n8n automations that receive files and need to handle each attachment separately.

  • Recommendedour rating
  • 5,766views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

split-out-binary-data.json

Loading the file...

What it does

This n8n workflow solves a common problem with binary attachments, such as files that arrive with an incoming email under keys like attachment_0 and attachment_1. A Function node takes all incoming items and their binary data, then returns one item per file with the file in a data field. The result is a list that a loop can process.

Use cases

  1. 01Process each email attachment on its own
  2. 02Pass single files to a document or upload step
  3. 03Prepare binary files for a loop that handles one at a time

Connects

HTTP Request · Compression

Questions about
Split Out Binary Data.

What is Split Out Binary Data used for?

Developers who build n8n automations that receive files and need to handle each attachment separately. This n8n workflow solves a common problem with binary attachments, such as files that arrive with an incoming email under keys like attachment_0 and attachment_1. A Function node takes all incoming items and their binary data, then returns one item per file with the file in a data field. The result is a list that a loop can process.

How do I import Split Out Binary Data into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Split Out Binary Data safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.