Data Converter — JSON, CSV & XML
Pricing
Pay per usage
Go to Apify Store

Data Converter — JSON, CSV & XML
Convert between JSON, CSV, and XML formats in bulk. JSON to CSV, CSV to JSON, JSON to XML, XML to JSON. Handles quoted fields, nested objects. $0.003/conversion.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Manchitt Sanan
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Data Converter -- JSON, CSV & XML
Convert between JSON, CSV, and XML formats in bulk. Handles quoted fields, commas in values, nested objects. No external dependencies -- pure Node.js implementation.
Quick Start
{"items": [{"data": "[{\"name\":\"Alice\",\"age\":30,\"city\":\"New York\"},{\"name\":\"Bob\",\"age\":25,\"city\":\"London\"}]","operation": "json-to-csv"},{"data": "name,age,city\nAlice,30,New York\nBob,25,London","operation": "csv-to-json"},{"data": "[{\"name\":\"Alice\",\"age\":30}]","operation": "json-to-xml","options": { "rootElement": "people", "itemElement": "person" }},{"data": "<people><person><name>Alice</name><age>30</age></person></people>","operation": "xml-to-json"}]}
Input Reference
| Field | Type | Required | Description |
|---|---|---|---|
items | array | Yes | Array of conversion items |
items[].data | string | Yes | Data string to convert (or URL to fetch from) |
items[].operation | string | Yes | One of: json-to-csv, csv-to-json, json-to-xml, xml-to-json |
items[].options | object | No | Optional conversion settings |
Options
| Option | Type | Default | Description |
|---|---|---|---|
delimiter | string | , | CSV delimiter character |
rootElement | string | root | XML root element name |
itemElement | string | item | XML item element name |
includeHeader | boolean | true | Include header row in CSV output |
Operations
- json-to-csv: Converts a JSON array of objects to CSV format. Flattens nested objects with dot notation.
- csv-to-json: Parses CSV (with proper quoted field handling) into a JSON array of objects.
- json-to-xml: Converts a JSON array of objects to XML with configurable element names.
- xml-to-json: Parses simple XML into a JSON array of objects.
Output Example
{"index": 0,"operation": "json-to-csv","input": "[{\"name\":\"Alice\",\"age\":30}]","output": "name,age\nAlice,30","success": true}
Error Output
{"index": 1,"operation": "csv-to-json","input": "","output": null,"success": false,"error": "Data content is required"}
Pricing
- $0.003 per conversion (per item in the input array)
- No free tier
- Pay-per-event billing via Apify platform
Related Tools by manchittlab
- Markdown & HTML Converter -- Bidirectional Markdown/HTML conversion
- All Tools -- Browse all tools by manchittlab