Format & Convert (JSON / YAML / CSV)
Convert between JSON, YAML, and CSV using the HeffTools converter API. Useful for transforming config files, exporting data, and wiring together tools that expect different formats.
POST /api/v1/convert
What This Converter Does
This tool helps you switch between common text-based data formats used in APIs, configuration files, and export/import workflows. Instead of manually rewriting structures, you can paste your data, choose a direction, and let the HeffTools converter API produce the result.
Supported Conversions
- JSON → YAML – useful for migrating API responses or config into YAML-based tools.
- YAML → JSON – convert infrastructure or app configs into JSON for APIs or scripts.
- JSON → CSV – turn arrays of objects into CSV for spreadsheets or reporting.
For JSON → CSV, the input should be an array of objects with consistent keys:
[{"name": "Jeff", "role": "Dev"}, {"name": "Alex", "role": "Ops"}].
Tips for Valid Input
- Ensure your JSON is valid and uses double quotes for keys and string values.
- For YAML, maintain consistent indentation and avoid tab characters.
- When converting JSON → CSV, use an array of flat objects (no deeply nested structures).
- If conversion fails, check the error message and validate your input with a linter if needed.
Calling the Converter API from Your Code
This page sends the same request you can make from your own scripts:
POST /api/v1/convert
Content-Type: application/json
{
"direction": "json_to_yaml",
"input": "{\n \"name\": \"Jeff\",\n \"role\": \"Dev\"\n}"
}
Example response:
{
"direction":"json_to_yaml",
"output":"name: Jeff\nrole: Dev\n"
}
Related Tools
Base64 Encoder / Decoder · URL Encode / Decode · Regex Tester