Data Convert
Convert between structured data formats (JSON, CSV, XML, YAML, TOML).
/v1/convert/data
curl "https://convert.toolkitapi.io/v1/convert/data?url=https://toolkitapi.io/config.yaml&from_format=yaml&to_format=json"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/data?url=https://toolkitapi.io/config.yaml&from_format=yaml&to_format=json",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/data?url=https://toolkitapi.io/config.yaml&from_format=yaml&to_format=json", {
});
const data = await resp.json();
console.log(data);
# See curl example
{
"result": {"name": "example", "version": "1.0.0"},
"metadata": {"format": "json"}
}
Try It Live
Description
How to Use
1. Call this endpoint with `from_format`, `to_format`, and either `data` (inline) or `url`.
2. Set any format-specific options: `delimiter`, `has_header`, `skip_rows` (CSV), `root_element`, `pretty`, `strip_namespaces`, `force_list` (XML), `flow_style` (YAML), `document_index` (YAML multi-doc).
3. Read the converted payload from `result`.
About This Tool
The unified data converter moves between `json`, `csv`, `xml`, `yaml`, and `toml`. Pass the source either inline (`data`) or via a public `url`, plus format-specific options — delimiters, root element names, pretty-printing, namespace stripping, and more.
This endpoint is the building block behind the individual `
Why Use This Tool
- Config migration — Move between YAML, TOML, and JSON configuration files
- API translation — Convert XML-SOAP responses to JSON before processing
- Spreadsheet → API — Turn CSV into JSON for an HTTP API
- Export pipelines — Serialize the same dataset in multiple formats at once
Frequently Asked Questions
Which source/target pairs are supported?
Are nested structures preserved?
How are type coercions handled?
Start using Data Convert now
Get your free API key and make your first request in under a minute.