This template solves the problem of correctly handling binary files in n8n when the perceived extension or MIME type needs to be changed without altering the content. Especially useful when passing files to services that strictly validate format.
## Who it´s for
- n8n developers working with binary files
- Integrators who need to change file MIME type within data flow
- Users automating media file processing in n8n
## What the automation does
- Receives a binary file as input (e.g., from execution trigger)
- Extracts file data in Base64 format
- Repackages it back into a binary object with new name and extension
- Sets correct MIME type for downstream processing
- Examples: .bin → .png, no extension → .mp3, .wav → .mp3
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic
- Integrations with core n8n features, JavaScript, and Base64 encoding
- Basic text instructions for launch and adaptation
## Requirements for setup
- n8n account (cloud or self-hosted)
- Access to edit workflows
- Source binary file or incoming file source
## Benefits and outcomes
- Ensures file compatibility with target services
- Prevents errors due to incorrect MIME type
- Automates format conversion without external tools
- Saves storage by renaming to compact formats (e.g., .wav → .mp3)
- Simplifies handling files from systems with invalid extensions
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via Telegram: @gleb923.
change file MIME type
rename binary file
file format conversion
n8n file handling
Base64 repackaging
change file extension
binary data processing
n8n automation
modify file type
media file automation
file integration in n8n
MIME type override
re-save file
file management in workflow
n8n JavaScript node
No feedback yet