tools/convert/csv ↔ json
// convertnew

csv ↔ json

convert csv to json and back, auto-detect delimiter

drag & drop · up to 5 MB (Pro: 100 MB)
delimiter:
CSV
JSON

              curl -sX POST 'https://api.whittly.dev/v1/csv/to-json' \
  -H 'Authorization: Bearer $WHITTLY_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"input":"name,age\nalice,30\nbob,25","delimiter":",","headers":true}'
            

              const res = await fetch('https://api.whittly.dev/v1/csv/to-json', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + apiKey,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ input: "name,age\nalice,30\nbob,25", delimiter: ",", headers: true }),
});
const data = await res.json();
            

              const { data } = await axios.post(
  'https://api.whittly.dev/v1/csv/to-json',
  { input: "name,age\nalice,30\nbob,25", delimiter: ",", headers: true },
  { headers: { Authorization: 'Bearer ' + apiKey } }
);
            
// probulk file conversionpro·files over 10 MBproupgrade →

// about this tool

CSV (Comma-Separated Values) is a universal tabular data format supported by every spreadsheet application and database. JSON is the standard format for APIs and JavaScript applications. This tool converts between them, handling quoted fields, escaped characters, and multiple delimiter types.

// when to use

  • Convert a spreadsheet export to JSON for use in an app
  • Transform an API response into a CSV for analysis in Excel
  • Process data that uses semicolons or tabs as delimiters
  • Quickly preview the structure of a CSV file as a JSON array

// faq

What delimiters are supported?
Comma (,), semicolon (;), tab (\t), and pipe (|). The tool auto-detects the delimiter by counting occurrences in the first line.
What about quoted fields containing commas?
The parser handles RFC 4180 quoting rules: fields wrapped in double quotes may contain commas, newlines, and escaped double quotes ("").
// history
Pro Cloud Sync — upgrade
no operations yet