Data Format Converter — CSV, JSON, JSONL & Excel (XLSX)
Convert files by URL between CSV, JSON, JSONL and Excel XLSX in bulk. Auto-detects the CSV delimiter (comma, semicolon, tab, pipe) and encoding, flattens nested JSON into columns, keeps leading zeros. Download link for each converted file. Pay per file.
Run it on Apify →Convert data files between CSV, JSON, JSONL (NDJSON) and Excel XLSX in bulk, straight from their URLs. Each converted file gets a download link. No upload form, no file-size games, works from the API, Make, Zapier or n8n.
What it handles for you:
- CSV delimiter detection: comma, semicolon (European Excel exports), tab, pipe — quotes respected.
- Encoding: UTF-8 (with or without BOM) and old Windows-1252 exports; output CSV is UTF-8 with BOM so Excel shows accents correctly.
- Nested JSON → columns:
{"address": {"city": "Paris"}}becomes anaddress.citycolumn; arrays are kept as JSON text. - API responses: a JSON object wrapping one array (
{"data": [...]},{"items": [...]}) is unwrapped automatically. - Careful typing: CSV/XLSX → JSON turns
"12"into12and"true"intotrue, but keeps leading zeros (ZIP codes, product IDs) as text. - Excel input: formulas give their computed value, links their text, dates come out in ISO 8601; pick the sheet by name or number.
- Excel output: bold, frozen header row, sensible column widths.
What it is for
- Turn an API's JSON export into a spreadsheet your team can open.
- Feed an Excel file from a client into a pipeline that wants JSONL.
- Normalize semicolon CSVs from European tools into standard comma CSV (or the reverse).
- Convert an Apify dataset export, a database dump or a BI export without writing a script.
Input example
{
"files": [
"https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv",
"https://example.com/exports/orders.json"
],
"outputFormat": "xlsx",
"csvDelimiter": "auto",
"flattenNested": true
}
files— public links; each file is converted separately.outputFormat—csv,json,jsonlorxlsx.inputFormat—auto(default), or forcecsv,tsv,json,jsonl,xlsx.csvDelimiter/outputDelimiter— input detection or forced value; output delimiter for CSV.hasHeader,inferTypes,flattenNested,sheet,maxFileSizeMb— fine-tuning (see the input tab).
Output example (real result)
One dataset row per file; the converted files are in the run's key-value store.
{
"sourceUrl": "https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv",
"sourceFormat": "csv",
"detectedDelimiter": ",",
"encoding": "utf-8",
"outputFormat": "xlsx",
"rowCount": 249,
"columnCount": 56,
"columns": ["FIFA", "Dial", "ISO3166-1-Alpha-3", "MARC", "..."],
"sourceSizeBytes": 133991,
"outputUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/converted-0001-country-codes.xlsx?signature=<signature>",
"outputKey": "converted-0001-country-codes.xlsx",
"outputSizeBytes": 94658,
"error": null
}
Honest limits
- Old binary
.xls,.ods, XML and Parquet are not supported (yet). - Excel output stops at Excel's own limit of 1,048,576 rows; choose CSV or JSONL beyond that. Cells longer than 32,767 characters are cut (Excel limit).
- Files are processed in memory: up to 200 MB per file; give the run more memory for files above 50 MB.
- Formatting, charts and merged cells of an input XLSX are not carried over: only the values are.
- Download links are signed (they open without an Apify token) and live as long as the run's storage (data retention of your plan, 7 days on the free plan).
Privacy
Your files are only read to convert them and the results stay in your own Apify storage.
Pricing
$0.002 per file converted ($2 per 1,000 files), whatever its size within the limits. Files that fail (broken link, invalid JSON, too big) return an error row and are not charged. Set a maximum charge per run in the Apify console and the Actor stops cleanly when it is reached.