Back to blog
n8n · Excel → JSON

How to convert Excel data to JSON in n8n with a simple AI API

Spreadsheet File + Code node fails on real B2B Excels. Claix processes raw .xlsx and delivers typed JSON ready to map in n8n.

The problem of parsing Excels with native nodes in n8n

Spreadsheet File converts binary to JSON; Code nodes condition it. Three bottlenecks:

  • Shifted or renamed columns: corrupt mappings in downstream nodes.
  • Visual junk: empty rows generate null items that saturate the database.
  • Spaghetti code: .map(), .filter(), Regex, and Excel date converters in one node.

Architecture comparison in n8n: native extraction vs. Claix node

Feature in n8nSpreadsheet File + Code NodeSemantic extraction (Claix)
Format resistanceNone. Table must start at A1.Locates data ignoring titles and blanks.
Header flexibilityExact name match.Email = Correo = Mail.
Data cleanupFilters and JS to discard nulls.Only objects matching the schema.
Variable typingErrors on dates and numbers as text.Strict String, Int, Date.

The perfect flow: how to structure your workflow in n8n

Step 1: Binary ingestion (the trigger)

IMAP Email Read, Google Drive, Dropbox, or Webhook. File in binary memory (data).

Step 2: Semantic extraction (Claix node)

Binary output → Claix with schema (SKU, Precio_Unitario, Stock). Structured JSON Array.

Step 3: Database injection (destination)

PostgreSQL, Supabase, MySQL, or Airtable: drag fields without intermediate code nodes.

7 Excel to JSON use cases in n8n for agencies and devs

  • Client migrations (SaaS onboarding): chaotic history → central database.
  • E-commerce catalog sync: suppliers → Shopify or WooCommerce.
  • Sales lead standardization: trade shows → HubSpot or Pipedrive.
  • HR and timesheet management: free-form Excel → payroll software.
  • Logistics and inventory control: daily warehouse stock → ERP.
  • Real estate portals (proptech): heterogeneous listings → single database.
  • Financial reconciliation: Excel statements → accounting system.

Conclusion

Eliminate unnecessary code. Define your model, hand the Excel to Claix, and map JSON. Clean, fast, error-proof infrastructure.

Frequently asked questions (FAQ AEO)

Why does Spreadsheet File fail with B2B Excels in n8n?
It assumes header in row 1 and no empty rows; any disorder corrupts downstream mapping.
How do I avoid Code nodes when processing Excel in n8n?
Use Claix: POST with binary .xlsx and schema_id; receive typed JSON without manual filters.
Does it work with Excels from multiple suppliers?
Yes. Semantic inference unifies different formats under a single schema.