{
  "name": "Convert JSON objects to base64 strings with file processing",
  "nodes": [
    {
      "id": "923f05ea-cd34-4116-8c1d-83a51fe0080c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -140
      ],
      "parameters": {
        "width": 480,
        "height": 320,
        "content": "## Create Example JSON data\n"
      }
    },
    {
      "id": "d1a367bc-f372-40ef-ac8a-abc6326a6b8c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -140
      ],
      "parameters": {
        "width": 440,
        "height": 320,
        "content": "## Stringify JSON and Save to Binary\n"
      }
    },
    {
      "id": "960842f1-5017-415f-80b6-4e21d2c0c51d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -140
      ],
      "parameters": {
        "width": 360,
        "height": 320,
        "content": "## Convert Binary Data to Base64 Encoded string\n"
      }
    },
    {
      "id": "f0b298ab-18f7-414a-ae27-76266830029c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -320
      ],
      "parameters": {
        "width": 1320,
        "height": null,
        "content": "## Encode JSON to Base64 String\nThis example workflow demonstrates how to convert a JSON object into a base64-encoded string using n8n’s built-in file processing capabilities. This is a common require"
      }
    },
    {
      "id": "dd1d4e6b-40ee-4d37-97c0-6bc4d1c9d560",
      "name": "Create Json Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -300,
        -20
      ]
    },
    {
      "id": "c25f38bf-72a1-4fe3-89b9-dcf0d1d34e30",
      "name": "Manual Execution",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -520,
        -20
      ]
    },
    {
      "id": "dcf01114-59d8-4c25-8ee3-5405bed263f2",
      "name": "Convert JSON to String",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        -20
      ]
    },
    {
      "id": "17547a53-ec81-4050-96fe-f1f73542ce85",
      "name": "Extract Base64 from Binary",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        460,
        -20
      ]
    },
    {
      "id": "dd01f82c-2abb-48ff-acbe-0584721225b0",
      "name": "Convert String to Binary",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        180,
        -20
      ]
    }
  ],
  "connections": {
    "Create Json Data": {
      "main": [
        [
          {
            "node": "Convert JSON to String",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Execution": {
      "main": [
        [
          {
            "node": "Create Json Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert JSON to String": {
      "main": [
        [
          {
            "node": "Convert String to Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert String to Binary": {
      "main": [
        [
          {
            "node": "Extract Base64 from Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Base64 from Binary": {
      "main": [
        []
      ]
    }
  }
}