Master Base64 encoding for multiple binary files in n8n without custom code. This robust n8n workflow downloads, unzips, and aggregates files into a structured JSON array suitable for API submission.
Download this n8n workflow template and start using it instantly.
This sophisticated n8n workflow solves the common challenge of handling multiple binary files simultaneously and preparing them for external APIs. Many modern APIs require files to be submitted not via traditional multipart form data, but as a single JSON payload where the file content is Base64 encoded. This n8n node sequence is designed to be purely no-code, eliminating the complexity and maintenance associated with custom JavaScript solutions. By leveraging powerful core n8n nodes like Split Out and Extract From File, this n8n automation reliably downloads an archive, extracts its contents, encodes every file to Base64, reconstructs the original file path, and aggregates everything into a structured output array. This robust approach is a critical building block for advanced file-handling n8n workflow implementations.
The n8n trigger for this automation is a manual start, perfect for initial testing or integration into a larger schedule-driven n8n workflow.
Split Out Files n8n node separates this single item into multiple individual items, one for each file inside the zip. This ensures that subsequent operations process files sequentially.Encode Files to Base64 n8n node (an Extract From File node) performs the conversion, turning the binary data of the current item into a Base64 string property named data.Aggregate Output n8n node collects all separated n8n items and merges them into a single item. The output is a clean JSON structure containing a top-level files array, ready for submission to downstream n8n nodes or external API endpoints. This method provides a reliable n8n template for complex data handling.Download Demo Website HTTP Request n8n node to target your desired zipped file. Crucially, ensure the response format in this n8n node is set to File.Start n8n trigger and run the n8n workflow to verify the extraction and Base64 encoding results. Start (n8n trigger): Serves as the manual activation point for this n8n workflow.
Download Demo Website (HTTP Request n8n node): Downloads a remote zip file containing assets.
Key Configuration: Response format is strictly set to file to ensure binary compatibility with the next n8n node.
Unzip Demo Website (Compression n8n node): Decompresses the downloaded binary file.
Function: Transforms the single zip binary into multiple file binaries within one n8n item.
Split Out Files (Split Out n8n node): Separates the combined binary data structure into multiple, individual n8n items, enabling item-by-item processing.
Key Configuration: Splits out the $binary field.
Encode Files to Base64 (Extract From File n8n node): Converts the binary content into a Base64 string, effectively doing the encoding without custom code.
Key Configuration: Operation is Binary to Property. The property name is dynamically targeted using {{ $binary.keys()[0] }} to maintain compatibility regardless of the internal binary key name.
Add Path to Files (Set n8n node): Restructures the data to include the necessary path and data fields.
Key Configuration: Uses expressions to reconstruct the full path (including directory, if present) and extracts the Base64 data string.
Aggregate Output (Aggregate n8n node): Merges all individually processed items back into a single output item.
Key Configuration*: Aggregates all data into a destination field named files, creating the final JSON array.
Convert meeting audio to structured notes, tasks, and Google Sheets logs using this advanced n8n workflow template powered by AssemblyAI and GPT-4. Automate task extraction.

Convert Marker.io visual bug reports into detailed Zendesk support tickets automatically. Implement this powerful n8n workflow to centralize support operations and triage.

Automate publishing complex Markdown content (including tables and nested lists) to Notion. This n8n workflow uses the Mark2Notion API for seamless, structured content conversion.

Learn how to use a custom JavaScript n8n node to process and convert multiple binary files from a ZIP archive into Base64 strings, crucial for various API uploads requiring this specific format. This n8n workflow template solves complex batch file handling.

Use this powerful n8n workflow to convert simple natural language text into detailed, structured JSON prompts optimized for Google's Veo 3 video generation model. Explore advanced n8n templates for AI video production.

Use this powerful n8n workflow to transform natural language instructions into complex, multi-faceted Firecrawl search queries using an AI agent (GPT-4.1 mini), execute them in parallel, and log all results automatically in Google Sheets. Perfect n8n template for researchers.








































