AutomationMart
Home/Browse/Convert multiple files to base64 with JavaScript code
n8n

Convert multiple files to base64 with JavaScript code

n8nn8n4 modulesv1.0
UNSUPPORTED_SLUG_FORMAT

Base64 Encode Multiple Binary Files with a Code Node This template demonstrates how to handle multiple binary files in n8n by using a Code node to convert them into a Base64 encoded string. It's particularly useful when an API requires file uploads in this format and the standard 'Extract From File' node is not sufficient for batch processing. The workflow starts by downloading a ZIP file, unzipping it to get multiple binary files, and then uses a Code node with custom JavaScript to encode each

At a glance

Convert multiple files to base64 with JavaScript code is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects UNSUPPORTED_SLUG_FORMAT. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
UNSUPPORTED_SLUG_FORMAT
Modules
4
Price
Free
Version
v1.0
Convert multiple files to base64 with JavaScript code workflow diagram

About this workflow

Base64 Encode Multiple Binary Files with a Code Node This template demonstrates how to handle multiple binary files in n8n by using a Code node to convert them into a Base64 encoded string. It's particularly useful when an API requires file uploads in this format and the standard 'Extract From File' node is not sufficient for batch processing. The workflow starts by downloading a ZIP file, unzipping it to get multiple binary files, and then uses a Code node with custom JavaScript to encode each file individually. Instructions 1. Download and import this template into your n8n instance. 2. Run the workflow once to see how it downloads, unzips, and then encodes multiple files. 3. Modify the 'HTTP Request' node to download your own binary file or a ZIP file containing multiple files. 4. Update the 'Code' node if you need to adjust the output format or file paths. 5. Use the output of the 'Code' node in a subsequent node, such as another 'HTTP Request' to send the Base64-encoded files to your desired API. A link to the full blog post is available here.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Send structured logs to BetterStack from any workflow using HTTP request

Send structured logs to BetterStack from any workflow using HTTP Request Who is this for? This workflow is perfect for automation builders, developers, and DevOps teams using n8n who want to send structured log messages to BetterStack Logs. Whether you're monitoring mission-critical workflows or simply want centralized visibility into process execution, this reusable log template makes integration easy. What problem is this workflow solving? Logging failures or events across multiple workflows t

Free

Buffer your new Spotify saved tracks

Every time you save a new track on Spotify, Make will automatically add it to your Buffer queue.

Free

Collect Xiaohongshu note comments with JustOneAPI for feedback analysis

This workflow helps you retrieve public comments from a Xiaohongshu note through JustOneAPI and convert them into structured data for feedback review, sentiment analysis, moderation checks, and downstream automation in n8n. How it works The workflow starts with a manual trigger so you can run it whenever needed. It then reads the values from the configuration step, including your JustOneAPI token, the target Xiaohongshu note ID, and the maximum number of comments you want to process. Next, it se

Free

Transparent tracking pixel for email open detection

Description This workflow serves a 1x1 transparent PNG image via a webhook, which can be embedded in an email to track when the email is opened. When the image is loaded by the recipient's email client, the webhook is triggered, optionally capturing a userId to identify who opened the email. 📂 Workflow Steps 1. Webhook Trigger (Request img) - Path: /webhook/change-with-your-id - Triggered by an HTTP request (e.g. when the image is loaded in an email). - Accepts a query parameter id to identif

Free

AI agent to chat with Snowflake database

Video Guide I prepared a detailed guide showcasing the process of building an AI agent that interacts with a Snowflake database using n8n. This setup enables conversational querying, secure execution of SQL queries, and dynamic report generation with rich visualization capabilities. []( Youtube Link Who is this for? This workflow is

Free

Automatically upload email attachments to your FTP server

Every time you receive an email with an attachment, Make will automatically save the attachment to a selected FTP folder.

Free

Automated patient response system with GPT-3.5 and Google Sheets for dental clinics

From Leads to Smiles – Automated Patient EngagementTurn every lead into a booked appointment with AI 💡 Why this workflow? Dental clinics lose 50%+ of leads due to slow response. This template ensures instant engagement with AI-powered personalization. Works for dentists, beauty clinics, physiotherapists, or any appointment-based business. Description: When a new patient submits a form (e.g., teeth whitening, Invisalign, implants), the workflow: 1. Captures and stores the lead in Google Sheets. 2

Free

Query PostgreSQL database with natural language using Groq AI chatbot

This guide shows you how to deploy a chatbot that lets you query your PostgreSQL database using natural language. You will build a system that accepts chat messages, retains conversation history, constructs dynamic SQL queries, and returns responses generated by an AI model. By following these instructions, you will have a working solution that integrates n8n’s AI Agent capabilities with PostgreSQL. Prerequisites Before you begin, ensure that you have the following: An active n8n instance (self

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free