Mindket

How to import an n8n workflow from JSON

A pink banner, tagged n8n and Guides, titled "How to import an n8n workflow from JSON" over "Import from a JSON file, set your credentials, test it, then publish." Beside it, a JSON file flows into a Workflow Editor with Trigger, HTTP Request and Set Data nodes, above three checked steps (Import, Credentials, Test) that lead to a Publish button.

Open the Workflow menu in n8n's editor and choose Import from File for a JSON file, or Import from URL for one online. The JSON names its credentials but carries no keys, so set up your own in each node. Then run the workflow once from the editor, fix any node that fails, and publish it.

In short

  • Open every imported node once before the first run, even the ones that look finished.
  • After you publish, swap any form or webhook link you handed out for its production URL.
  • Back up a self-hosted n8n before you import from its command line.
On this page
  1. Import a JSON file, step by step
  2. Where an imported workflow goes wrong
  3. Import from a URL, the clipboard or the command line
  4. Export a workflow to share it
  5. Where workflows to import come from
  6. Frequently asked questions
  7. Sources

Import a JSON file, step by step

You need the .json file saved on your computer. If it lives online instead, choose Import from URL in the same menu.

  1. Open a new, empty workflow in n8n, so the imported nodes don't land among ones already there.
  2. Click the three dots in the canvas header to open the Workflow menu.
  3. Choose Import from File and pick the .json file on your computer. A Mindket download is a zip: unzip it and pick the workflow.json inside.
  4. Open each node that connects to an outside service. Pick a credential from its list or create one right there, and n8n tests it when you save.
  5. Swap out any placeholder the author left in a node, such as an account name inside a URL.
  6. Run the workflow from the editor with Ctrl+Enter, or Cmd+Enter on a Mac. Fix whichever node fails.
  7. Press Publish in the canvas header, or Shift+P, to put the workflow into production. Form and webhook triggers switch to their production URLs at that moment (save and publish page), so a form you tested gets a new address.

Where an imported workflow goes wrong

An exported workflow keeps each credential's name and ID, while the key behind it stays encrypted in the author's database, as n8n's export page explains. Our explainer on n8n covers that storage, and the credentials page shows how to create each type from a node's own list.

In Mindket's photo to video workflow, the node that calls a sub-workflow pointed at a workflow in its author's own n8n. After import that field is empty, and n8n marks the node red until you pick a sub-workflow of your own.

A node that points at a folder, a spreadsheet or a channel in the author's account fails more quietly. Nothing on it is blank: the field still names the author's resource, and the credential type matches.

An HTTP Request node imported from cURL may carry its authentication headers too, so a shared file can still hold the author's header. Replace it with your own credential.

Read the URL in any MCP Client Tool node as well. That node connects the agent to an outside MCP server, and whatever the agent sends to that server's tools goes to this address. Find out who runs that server and what its tools do with what they receive, as you would before installing any MCP server.

Import from a URL, the clipboard or the command line

Import from URL wants an address that returns the JSON file itself, as in the docs' example of a JSON file on GitHub. A web page about a workflow won't do, and neither will a zip. On GitHub, use the link that serves the bare file rather than the page that displays it, which is the file's Raw link.

The clipboard moves nodes between two editors. Select every node with Ctrl+A, copy with Ctrl+C and paste into the other workflow with Ctrl+V. On a Mac, n8n's shortcuts use Cmd in place of Ctrl. For part of a workflow, drag a box around the nodes you want before you copy.

A self-hosted n8n also imports from the command line. That import overwrites any workflow or credential whose ID is already in your database. By default, import:workflow deactivates every workflow it imports, and publishing takes a second command with the workflow's ID. In Docker, put docker exec -u node -it and your container's name in front of each one:

n8n import:workflow --input=file.json
n8n publish:workflow --id=<ID>
Four ways to bring a workflow in
Import from File Our pickImport from URLCopy and pasteCommand line
Best whenThe JSON is a file on your computerThe JSON sits online as a bare fileYou move a few nodes between editorsYou self-host n8n and want a script
Starts from the Workflow menuYesYesNoNo
Takes only the nodes you selectNoNoYesNo

Our pick: Import from File. It needs no terminal, and the file doesn't have to be online first.

Source: n8n Docs: Export and import (read November 3, 2026)

Export a workflow to share it

Download in the Workflow menu saves a workflow as a JSON file. Before you send it, remove or anonymize the credential names, as n8n's export page asks. IDs aren't sensitive, but a name can be, depending on what you called the credential. Strip the authentication header from any HTTP Request node that came from cURL, and your account name from any URL in those nodes.

