Excel to JSON - XLSX, XLS & CSV Spreadsheet to JSON Converter avatar

Excel to JSON - XLSX, XLS & CSV Spreadsheet to JSON Converter

Pricing

from $0.10 / 1,000 row extracteds

Go to Apify Store
Excel to JSON - XLSX, XLS & CSV Spreadsheet to JSON Converter

Excel to JSON - XLSX, XLS & CSV Spreadsheet to JSON Converter

Read Excel file data from a public URL or base64 content and convert Excel to JSON. Convert CSV to JSON too; extract XLSX sheet names, column headers and rows for ETL.

Pricing

from $0.10 / 1,000 row extracteds

Rating

0.0

(0)

Developer

Hojun Lee

Hojun Lee

Maintained by Community

Actor stats

0

Bookmarked

36

Total users

11

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Excel to JSON — CSV to JSON, XLSX File Reader

Read Excel file data from one or up to 100 public URLs (or base64 input) and convert XLSX, XLS, or CSV to JSON, including sheet names, headers, and rows. Failed files are reported and never charged.

Quick start

Read one row from a small, public CSV file:

{"fileUrl":"https://raw.githubusercontent.com/plotly/datasets/master/2014_usa_states.csv","maxRowsPerSheet":1,"outputMode":"rows"}

One dataset item from this input:

{"file_url":"https://raw.githubusercontent.com/plotly/datasets/master/2014_usa_states.csv","file_name":"2014_usa_states.csv","sheet":"Sheet1","row_number":2,"success":true,"Rank":"1","State":"Alabama","Postal":"AL","Population":"4849377.0"}

file_url and file_name name the source file; sheet is the worksheet name or Sheet1 for CSV; row_number is the spreadsheet row (row 1 is the header). The remaining keys are the columns. success is false on an error item.

Call it from your code

Run the Actor and get the dataset rows in one HTTP call:

curl -X POST "https://api.apify.com/v2/acts/gochujang~excel-extractor/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"fileUrl":"https://raw.githubusercontent.com/plotly/datasets/master/2014_usa_states.csv"}'

Scheduled job stopped returning data after 11 November 2026? Apify rotated account API tokens platform-wide that week. Calls with the old token are rejected with 401 before a run starts, so nothing shows up as a failed run. Create a new token in Apify Console → Settings → API & Integrations and update it in your script, n8n, Make or Zapier credential. Existing inputs and output field names are unchanged by recent releases.

Bulk: many files in one run

Pass up to 100 URLs in fileUrls. Each file is downloaded and parsed on its own; a file that fails returns one error item and is not charged, and the other files carry on.

{
"fileUrls": [
"https://raw.githubusercontent.com/plotly/datasets/master/2014_usa_states.csv",
"https://example.com/reports/q1-sales.xlsx",
"https://example.com/legacy/inventory.xls"
],
"sheetNames": ["0", "Summary"],
"maxFileSizeMb": 50,
"outputMode": "rows"
}

A file that could not be read:

{"success":false,"status":"error","error":"http_404","error_reason":"http_404","file_url":"https://example.com/reports/q1-sales.xlsx","file_name":"q1-sales.xlsx"}

Error codes: http_<status>, download_timeout, download_failed, file_too_large, password_protected, parse_error, invalid_base64.

Troubleshooting: "File is not a zip file" or no rows

fileUrl must be a direct download link: opening it must download the file, not show a web page. Links that open a viewer or a login page return HTML, so the run returns an error item instead of rows. Google Drive and Dropbox share links are converted automatically. For OneDrive, SharePoint or a site behind a login, download the file and pass it as fileBase64 with fileName.

Limits

File URLs must be publicly downloadable; up to 100 per run (fileUrl and fileUrls combined). Files larger than maxFileSizeMb (default 50) are skipped before parsing. Password-protected workbooks cannot be opened. Unknown or malformed formats return an error item. maxRowsPerSheet bounds extraction, and sheetNames selects Excel sheets only.

Pricing

Pay-per-event:

EventPrice
Actor start (charged by Apify, one per GB of run memory)$0.001
Data row extracted$0.0001

There is no per-file fee, and files that fail are free. Example: a 5,000-row sales report = 5,000 × $0.0001 + start = $0.501.

Per-row vs per-workbook pricing. At $0.0001 per row you pay for the data you get. Against a $0.03-per-workbook price, per-row is cheaper for any workbook under about 290 rows in a single-file run; in a bulk run the $0.001 start is charged once per run, not per file, so the break-even approaches 300 rows per file. Ten 100-row files cost 10 × 100 × $0.0001 + $0.001 = $0.101 here versus $0.30 per-workbook.

Use from AI agents (MCP)

Connect your agent to Apify's official MCP server with an Apify token. Select the Actor tool gochujang/excel-extractor, pass the Quick start JSON as input, then retrieve its dataset items through the MCP server. No separate gateway is needed.


Excel & CSV Extractor converts .xlsx, .xlsm, .xls, .csv and .tsv files into structured JSON — one record per row or one record per sheet. Pass one URL, up to 100 URLs, or a base64-encoded file to get sheet names, headers, and row data.

Spreadsheet data is locked in binary formats that no API can read directly. This actor is the extraction layer that unlocks it — turning Excel reports, exported CSVs, and supplier data files into JSON that any system can consume.


Why use Excel & CSV Extractor?

  1. AI data ingestion — Feed spreadsheet data directly into Claude, GPT, or RAG pipelines. JSON output from this actor is ready for vector embedding, tabular Q&A, or structured analysis without manual conversion.
  2. ETL pipeline automation — Transform Excel reports and CSV exports into database-ready records. Trigger on new file uploads, extract the data, push to your API — fully automated with no manual steps.
  3. Financial report processing — Extract P&L, balance sheet, or budget rows from multi-sheet workbooks. The sheetNames filter lets you target specific tabs without processing the entire file.
  4. Supplier data import — Parse product catalogs, inventory sheets, and price lists from supplier Excel files and sync them to your e-commerce or ERP system in real time.
  5. Multi-sheet workbook handling — Extract all tabs from complex workbooks in one run. Each sheet becomes a separate output record with its own sheet, row_count, columns, and rows fields.

