🔄 Data Format Converter — JSON YAML XML TOML · Apify
Data Format Converter — JSON YAML XML TOML CSV avatar

Data Format Converter — JSON YAML XML TOML CSV

Pricing

from $0.0015 / file converted

Go to Apify Store
Data Format Converter — JSON YAML XML TOML CSV

Data Format Converter — JSON YAML XML TOML CSV

Convert structured data between JSON, YAML, XML, TOML, NDJSON and CSV. Paste raw data or point at a file URL, auto-detect the source format, and get a clean converted document plus a dataset row.

Pricing

from $0.0015 / file converted

Rating

0.0

(0)

Developer

Hipersoft

Hipersoft

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 minutes ago

Last modified

Features

Limited permissions

Share

Data Format Converter — JSON, YAML, XML, TOML, NDJSON & CSV

Convert structured data between JSON, YAML, XML, TOML, NDJSON and CSV — paste it in or point at a file URL, and get a clean converted document back.

Data Format Converter input — configure the options in the Apify Console

What it does

  • Converts between JSON, YAML, XML, TOML, NDJSON and CSV in any direction.
  • Auto-detects the source format so you don't have to specify it.
  • Accepts raw text or a file URL to fetch and convert.
  • Runs a batch of many conversions in a single run.
  • Returns the converted document as a downloadable file plus a tidy dataset row for each conversion.

Use cases

  • No-code pipelines (n8n / Make / Zapier) — run this from the Apify node, then pass the converted output straight to the next step (a webhook, a database, a file store).
  • APIs & integrations — turn a YAML config or an XML feed into JSON your app can consume.
  • Data prep — flatten JSON or NDJSON into CSV for spreadsheets and BI tools.
  • Migrations — move config or fixtures between formats when switching tools.

Input

{
"data": "{\"name\":\"Ada\",\"roles\":[\"admin\",\"dev\"]}",
"from": "auto",
"to": "yaml"
}

Batch mode:

{
"items": [
{ "data": "a,b\n1,2", "from": "csv", "to": "json" },
{ "data": "name: Ada", "from": "yaml", "to": "xml" }
]
}
FieldTypeDescription
datastringRaw source document to convert. Provide this or fileUrl.
fileUrlstringPublic URL of a file to fetch and convert (used when data is empty).
fromstringSource format: auto, json, yaml, xml, toml, ndjson, csv.
tostringTarget format: json, yaml, xml, toml, ndjson, csv.
itemsarrayOptional batch of { data, from, to } objects for many conversions in one run.

Output

Data Format Converter output — the results as a clean dataset

Each converted document is saved to the run's key-value store and a row is pushed to the dataset.

{
"from": "json",
"to": "yaml",
"bytes": 34,
"resultUrl": "https://api.apify.com/v2/key-value-stores/.../records/converted-0001.yaml",
"ok": true
}

Output schema

FieldTypeDescription
fromstringDetected or specified source format.
tostringTarget format the document was converted to.
bytesintegerSize of the converted document in bytes.
resultUrlstringDirect link to download the converted file.
okbooleanWhether the conversion succeeded.

Explore more data tools from the same author:

Plug the results straight into your stack with Make, Zapier or any of Apify's integrations.

FAQ

Which formats are supported? JSON, YAML, XML, TOML, NDJSON and CSV — in any direction.

Do I have to set the input format? No. Leave from on auto and it is detected for you.

Can I convert many documents at once? Yes — pass an items array and each is converted and saved separately.

Can I use it in n8n? Yes. Trigger it from the Apify node and pass the output to the next step. See Apify integrations and the Apify API.

Notes

Original clean-room implementation.