Export and import
n8n saves workflows in JSON format. You can export your workflows as JSON files or import JSON files into your n8n library. You can export and import workflows in several ways.
Sharing credentials
Exported workflow JSON files include credential names and IDs. While IDs aren't sensitive, the names could be, depending on how you name your credentials. HTTP Request nodes may contain authentication headers when imported from cURL. Remove or anonymize this information from the JSON file before sharing to protect your credentials.
Copy-Paste
You can copy and paste a workflow or parts of it by selecting the nodes you want to copy to the clipboard (Ctrl + c or cmd +c) and pasting it (Ctrl + v or cmd + v) into the Editor UI.
To select all nodes or a group of nodes, click and drag: 
From the Editor UI menu
From the top navigation bar, select the three dots in the upper right
to see the following options:
Download: Downloads your current workflow as a JSON file to your computer.
Import from URL: Imports workflow JSON from a URL, for example, this workflow JSON file on GitHub.
Import from File: Imports a workflow as a JSON file from your computer.
From the command line
Using the n8n CLI
The n8n-cli package commands bundle workflows into a portable .n8np file you can import into another instance. See n8n packages, and Export a package for the available options. n8n packages are in Preview and may change in future releases.
Using the Server CLI
Export: See the export commands for exporting workflows or credentials.
Import: See the import commands for importing workflows or credentials.
From the n8n API
The n8n API can export and import n8n packages, which carry workflows along with the folders, projects, and references they need. n8n packages are in Preview and may change in future releases.
To move a single workflow as JSON instead, use the workflow endpoints in the n8n API.
Last updated
Was this helpful?