Field Names From Headers
Column headers become object keys, so you can tell which value belongs to which field when you read the output.
Transform CSV files or pasted spreadsheet rows into a clean JSON array in seconds. Uses your header row as keys—ready to copy for APIs and test fixtures.
CSV input
id,name
A101,Ada JSON output
[
{"id": "A101", "name": "Ada"}
] A plain row of comma-separated values makes it hard to tell what each value represents. Use the header row to name your JSON fields and turn each data row into a separate object. In the example below, the column names tell you exactly what each value means, even after you leave the spreadsheet.
From a file · accounts.csv
id,name
A101,Ada
A102,Lin Pasted text
id,name
A102,Lin When your data is already in a file, choose the .csv file to work with the whole export. If you only need a few records, paste those rows along with the header. Both inputs give you the same object array format, so you can start with whichever version of the data you have.
CSV record
id,postal_code
A101,00123 JSON preview
[
{"id": "A101", "postal_code": "00123"}
] A small preview makes it easier to spot a missing field or an unexpected value before the output reaches your project. Check the first few objects against the source rows, especially the column names and any IDs that matter. Once the result looks right, copy the JSON you plan to use.
Example API request body or test fixture
[
{"id": "A101", "name": "Ada"},
{"id": "A102", "name": "Lin"}
] Suppose a test endpoint expects a list of users, but your sample data lives in a spreadsheet export. Convert the rows to objects, then check the field names and value types against the endpoint's requirements. The same output can serve as a test fixture when the JSON structure matches what your tests expect.
In three steps, add your source data, check the converted records, and copy the result.
Choose a .csv file or paste comma-separated text into the input. Include column names in the first row and put the records you want to convert underneath.
Select Convert to JSON to create an array of objects. Check that the first few objects use your column names and contain the expected values.
Select Copy JSON to put the output on your clipboard. Paste it into a JSON file, a test fixture, or an API request that expects an array of objects.
Check how your table maps to JSON before you use the records in a project.
Column headers become object keys, so you can tell which value belongs to which field when you read the output.
Each data row becomes its own object in the output array, making individual records easier to identify and reuse.
Compare the JSON preview with the source data to catch an unexpected field name or value before you paste the result elsewhere.
Copy the full result in one action when your project needs the entire array, even if you only reviewed a few records.
Use the same object array format for sample requests, test fixtures, reporting, or app prototypes.
Turn a CSV of sample accounts into records you can paste into an API client. Use the array when your test endpoint expects a list of objects.
Turn spreadsheet rows for test users or orders into JSON fixtures. Copy the records into a fixture file after checking the field names your tests expect.
Convert a CSV export from a reporting workflow into an object array. Use it to hand off row data to a teammate whose app expects JSON records.
Use spreadsheet rows for sample products or tasks to populate a prototype. Copy the array into your project and use the column names to reference each field.
Find answers about headers, field values, and what your output array contains.
The output is an array of objects. For a header row of name,email, each data row becomes an object with a name key and an email key. This structure works wherever the receiving system expects a list of records with named fields.
Add a header row before converting if your CSV starts directly with data. Write one unique field name for each column in the same order as the values. For example, add id,name above rows that contain an ID followed by a name.
Wrap the entire field in double quotes, as in "Seattle, WA". Quoted commas are part of the field in standard CSV. If the field contains double quotes as well, write each literal quote twice inside the surrounding quotes.
Keep IDs and ZIP codes as JSON strings when leading zeros matter. In the output, "00123" preserves the original text. If the source already shows 123 because a spreadsheet stripped the zeros, restore the original value in the CSV first.
Export the worksheet as a .csv file from Excel first, then use that file as your input. Open the CSV to check that it contains the worksheet and columns you expected, especially if your workbook has multiple sheets.
Yes, if the endpoint accepts an array of objects in that shape. Check the required field names and value types before sending it. Some endpoints expect the array under a named property, such as items, so check the API documentation for the exact structure.
A header row supplies the JSON keys and does not become a data record. For example, a header plus three data rows produces three objects. If you expected additional records, check what was included in your pasted text or file.
Add your file or paste the data to get an array of named records you can copy.