n8n Base64 results to files: fields and types
Convert an existing Base64 string to a file and inspect nested fields, bytes and MIME labels.
Distinguish an encoded string from a file · Choose the Base64-to-file operation · File labels do not verify byte type
At a glance
This guide explains one existing-data task from official node documentation. Establish input and receiver contracts, configure parameters and inspect output. Local checks use public synthetic data without running n8n or calling a model.
Checks from input to delivery
Inspect input
Check fields, formats and receiver prerequisites.
Configure conversion
Use the documented operation and actual fields.
Inspect output
Check count, types and boundaries before continuing.
Distinguish an encoded string from a file
The input is an existing Base64 string rather than a download URL, filename or raw JSON. The fixture result.payload contains Base64 for the UTF-8 bytes of Public A. Inspect the provider field and encoding contract and preserve the input. This task calls no generation model and does not authenticate an image or audio payload.
Choose the Base64-to-file operation
Choose Move Base64 String to File in Convert to File and set Base64 Input Field to result.payload; dot notation accesses deep fields. Set File Name to the agreed name, such as demo.txt, and MIME Type to the actual content contract, such as text/plain. This differs from Convert to JSON item-grouping modes and does not replace JSON serialization.
File labels do not verify byte type
Inspect the actual binary field, decoded content and receiver support rather than the extension alone. File Name and MIME Type are configured labels, without verifying payload format. If a provider returns a data URL or another wrapper, inspect its documentation before treating it as plain Base64. Stop on missing fields, contract mismatch or unsupported types.
Only encoding round trips were checked locally
The local standard-library check encoded Public A and decoded it strictly, confirming byte equality and rejection of clearly invalid characters. It did not run n8n, and strict-decoder behavior is not the node error policy. Inspect actual node output and size before connecting a compatible parser or storage step.
Article sources
Original editorial content; official descriptions and checking suggestions are distinguished.