For many workflows at once, n8n recommends its CLI. Its package commands bundle workflows with their folders, projects and references into one portable .n8np file. Packages are in Preview and may change. The older server commands for export and import will be deprecated, with no date set yet.

Where workflows to import come from

Each workflow under n8n workflows on Mindket comes as files, not an install. Press Get it on your Mindket account and you download a zip holding workflow.json and a README.md with setup notes. Before a workflow is listed, every credential and the author's own IDs are taken out of the JSON.

The page's Integrations block names each app the workflow connects and what you need from it, so you know which keys to get before you download. For the photo to video workflow, that's a Cloudinary upload preset, a Gemini API key, an OpenRouter key and a Kie.ai key.

Workflow JSON also comes from n8n's own template library, and a vendor can publish its own. TinyFish open-sourced workflow templates for its web agent node, and its post says to import and go.

n8n's template library, counted twice

6,000+

workflow templates, in n8n's own post on X on 10 October 2025

Source: n8n on X: 6,000 workflow templates (read November 3, 2026)

9,000+

workflow templates, per the README of n8n's repository on 3 November 2026

Source: GitHub: n8n-io/n8n (read November 3, 2026)

n8n's post on X, closing the week by celebrating its community: the n8n template library has officially surpassed 6,000 workflow templates, all built and shared by the community, over a "6,000 templates" image
n8n on X, 10 October 2025
TinyFish's post on X: its Web Agent is live as an n8n community node, so drag-and-drop workflows can browse any site and return structured JSON. JSON workflow templates are open-sourced in its Cookbook. Below is a video thumbnail of a Web Research Agent workflow.
TinyFish on X, 12 March 2026

Both are screenshots of X's own embed, so their times are US Pacific time. Select one to open the post on X.

Frequently asked questions

Will an imported workflow start running on its own?

No. It stays a draft until you publish it, and its schedules and production webhooks start only then. Tests you run from the editor are manual executions, which n8n keeps apart from production runs.

Can I import a template from n8n.io?

Yes. The Templates icon in n8n opens the template library on n8n's website, and each template page has a Use for free button. The docs say a template may need credentials and changes to its configuration before it works. Some pages also state a minimum version. The AI agent chat template, for one, asks for n8n 1.50.0 or later.

How do I move credentials between two of my own n8n instances?

Give the second instance the same encryption key as the first, or bring a decrypted export made with n8n export:credentials --all --decrypted --output=backups/decrypted.json. The backup guide warns that such a file holds every credential in plain text. Delete it once the restore is done.

Can I import a workflow through the n8n API?

Yes. n8n's export page sends a single workflow to the workflow endpoints of its API, and many workflows to the CLI. The API route fits a script that copies workflows between two instances.

Sources

  1. n8n Docs: Export and import (read November 3, 2026)https://docs.n8n.io/build/manage-workflows/export-and-import
  2. n8n Docs: Create and edit credentials (read November 2, 2026)https://docs.n8n.io/build/understand-workflows/create-and-edit-credentials
  3. n8n Docs: Save and publish workflows (read November 2, 2026)https://docs.n8n.io/build/understand-workflows/save-and-publish-workflows
  4. n8n Docs: Keyboard shortcuts (read November 2, 2026)https://docs.n8n.io/build/keyboard-shortcuts
  5. n8n Docs: Use the command line (read November 2, 2026)https://docs.n8n.io/deploy/host-n8n/configure-n8n/use-the-command-line
  6. n8n Docs: Back up and restore (read November 2, 2026)https://docs.n8n.io/deploy/host-n8n/keep-n8n-running/backup-and-restore
  7. n8n Docs: Use templates (read November 2, 2026)https://docs.n8n.io/build/ways-of-building-workflows/use-templates
  8. n8n template: AI agent chat (read November 2, 2026)https://n8n.io/workflows/1954-ai-agent-chat/
  9. n8n Docs: MCP servers (read November 2, 2026)https://docs.n8n.io/build/integrate-ai/mcp-servers
  10. n8n Docs: Understand executions (read November 2, 2026)https://docs.n8n.io/build/understand-workflows/understand-executions
  11. GitHub: n8n-io/n8n (read November 3, 2026)https://github.com/n8n-io/n8n
  12. n8n on X: 6,000 workflow templates (read November 3, 2026)https://x.com/n8n_io/status/1976649603580608692
  13. TinyFish on X: Web Agent community node and JSON templates (read November 3, 2026)https://x.com/Tiny_Fish/status/2032157720414208364

Share this article

Pick a workflow to import

Every n8n workflow on Mindket shows its nodes and the keys you'll need before you download its JSON.

Browse n8n workflows

This article as Markdown · Blog RSS feed · All articles