JSON ↔ CSV Converter
Pricing
$3.00/month + usage
Go to Apify Store
JSON ↔ CSV Converter
Convert between JSON and CSV bidirectionally. Flatten nested objects to dot notation. Handle arrays with stringify, join, or first element. Custom delimiters (comma, semicolon, tab, pipe). Parse types automatically. Upload files, provide URLs, or load from Apify Datasets.
Pricing
$3.00/month + usage
Rating
0.0
(0)
Developer

Web Harvester
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Share
🔄 Bidirectional conversion between JSON and CSV formats. Flatten nested objects, handle arrays, customize delimiters.
🎯 What This Actor Does
Convert between JSON and CSV in either direction:
- JSON → CSV - Flatten nested objects, handle arrays
- CSV → JSON - Parse types, preserve structure
- Flexible Input - Upload files, URLs, or Apify Datasets
- Custom Delimiters - Comma, semicolon, tab, pipe
- Smart Handling - Numbers, booleans, nested data
🚀 Use Cases
| Use Case | Description |
|---|---|
| Data Export | Convert scraped JSON to CSV for Excel |
| Data Import | Convert CSV uploads to JSON for APIs |
| Integration | Bridge different system formats |
| Reporting | Prepare data for business tools |
| Migration | Move data between platforms |
📥 Input Examples
JSON to CSV
{"mode": "json-to-csv","datasetId": "abc123","flatten": true,"delimiter": ","}
CSV to JSON
{"mode": "csv-to-json","fileUrl": "https://example.com/data.csv","parseNumbers": true,"parseBooleans": true}
⚙️ Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | string | json-to-csv | Conversion direction |
file | string | - | Upload a file |
fileUrl | string | - | URL to file |
datasetId | string | - | Load from Apify Dataset |
flatten | boolean | true | Flatten nested objects to dot notation |
arrayHandling | string | stringify | How to handle arrays: stringify, first, join |
delimiter | string | , | CSV column separator |
includeHeaders | boolean | true | Include headers in CSV |
parseNumbers | boolean | true | Parse numeric strings |
parseBooleans | boolean | true | Parse true/false strings |
📤 Output
Conversion Result
{"status": "success","inputFormat": "JSON","outputFormat": "CSV","rowCount": 1500,"columnCount": 12,"downloadUrl": "https://api.apify.com/v2/..."}
Nested Object Flattening
Input JSON:
{"name": "John","address": {"city": "NYC","zip": "10001"}}
Output CSV:
name,address.city,address.zipJohn,NYC,10001
💰 Cost Estimation
| Rows | Approx. Time | Compute Units |
|---|---|---|
| 1,000 | ~5 seconds | ~0.005 |
| 10,000 | ~15 seconds | ~0.02 |
| 100,000 | ~1 minute | ~0.1 |
🔧 Technical Details
- Language: TypeScript / Node.js 22
- Memory: 256MB-512MB
- Speed: 50K+ rows/second
📄 License
MIT License - see LICENSE for details.

