--- #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4 contentType: tutorial --- # Exporting and importing workflows In this chapter, you will learn how to export and import workflows. ## Exporting and importing workflows You can save n8n workflows locally as JSON files. This is useful if you want to share your workflow with someone else or import a workflow from someone else. --8<-- "_snippets/workflows/sharing-credentials.md"
Import/Export menu
Import & Export workflows menu
You can export and import workflows in three ways: * From the **Editor UI** menu: * Export: From the top navigation bar, select the three dots in the upper right, then select **Download**. This will download your current workflow as a JSON file on your computer. * Import: From the top navigation bar, select the three dots in the upper right, then select **Import from URL** (to import a published workflow) or **Import from File** (to import a workflow as a JSON file). * From the **Editor UI** canvas: * Export: Select all the nodes on the canvas and use ++ctrl+c++ to copy the workflow JSON. You can paste this into a file or share it directly with other people. * Import: You can paste a copied workflow JSON directly into the canvas with ++ctrl+v++. * From the command line: * Export: See the [full list of commands ](/hosting/cli-commands.md) for exporting workflows or credentials. * Import: See the [full list of commands ](/hosting/cli-commands.md#import-workflows-and-credentials) for importing workflows or credentials.