Why you should sanitize workflows before sharing
Automation platforms make it easy to export a workflow as a single JSON file. That convenience is also a risk. An exported n8n workflow or Make.com blueprint is not just a diagram of your logic. It can contain the live endpoints, identifiers and sometimes the literal secrets that make the automation run. People paste these files into community forums, Discord servers, GitHub issues, Stack Overflow questions and AI chat tools every day, usually without reading the whole file first.
A leaked API key can be abused within minutes. Automated scanners watch public code hosts and forums for strings that look like OpenAI keys, Stripe secrets, Slack tokens and cloud credentials. A leaked webhook URL is just as dangerous: anyone who knows it can trigger your workflow, send fake data into your CRM or burn through your task quota. This tool removes those values locally so that the structure of your workflow stays readable while the sensitive parts are replaced with clear placeholders.
What this sanitizer removes
The sanitizer walks the entire JSON tree and applies several independent checks. You can switch each category on or off with the checkboxes above the editor.
- Credential references. n8n nodes store a
credentialsobject that points to saved credentials by internal ID and display name. The tool replaces the ID with a neutral placeholder and renames the credential so account names or email addresses do not leak. - Webhook URLs and IDs. Make.com hook URLs, n8n production and test webhook paths, Zapier catch hooks, Slack incoming webhooks and Discord webhooks are replaced with a placeholder. Node-level
webhookIdvalues and Make.comhookand__IMTHOOK__numbers are cleared too. - API keys and tokens. Pattern matching finds common secret formats such as OpenAI style
sk-keys, Stripe live and test keys, Slackxoxtokens, GitHub tokens, Google API keys, AWS access key IDs, JSON Web Tokens, Bearer headers and passwords embedded in URLs. - Secret-named fields. Any string value stored under a key such as
apiKey,password,clientSecret,tokenorauthorizationis redacted, including the name and value pairs used for HTTP Request headers and query parameters. - Pinned sample data. n8n can keep real execution data in a
pinDatablock. It is easy to forget and often contains customer records, so it is removed by default. - Email addresses (optional). Turn this on if your workflow contains real addresses in node parameters.
Expressions that only reference a secret, such as {{ $env.OPENAI_KEY }} or n8n credentials selected through the credential picker, are left alone because they do not contain the secret itself. Keeping them means the person helping you still sees how the workflow is wired.
How to use the tool, step by step
- In n8n, open the workflow, select all nodes with
Ctrl+A, copy them withCtrl+Cand paste into the left box. You can also use Download from the workflow menu and paste the file contents. In Make.com open the scenario, click the three dots at the bottom and choose Export Blueprint. - Leave all default checkboxes on unless you have a reason to keep a category.
- Press Sanitize. The cleaned JSON appears on the right and a summary shows how many values were replaced in each category. The summary lists the location of each change, never the secret value.
- Read the output once before sharing it. Search for your company name, client names and internal domain names. Pattern matching cannot know which business details are private to you.
- Copy the result or download it as a
.jsonfile. Import it back into n8n or Make.com to confirm it still loads. You will need to reconnect credentials, which is expected.
If you want to see the behaviour first, press Load Sample Data. It inserts a small invented workflow that contains fake keys, a fake Make.com webhook and fake credential IDs, so you can watch each category being removed without risking anything real.
Is it really private?
Yes. The page is static HTML and JavaScript. When you press Sanitize, your text is processed by code running inside your own browser tab. There is no upload, no API call and no server-side logging, which you can verify in your browser's network tab while using the tool. Our privacy policy describes the same guarantee. Because everything is local, the tool also works offline once the page has loaded.
Limits you should know about
Sanitizing is a safety net, not a guarantee. Pattern matching finds well-known secret formats and values stored under obvious field names. A custom internal token with an unusual shape, stored under an innocent field name such as x, may not be recognised. Free-text fields such as a chat prompt or a Code node can contain anything, including pasted credentials. Always scan the output, and if you ever shared a real secret by mistake, revoke and rotate it immediately instead of hoping nobody noticed.
Good habits for sharing automations safely
- Keep secrets in the platform's credential store or in environment variables instead of typing them into node parameters.
- Use separate test credentials with minimal permissions when you build a workflow you plan to ask about in public.
- Rotate keys regularly and set spending limits on AI and payment providers.
- Add authentication to webhook nodes so a leaked URL alone is not enough to trigger the workflow.
- Self-hosting n8n gives you full control over where workflow data lives. Our guide on setting up n8n for free shows how to get started.
Looking for workflows you do not have to build or debug yourself? Our ready-made automation templates are tested, documented and designed so that all secrets stay in your own credential store.