How to use

  1. Open the actor on Apify Store and click Try for free.
  2. Paste a direct URL to your .xlsx or .csv file in fileUrl, add more in fileUrls (up to 100), or provide fileBase64 for a local file.
  3. Set sheetNames to target specific tabs by name or 0-based index, or leave empty to extract all sheets.
  4. Choose outputMode: rows (one record per row) or workbook (one record per sheet with a rows array).
  5. Click Start.

Input options

FieldTypeDefaultDescription
fileUrlstring—Direct URL to an .xlsx, .xlsm, .xls, .csv or .tsv file
fileUrlsstring[]—Up to 100 file URLs, processed one by one (combined with fileUrl)
fileBase64string—Base64-encoded file content (alternative to URL)
fileNamestringautoFile name for format detection (single file only)
includeHeadersbooleantrueTreat first row as column headers
sheetNamesstring[][] (all)Sheets by name or 0-based index, e.g. ["Summary", "2"]; an exact name wins
maxRowsPerSheetinteger10000Row cap per sheet (up to 500,000)
maxFileSizeMbinteger50Skip larger files before parsing (error item, not charged)
outputModerows | workbookrows in Consolerows: one record per row; workbook: one record per sheet
flatModebooleanfalseLegacy: used only when outputMode is not set (API calls without outputMode keep the per-sheet shape)

Output

Rows mode (outputMode: "rows"):

{
"file_url": "https://example.com/sales-report.xlsx",
"file_name": "sales-report.xlsx",
"sheet": "Q1 Sales",
"row_number": 2,
"success": true,
"Date": "2026-01-03T00:00:00",
"Product": "Widget A",
"Region": "US",
"Revenue": 12400,
"Units": 124
}

Workbook mode (outputMode: "workbook"):

{
"file_url": "https://example.com/sales-report.xlsx",
"file_name": "sales-report.xlsx",
"sheet": "Q1 Sales",
"sheet_index": 0,
"row_count": 842,
"first_row_number": 2,
"columns": ["Date", "Product", "Region", "Revenue", "Units"],
"rows": [
{"Date": "2026-01-03T00:00:00", "Product": "Widget A", "Region": "US", "Revenue": 12400, "Units": 124},
{"Date": "2026-01-04T00:00:00", "Product": "Widget B", "Region": "EU", "Revenue": 8900, "Units": 89}
],
"success": true,
"status": "success",
"error_reason": null
}

Excel dates come out as ISO 8601 strings and numbers stay numbers (CSV cells are text, as in the file). Empty trailing rows and columns are dropped. A column whose header matches a metadata key (for example sheet) is renamed sheet_value (sheet_value_2 if that name is also a column); blank headers become col_<i> and repeated headers name_2, so no cell is dropped.


Supported formats

FormatExtensionNotes
Excel (modern).xlsx, .xlsmMulti-sheet, formulas evaluated
Excel (legacy).xlsVia xlrd
CSV / TSV.csv, .tsvAuto-detects encoding (UTF-8, Latin-1)

Legacy .xls: Supported through the xlrd parser. Password-protected workbooks remain unsupported.


FAQ

Can it handle password-protected files? No — password-protected files cannot be opened without the password, and the actor has no mechanism for it. Remove password protection before uploading.

What happens with formula cells? Formulas are evaluated to their current values. The raw formula string is not included in output — you get the calculated result.

Is there a file size limit? maxFileSizeMb (default 50, up to 500) skips larger files before parsing; a skipped file returns an error item and costs nothing. Use maxRowsPerSheet to cap output if you only need a sample.

What if one file in a bulk run fails? It returns one item with success: false, the error code and its file_url. It is not charged, and the rest of the files are still processed.

Can it process files from Google Drive or Dropbox? Yes — supported Google Drive, Google Sheets, and Dropbox sharing URLs are resolved to direct downloads. The file must be publicly accessible.


Run it on a schedule / from your pipeline

1. Apify Schedule. Apify Console → Schedules → + New schedule, pick Excel & CSV Extractor, set a cron such as 0 6 * * 1-5 (weekdays 06:00 UTC) and paste this input. To read several files in one run, list them in fileUrls (up to 100):

{
"fileUrl": "https://example.com/exports/daily-sales.xlsx",
"includeHeaders": true,
"outputMode": "rows"
}

2. API call from your pipeline. Run the actor and get the dataset items back in a single request:

curl -X POST "https://api.apify.com/v2/acts/gochujang~excel-extractor/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d @input.json

input.json holds the same JSON as above. Synchronous runs wait up to 300 seconds; for bigger batches call POST /v2/acts/gochujang~excel-extractor/runs and read the dataset when the run finishes.

3. Webhooks. For new-file triggers, have your storage or automation tool (S3 event, Zapier, Make, n8n) call the API above whenever a file arrives, and add an Apify webhook on ACTOR.RUN.SUCCEEDED (Actor → Integrations) to push the results to your system as soon as the run finishes.


Feedback

If this actor unlocks your spreadsheet data, a review helps others find it: Leave a review on Apify Store


Keywords: Excel to JSON, bulk Excel to JSON, XLSX parser, spreadsheet extractor, Excel scraper, XLSX to JSON, Excel data extraction, spreadsheet automation, ETL pipeline, Excel automation, XLS parser, Excel API, spreadsheet data, document parser