Templates / Convert multiple files to base64 with JavaScript code

Convert multiple files to base64 with JavaScript code

Ready for 3.0

by Viktor Klepikovskyi ✓ · 945 views · created 2025-08-02 · File Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 4 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls github.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Download n8n demo website zip (HTTP Request): calls github.com
  2. Unzip (Compression): uses Compression
  3. Encode to base (Code): runs custom JavaScript code

HTTP calls to: github.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (4)

From the author

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…

Excerpt from Viktor Klepikovskyi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.