Steps
Your other fields are gone: Convert to File outputs only the file
In every run that produced a file (32 of them) the output item's JSON was empty,
{}. Every input field (name, email, id) was dropped and only the binary file was left, with a green run. So a node after it that reads{{ $json.email }}gets nothing. Chaining two Convert to File nodes shows how bad it gets: a Convert to Text File followed by Convert to CSV gave a CSV of 4 bytes, just the BOM and a line break, still green, because the second node got{}. The first node's file was not in the final output either. Build the file as the last step of a branch, after everything that needs the fields. If you need the fields and the file on the same item, merge them back by position with a Merge node (we did not run this fix).All items go into one file, and File Name uses the first item
Convert to CSV, XLSX, HTML and ODS put every input item into ONE file. Two items gave one
File.csvwith two data rows. The File Name option accepts expressions, but with all items in one file only the first item counts:{{ 'export-' + $json.id + '.csv' }}gaveexport-1.csv, never export-2. For JSON, the default writes one array tofile.json; Mode Each Item to Separate File gave one file per item, but all of them were namedfile.json, so set a File Name if you save them. Format pretty-printed the JSON.Every CSV starts with a BOM
Every CSV the node wrote began with the 3 bytes
EF BB BF, a UTF-8 byte order mark, also with a semicolon delimiter and with Header Row off. Accents were written correctly in UTF-8 (Prénom Éléonore,Zürich €). The BOM helps spreadsheet apps detect UTF-8 (we did not open the files in Excel), but a strict parser sees the first header as\ufeffname, notname. Reading the file back with Extract From File gives that key: turn on Exclude Byte Order Mark (BOM) there, see n8n Extract From File (CSV) not working. Rename Keys will not match it either: n8n Rename Keys node not working.Nested objects and arrays become dot columns
{"address":{"city":"Paris","zip":"75001"}}became the columnsaddress.cityandaddress.zip, and an arraytags: ["a","b"]becametags.0andtags.1, in CSV and in XLSX. Items with different keys did not lose data: the header was the uniona,b,c,dand missing cells were left empty (same in node v1 and v1.1). Quoting was correct: a quote inside a value was doubled, a line break stayed inside quotes, anda;bwas not quoted with the comma delimiter. If you want other column names or a flat structure, shape the items with Edit Fields before the node.Big numbers lose digits in CSV
A JSON number
12345678901234567890was written to the CSV as1.23457E+19: the digits are gone for good. Other values: null and an empty string became empty cells, true becameTRUE, 0 and 0.1 stayed as they were, the text0042kept its zeros and an ISO date string was written as text. In XLSX, numbers stayed number cells and strings stayed text cells, so0042,+33612345678and the string"12345678901234567890"were kept exactly, while the same value as a number was stored as12345678901234567000. Send long ids, phone numbers and codes as strings. We did not run the string version through CSV.Sheet name errors in XLSX
Sheet Name
Report: 2026/10failed withSheet name cannot contain : \ / ? * [ ], and a name of 44 characters failed withSheet name cannot exceed 31 chars. Use a short name without those characters, for exampleReport 2026-10. Left empty, the sheet is calledSheetand the fileFile.xlsx(about 16 kB for two rows).Convert to Text File: "is required" and "is not set"
With Text Input Field left empty the workflow did not start:
The 'Convert' node has issues: Parameter "Text Input Field" is required.With a field name that is not on the item (bodywhen the text is intext) the node failed withThe value in "body" is not set. Type the field name, not an expression with its value. A number (42) was written fine, accents and line breaks were kept, and the File Name option gavenote.txt. An object field was written as JSON text{"a":1}in a.txtfile with the MIME typeapplication/json: use Convert to JSON if you want a JSON file.Move Base64 String to File: garbage files with a green run
Valid base64 (
aGVsbG8gd29ybGQ=) gave the right file, but namedfilewith no extension and MIME typetext/plain. Set the File Name and MIME Type options:a.pngandimage/pnggave a file with a correct PNG header. The node never checks the input. Plain text (hello world) was decoded as if it were base64 and gave 7 bytes of garbage. A data URL likedata:text/plain;base64,aGVsbG8gd29ybGQ=gave 15 garbage bytes in front of the real content, so the file was corrupt. Both runs were green. Strip the prefix first, for example with{{ $json.file.split(',')[1] }}in an Edit Fields node (we did not run this fix). A dot path such asbody.fileworks in Base64 Input Field.The file is in the wrong binary field, or there is no file
By default the file goes into the binary field
data. With Put Output File in Field set tofile, the CSV was stored underfile, so a later node that readsdatawill not find it: use the same name in both nodes (see n8n binary data not found). With 0 input items the node output nothing: no empty file, and the next node never ran. Convert to ICS worked with ISO dates (event.ics,text/calendar), but a start of24/10/2026 10:00failed with an EMPTY error message, so if the error panel says nothing, check the date format first. Convert to HTML wrote a SheetJS table (titleSheetJS Table Export), ODS gave an 8 kB file, and the CSV Compression option changed nothing in our run (same 42-byte file).
What we ran
On 24 October 2026 we ran 38 executions of the Convert to File node v1.1 (one on v1) on self-hosted n8n 2.43.7 with n8n execute: a Manual Trigger, a Code node with test items, the Convert to File node and a Code node that read the real file bytes with getBinaryDataBuffer. 33 runs succeeded and 5 failed. Every value below is copied from those runs.
| Setup | Result |
|---|---|
| CSV, 2 items (name, email, id) | One File.csv (text/csv, 42 B) with a BOM; output JSON {} |
CSV, nested address object | Columns address.city, address.zip |
CSV, array tags | Columns tags.0, tags.1 |
| CSV, items with keys a/b, a/c, b/d (v1.1) | Header a,b,c,d, missing cells empty |
| Same on Convert to File v1 | Identical file |
CSV, quote, line break and a;b in values | Quote doubled, line break inside quotes, a;b unquoted |
| CSV, accents and € | UTF-8 with a BOM, accents correct |
CSV, Delimiter ; | name;email;id, BOM still there |
| CSV, Header Row off | No header row, BOM still there |
| CSV, no File Name | File.csv |
CSV, File Name {{ 'export-' + $json.id + '.csv' }} | export-1.csv: first item only |
| CSV, null, true, 0, big number, 0.1, "0042", ISO date, "" | empty, TRUE, 0, 1.23457E+19, 0.1, 0042, date text, empty |
| CSV, 0 input items | No output, next node not run |
| XLSX, 2 items | File.xlsx (16.1 kB), sheet Sheet, numbers as numbers |
| XLSX, "0042", string id, number id, phone, date | Strings kept as text; number id stored as 12345678901234567000 |
XLSX, Sheet Name Report: 2026/10 | Error Sheet name cannot contain : \ / ? * [ ] |
| XLSX, Sheet Name of 44 characters | Error Sheet name cannot exceed 31 chars |
| XLSX, nested object and array | Columns address.city, tags.0, tags.1 |
| JSON, default (All Items to One File) | One file.json with an array of 2 objects |
| JSON, Each Item to Separate File | 2 files, both named file.json |
| JSON, Format on | Pretty-printed array (128 B) |
| Text File, Text Input Field empty | Workflow does not start: Parameter "Text Input Field" is required. |
Text File, field body not on the item | Error The value in "body" is not set |
Text File, object field {a:1} | file.txt containing {"a":1}, MIME type application/json |
| Text File, number 42 | file.txt containing 42 |
Text File, accents and line break, File Name note.txt | Correct UTF-8 note.txt |
| Base64, valid string | Correct content, file named file, no extension, text/plain |
Base64, plain text hello world | Green run, 7 bytes of garbage |
Base64, data URL with data:text/plain;base64, prefix | Green run, 15 garbage bytes before the content (26 B) |
Base64, File Name a.png, MIME Type image/png | a.png, image/png, valid PNG header |
Base64, field body.file | Works (dot path) |
CSV, Put Output File in Field file | File stored under file, not data |
| HTML, 2 items | File.html, SheetJS table |
| ICS, ISO start and end | event.ics, text/calendar, correct DTSTART/DTEND |
ICS, start 24/10/2026 10:00 | Error with an empty message |
| CSV, Compression on | Same plain 42 B CSV |
Text File into a field att, then Convert to CSV | 4-byte CSV (BOM and line break only); att file gone |
| ODS, 2 items | File.ods, 8 kB (content not inspected) |
Quick checklist
- Fields missing after the node? It outputs only the file: build the file last, or merge the fields back.
- One file instead of many, or the wrong file name? All items go into one file and File Name reads the first item.
- First CSV column called
\ufeffnamewhen read back? That is the BOM. - Columns like
address.cityortags.0? Nested data is flattened. - Ids ending in E+19 or 000? Send them as strings.
- XLSX fails on the sheet name? No
: \ / ? * [ ], 31 characters max. - Base64 file corrupt with a green run? Check it is really base64 and strip any
data:prefix. - Next node finds no file? Compare Put Output File in Field with the field it reads.
- ICS error with no message? Use ISO dates.
Good to know
- File sent to a Webhook and the next node finds nothing? The binary key is the form field name (
file,file0), notdata: see n8n Webhook file upload and binary data (25 tested requests). - Zipping the file, or several files into one zip: the Compression node makes one zip per item and drops files with the same name, see n8n Compression node not working (42 real runs).
- Reading the file back, or CSV problems on the way in: n8n Extract From File (CSV) not working. Files that vanish between nodes: n8n binary data not found.
- Sending the file as an attachment: n8n Send Email (SMTP) errors. Writing it to disk: n8n Execute Command and Read/Write Files.
- Shaping the columns before the export: n8n Edit Fields (Set) node and n8n Rename Keys node. Arrays to rows: n8n Split Out, Aggregate and Summarize. Combining the file with the original items: n8n Merge and If node.
- Every error message we reproduced is in the n8n error message index.
What we didn't test
- The editor UI itself (we ran workflows from JSON, so labels may differ slightly), n8n Cloud, opening the files in Excel or LibreOffice, the content of the ODS file, CSV with one file per item, and large files.
- The fixes marked "we did not run": merging the fields back with a Merge node, and stripping a data URL prefix with
split(',')[1].
Start from a working agent
FAQ
Why does n8n Convert to File remove my other fields?
The node outputs only the file: in all our runs the output JSON was {}. Build the file as the last step, or merge the original fields back by position with a Merge node.
Why is my n8n Convert to File CSV empty?
The node received items without fields, usually because an earlier Convert to File already dropped them. In our run the CSV was 4 bytes: a BOM and a line break. With 0 input items no file was made at all.
Why does my n8n CSV start with \ufeff or a strange character?
Convert to File writes a UTF-8 BOM at the start of every CSV. Spreadsheet apps use it to detect UTF-8; when you read the file back in n8n, turn on Exclude Byte Order Mark (BOM) in Extract From File.
Why does n8n Convert to File put all items in one file?
CSV, XLSX, HTML and ODS put all items in one file, and an expression in File Name uses the first item only. For JSON, set Mode to Each Item to Separate File.
Why is my base64 file corrupt after Move Base64 String to File?
The node decodes whatever it gets without checking. Plain text and a data: URL prefix both gave garbage bytes with a green run. Pass pure base64 and set File Name and MIME Type.
What does 'Sheet name cannot contain' mean in n8n?
The XLSX Sheet Name has one of : \ / ? * [ ] or is longer than 31 characters. Use a short name without those characters.
Related guides
- n8n Extract From File (CSV) not working: delimiter, BOM, encoding and errors, 32 runs
- n8n Edit Fields (Set) node not working: dropped fields, type errors and invalid JSON, 29 runs
- n8n Compression node not working: zip, unzip, file_0 and invalid zip data, 42 runs
- n8n HTML Extract not working: empty values, selectors and errors, 32 runs
- n8n Text Classifier not working? 30 tests, every error decoded
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes