AutomationFlowsGeneral › Save JSON Data to File

Save JSON Data to File

Original n8n title: Write JSON to Disk Binary

Write Json To Disk Binary. Uses writeBinaryFile. Manual trigger; 3 nodes.

Manual trigger★★★★☆ complexity3 nodesWrite Binary File
General Trigger: Manual Nodes: 3 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "Write Binary File",
      "type": "n8n-nodes-base.writeBinaryFile",
      "position": [
        800,
        350
      ],
      "parameters": {
        "fileName": "test.json"
      },
      "typeVersion": 1
    },
    {
      "name": "Make Binary",
      "type": "n8n-nodes-base.function",
      "position": [
        600,
        350
      ],
      "parameters": {
        "functionCode": "items[0].binary = {\n  data: {\n    data: new Buffer(JSON.stringify(items[0].json, null, 2)).toString('base64')\n  }\n};\nreturn items;"
      },
      "typeVersion": 1
    },
    {
      "name": "Create Example Data",
      "type": "n8n-nodes-base.function",
      "position": [
        390,
        350
      ],
      "parameters": {
        "functionCode": "items[0].json = {\n  \"text\": \"asdf\",\n  \"number\": 1\n};\nreturn items;"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Make Binary": {
      "main": [
        [
          {
            "node": "Write Binary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Example Data": {
      "main": [
        [
          {
            "node": "Make Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Write Json To Disk Binary. Uses writeBinaryFile. Manual trigger; 3 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Batch-convert CAD/BIM files to analysis-ready XLSX and optional DAE with automatic verification and a clean HTML report. Runs locally via and PowerShell on Windows.

Execute Command, Write Binary File
General

This n8n workflow automatically transfers files from Google Drive to an FTP server on a scheduled basis. It includes comprehensive logging, email notifications, and error handling. Automated Schedulin

Google Drive, Ftp, Write Binary File +1
General

Collects Images From Web Search Results And Send To Google Sheets. Uses awsRekognition, httpRequest, googleSheets. Manual trigger; 6 nodes.

AWS Rekognition, HTTP Request, Google Sheets
General

Convert Filemaker Data Api To Flat File Array. Uses itemLists, functionItem. Manual trigger; 3 nodes.

Item Lists, Function Item
General

Save Email Attachments To Nextcloud. Uses emailReadImap, nextCloud. Manual trigger; 3 nodes.

Email Read Imap, Next Cloud