Excel to JSON - XLSX, XLS & CSV Spreadsheet to JSON Converter
Pricing
from $0.10 / 1,000 row extracteds
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
Maintained by CommunityActor stats
0
Bookmarked
36
Total users
10
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Excel to JSON Converter — XLSX, XLS & CSV to JSON
Excel to JSON converter: convert Excel files (XLSX, XLSM, XLS) and CSV/TSV spreadsheets to JSON from one or up to 100 public URLs, or base64 input. Each sheet becomes JSON rows with sheet names, column headers and typed values (numbers, booleans, ISO dates, computed formulas). CSV delimiter (comma, semicolon, tab, pipe) and encoding (UTF-8, UTF-16, Windows-1252, Shift-JIS and more) are detected automatically. Use it as an Excel parser, XLSX reader or spreadsheet-to-JSON API for ETL, n8n/Make/Zapier workflows and LLM pipelines. 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. Rank and Population are numbers because the Console prefills typedCsv: true; API calls that omit typedCsv get every CSV cell as text ("Rank":"1"), exactly as before.
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, html_response.
CSV: delimiter, encoding and types
- Delimiter.
csvDelimiter: "auto"(default) reads the first 64 KB and picks comma, semicolon, tab or pipe; a file that gives no consistent split falls back to comma for.csvand tab for.tsv. Semicolon files from European Excel no longer come back as one column. Force a separator withcomma,semicolon,taborpipe. - Encoding. A byte-order mark wins (UTF-8, UTF-16, UTF-32); then strict UTF-8; then charset-normalizer for Windows-1252, Windows-1250/1251, Shift-JIS, EUC-KR, GBK and the rest; latin-1 as the last resort so a CSV always parses. Workbook items report the
encodinganddelimiterused. - Types (
typedCsv).12→12,-3.5→-3.5,1e3→1000.0,1234,5→1234.5when the delimiter is a semicolon,true/false→ booleans, blank cells →null. Codes with a leading zero (00123), digit runs longer than 15 characters (IDs, card numbers) and+49...phone numbers stay strings. The header row is never converted. - Dates (
dateFormat). ISO 8601 cells pass through unchanged. Give a strptime pattern such as%d/%m/%Yor%m/%d/%Y %H:%Mand matching cells become2024-03-05or2024-03-05T14:30:00; cells that do not match stay strings.
{"fileUrl":"https://example.com/export.csv","csvDelimiter":"auto","typedCsv":true,"dateFormat":"%d/%m/%Y","outputMode":"rows"}
Excel to CSV: one file per sheet (CSV, XLSX, JSONL, Markdown)
Set exportFormats to get files back as well as dataset rows. Each sheet of each input file is saved in the run's key-value store as <file_stem>__<sheet>.<ext>. A 3-sheet workbook sales.xlsx with ["csv"] gives sales__Jan.csv, sales__Feb.csv and sales__Mar.csv, ready for n8n, Make or a database import.
{"fileUrl":"https://example.com/reports/sales.xlsx","outputMode":"rows","exportFormats":["csv","markdown"]}
| Format | Extension | Use |
|---|---|---|
csv | .csv | Multi-sheet Excel to CSV, one file per sheet, UTF-8 |
jsonl | .jsonl | One JSON object per row (JSON Lines) |
xlsx | .xlsx | A clean one-sheet workbook, e.g. CSV to XLSX |
markdown | .md | LLM-ready Markdown table for prompts and RAG |
One extra dataset item per input file lists what was written:
{"record_type":"files","file_name":"sales.xlsx","success":true,"files":[{"format":"csv","sheet":"Jan","key":"sales__Jan.csv","url":"https://api.apify.com/v2/key-value-stores/<id>/records/sales__Jan.csv","rows":842,"bytes":51200}]}
- Files hold the same rows as the dataset (
maxRowsPerSheetapplies), and they cost nothing extra. csvFormulaSafe(defaulttrue) puts'before CSV text that starts with=,+,-,@, tab or carriage return, so Excel never runs it as a formula. Plain numbers such as-5are kept. XLSX exports always store such text as text.- Markdown cells are HTML-escaped,
|becomes\|and line breaks become<br>. Inworkbookmode each sheet item also carries amarkdownfield (capped at 200 KB, withmarkdown_rowsandmarkdown_truncated). - A file that cannot be written is listed with
"error": "export_failed"andsuccess: falseon the files item; the dataset rows are unaffected. Find all files under Storage → Key-value store in Console, or viaGET /v2/key-value-stores/<id>/keys.
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:
| Event | Price |
|---|---|
| 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.
Runs started through the MCP server (or Apify AI) that do not set outputMode or flatMode: true get rows mode, capped at 1,000 rows per sheet while maxRowsPerSheet stays at its default, so the agent can page and project items. Each sheet starts with one {"_type": "sheet_summary", "sheet", "row_count", "columns", "truncated"} item. The run's status message states files, sheets and rows; a run with no data rows also writes a TIP record that says what to change. API and Console runs are unchanged.
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?
- 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.
- 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.
- Financial report processing — Extract P&L, balance sheet, or budget rows from multi-sheet workbooks. The
sheetNamesfilter lets you target specific tabs without processing the entire file. - 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.
- 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, androwsfields.
How to use
- Open the actor on Apify Store and click Try for free.
- Paste a direct URL to your
.xlsxor.csvfile infileUrl, add more infileUrls(up to 100), or providefileBase64for a local file. - Set
sheetNamesto target specific tabs by name or 0-based index, or leave empty to extract all sheets. - Choose
outputMode:rows(one record per row) orworkbook(one record per sheet with arowsarray). - Click Start.
Input options
| Field | Type | Default | Description |
|---|---|---|---|
fileUrl | string | — | Direct URL to an .xlsx, .xlsm, .xls, .csv or .tsv file |
fileUrls | string[] | — | Up to 100 file URLs, processed one by one (combined with fileUrl) |
fileBase64 | string | — | Base64-encoded file content (alternative to URL) |
fileName | string | auto | File name for format detection (single file only) |
includeHeaders | boolean | true | Treat first row as column headers |
csvDelimiter | auto | comma | semicolon | tab | pipe | auto | CSV/TSV separator; auto sniffs the first 64 KB |
typedCsv | boolean | true in Console | Numbers, booleans, null blanks and dateFormat dates from CSV cells; API calls without it keep text cells |
dateFormat | string | — | strptime pattern for CSV date cells (%d/%m/%Y); matching cells become ISO 8601 |
sheetNames | string[] | [] (all) | Sheets by name or 0-based index, e.g. ["Summary", "2"]; an exact name wins |
maxRowsPerSheet | integer | 10000 | Row cap per sheet (up to 500,000) |
maxFileSizeMb | integer | 50 | Skip larger files before parsing (error item, not charged) |
outputMode | rows | workbook | rows in Console | rows: one record per row; workbook: one record per sheet |
exportFormats | string[] | [] | Also save each sheet as a file: csv, jsonl, xlsx, markdown |
csvFormulaSafe | boolean | true | Prefix ' on formula-like CSV text |
flatMode | boolean | false | Legacy: 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}
CSV and TSV workbook items also carry "encoding": "cp1252" and "delimiter": ";" (whatever was detected or forced).
Excel dates come out as ISO 8601 strings and numbers stay numbers. CSV cells are typed when typedCsv is on (prefilled in the Console) and stay text when an API call omits it. 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
| Format | Extension | Notes |
|---|---|---|
| Excel (modern) | .xlsx, .xlsm | Multi-sheet, formulas evaluated |
| Excel (legacy) | .xls | Via xlrd |
| CSV / TSV | .csv, .tsv | Auto-detects delimiter (, ; tab ` |
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.
My semicolon-separated CSV came back as one column / with é instead of é.
Version 0.6 detects the delimiter and the encoding automatically. If a file is still read wrong, set csvDelimiter explicitly; the encoding field on workbook items shows what was assumed.
Why is 00123 a string but 80202 a number?
With typedCsv, codes that keep a leading zero (ZIP codes, product codes) stay strings so the zero is not lost; digit runs longer than 15 characters stay strings too, because JavaScript consumers lose precision past 2^53.
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.
Related actors
- PDF Text Extractor — Extract text from PDF files (same document-to-JSON workflow)
- Web to Markdown — Convert web pages to clean text for AI pipelines
- RSS Feed Parser — Parse RSS/Atom feeds into JSON
Feedback
If this actor unlocks your spreadsheet data, a review helps others find it: Leave a review on Apify Store
Keywords: Excel to JSON, Excel to CSV, multi-sheet Excel to CSV, Excel to Markdown, 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