🔧 n8n Tools

n8n Workflow JSON Fixer

Paste your broken n8n workflow JSON and auto-repair it in one click. Fixes missing fields, broken connections, duplicate nodes, invalid structure — then download the fixed workflow ready to import into n8n.

Auto-fix missing fields
Repair broken connections
Fix duplicate node names
Generate missing UUIDs
Fix log with details
Download fixed JSON
⚙️ Auto-Fix Options — Select what to fix automatically
🔤 Fix JSON syntax (trailing commas)
📋 Add missing required fields
🆔 Generate missing node IDs
📐 Fix missing node positions
🔢 Add missing typeVersion (→1)
♻️ Rename duplicate node names
🔗 Remove broken connections
✨ Pretty-print output JSON
0 chars
📥 Broken Workflow JSON
0 chars
✅ Fixed Workflow JSON

n8n Workflow JSON Fixer — Auto-Repair Broken Workflows in One Click

When an n8n workflow JSON is broken, you're stuck. The workflow won't import, nodes disappear, connections break, or n8n throws cryptic errors with no clear solution. Manually hunting through hundreds of lines of JSON to find a missing comma or a stale connection reference is time-consuming and error-prone.

This free n8n workflow fixer automatically scans your JSON, applies a series of targeted repairs — from fixing JSON syntax errors and adding missing required fields to generating UUID node IDs, assigning grid positions, renaming duplicate nodes, and removing broken connections — and outputs a clean, importable workflow JSON with a detailed log of every change made. Download the fixed file and import it into n8n immediately.

🔤

JSON Syntax Repairs

The most common cause of an n8n workflow failing to import is a JSON syntax error introduced by manual editing. This tool fixes:

  • Trailing commas,] and ,} patterns that are invalid in JSON but common in JavaScript
  • Missing quotes around property names detected by pattern analysis
  • Single quotes converted to double quotes where detectable
  • Extra whitespace and formatting normalized to clean, valid JSON
  • Note: severely corrupted JSON (missing brackets, scrambled structure) may require manual correction before the fixer can process it
🆔

Node Structure Repairs

Each n8n node must have specific required fields. This fixer auto-repairs nodes with missing structure:

  • Missing id — generates a valid UUID v4 for each node without one
  • Missing typeVersion — defaults to 1 to ensure compatibility
  • Missing position — assigns sequential grid positions [240 + i*220, 300]
  • Missing parameters — adds an empty {} object to prevent null errors
  • Missing name — generates a default name from the node type
🔗

Connection & Duplicate Repairs

Broken connections and duplicate node names are the two most common structural errors in shared n8n workflows:

  • Broken connections — removes any connection entry whose source or target node name doesn't exist in the nodes array
  • Duplicate node names — auto-renames duplicates by appending _2, _3 etc. and updates connection references accordingly
  • Empty connection arrays — cleans up empty [[]] patterns that cause routing errors
  • Missing connections object — creates an empty {} connections object if absent
📋

Top-Level Field Repairs

n8n requires specific top-level fields in every workflow JSON. This fixer adds any that are missing:

  • name — defaults to "Fixed Workflow"
  • nodes — adds empty array [] if absent
  • connections — adds empty object {} if absent
  • active — defaults to false (safe default)
  • settings — adds {"executionOrder":"v1"}
  • tags — adds empty array []

Frequently Asked Questions — n8n Workflow JSON Fixer

Will fixing the JSON change how my workflow behaves? +
The fixer only makes structural repairs — it does not change your node parameters, logic, credentials, or business rules. It adds missing metadata fields with safe defaults (like typeVersion: 1, empty parameters: {}), assigns positions for visual rendering, and removes connections that were already broken (pointing to non-existent nodes). Your actual workflow logic — what each node does, what data it processes, what APIs it calls — remains completely untouched. Always review the fix log to understand exactly what was changed.
My n8n workflow JSON has a syntax error but I can't find it. How do I fix it? +
The most reliable approach is: (1) paste the broken JSON into this fixer — it will attempt to fix common syntax errors like trailing commas and normalize the structure. (2) If the JSON is too malformed to auto-fix, open it in VS Code — it will underline the exact character causing the parse error. (3) Common culprits are trailing commas before ] or }, unescaped special characters inside string values (especially in Code nodes where the JavaScript code contains quotes), and copy-paste errors that cut off part of the JSON. Once you can parse the JSON, the fixer can handle the rest.
Can I fix an n8n workflow that was exported from a different version? +
Yes, in most cases. The structural format of n8n workflow JSON has been relatively stable across versions. The main compatibility issue between versions is the typeVersion field — newer n8n versions may use higher typeVersions for certain nodes (e.g. HTTP Request node v4 vs v1). The fixer defaults missing typeVersions to 1, which will import successfully but may use an older node interface. If a node behaves unexpectedly after import, check whether a newer typeVersion is available for that node type in your n8n instance.
Is my workflow data safe when using this tool? +
Yes — completely. This tool runs entirely in your browser using JavaScript. Your workflow JSON is never uploaded to any server, logged, stored, or transmitted anywhere. The entire fix process happens locally on your device. This means your API keys in credential references, webhook URLs, business logic in Code nodes, and any other sensitive workflow data stays on your machine. You can use this tool offline if you've already loaded the page.