A spreadsheet export might be ready to read in a table, but the application receiving it expects named JSON properties. In CSV, a heading at the top of the file describes a whole column. In a JSON array of objects, each record carries those names alongside its own values. Before converting, make sure the header describes the records accurately and that the file separates its columns with commas.
TinyToolbox CSV to JSON uses the first CSV record as the header and turns each subsequent record into an object. It keeps the contents of cells as strings. That preserves identifiers such as 0017 and lets you choose types later based on what the receiving application expects.
Check the header and delimiter
Open the file in a text editor to see what the converter will read. A spreadsheet can display semicolon-separated or tab-separated data in columns, so the grid alone does not tell you the delimiter. The TinyToolbox converter expects commas. If the exporter uses tabs or semicolons, choose a comma-separated export instead. Avoid replacing every semicolon by hand because a semicolon can belong inside someone’s note or description.
The first record needs one nonblank name per column. Choose names that are unique and meaningful to the receiver. A file exported for human review might have two columns labeled Date, even though one means a start date and the other means the end date. Rename those headers to something distinct, such as startDate and endDate, if that is what the destination expects.
Leading or trailing spaces in a nonblank header become part of the property name. A field named code and a field named **code ** are different keys. Check header spelling in a plain text view and compare it with the names required by the importer. JSON property names can contain spaces, but the receiving application might require a specific set of names.
If the CSV begins with a report title or an export note above the real table, remove those lines from the working copy. The converter reads the first record as the header. A sentence above the table can become a one-column header and make the later rows fail their column count check.
Convert the data in TinyToolbox
- Open CSV to JSON Converter.
- Use Upload a CSV file, drop a CSV onto the file area, or paste it under CSV input.
- Check that the header is present in the input.
- Select Convert to JSON.
- Review Converted output and choose Copy output or download converted.json.
The conversion runs in your browser. The file picker accepts one CSV file up to 4 MB, and the text is limited to one million characters. A file that fits the upload control can still exceed the text limit. For a large export, try a small representative sample first. If you split a CSV for inspection, include the header in every part and split only between complete records. A quoted cell can extend across multiple physical lines.
If your file has only a header and no records, the conversion can return an empty array. Before using that result, confirm that the export was actually meant to be empty. A filter or an incomplete download can leave a valid header even when the rows you expected are missing.
Try a sample with identifiers and empty cells
Say a workshop roster has a short code, a contact name, a seat count, and an optional note. Here are three sample records:
code,name,seats,note
0017,Sam Rivera,2,"Front row, if available"
0042,Alex Lee,1,
0050,Morgan Chen,0,"Asked for ""quiet seating"""
The first record becomes an object with code equal to “0017”, name equal to “Sam Rivera”, seats equal to “2”, and note equal to “Front row, if available”. The second record’s trailing comma supplies a fourth cell, whose value is the empty string. In the third record, the doubled quotation marks in CSV become literal quotation marks in the note’s value. In the JSON source, those quote characters are escaped to keep the string valid.
Check the JSON array length against the number of data records. The header becomes property names and does not appear as an extra object. If a note contains a line break inside quotes, count that note as part of one record. A physical line count can exceed the number of records for this reason.
Keep a quoted cell together
Wrap a cell in double quotes when its text contains a comma, quotation mark, or line break. The quoted note “Front row, if available” stays in one cell even though it contains a comma. Without the quotes, the converter would read that comma as a separator and see too many fields for the header.
Use two double quotes for a literal double quote within a quoted cell. If you type a single bare quote into the middle of an unquoted cell, the parser can report invalid quoting. After the closing quote, put the next comma or record break directly after it. Stray spaces there can also cause a quoting error. A spreadsheet or CSV exporter can usually write the quoting for you when you export from the underlying table.
A quoted multiline cell keeps its internal line break. When you inspect the generated JSON, you may see that break represented by an escape such as \n. That is JSON’s way of spelling a line break within a string. If you open the parsed value in a viewer that displays whitespace, confirm the break belongs in the intended place.
Decide which strings should become other types
CSV cells do not give the converter a reliable type for each column. This converter keeps their text. 0 becomes “0”, false becomes “false”, and the letters null become “null”. An empty cell becomes “”. A receiving application can interpret these differently, so choose conversion rules based on its schema rather than the appearance of the value.
For the roster, code should stay a string to preserve leading zeros. seats might need to become a number. Define what should happen when the seats field is empty. It might mean unknown, in which case treating it as zero would change the meaning. Confirm the expected type and missing-value rule before applying any transformation.
Dates deserve the same attention. A value such as 03/04/2026 is still a string after conversion, and the intended day and month can depend on the source. Normalize dates using an agreed convention if the receiving system requires it. Test a date whose day and month could be mistaken for one another. A successful JSON parse confirms the format of the JSON, while the importer determines whether a value follows the contract.
Diagnose row width and quoting errors
If the tool reports a record with too many or too few columns, find the header and count its fields first. Then inspect the reported record. For an expected four-column row, an unquoted note containing a comma can create a fifth value. A missing trailing delimiter on a row with an empty final field can leave only three. Repair the source by restoring the intended empty field or quoting the text that belongs together.
The record number includes the header and can differ from the physical line number. If an earlier record has a multiline note, the next record begins farther down in the editor than its number suggests. Find the relevant portion using a recognizable ID or name and inspect its opening and closing quotes. An unclosed quoted field can absorb later lines, which makes the error show up far from the original missing quote.
Blank rows inside the export can also cause a mismatch when the header has several columns. Check that the row is truly empty before removing it. A blank line inside an open quoted note is part of that note. If you use CSV Validator to investigate the file, work from the same source you will submit to the converter.
Review the output against the receiving application
Open the copied or downloaded JSON in JSON Formatter & Viewer to inspect the first and last objects. Check the exact property names, then review values that are easy to lose in another program, such as leading zeros, quote marks, blank fields, and line breaks. Look at at least one ordinary record and one edge case from the source.
If another system imports the data, run that system’s validation or preview on a small representative copy before submitting the full export. Confirm that it reads the expected number of records and that it interprets important columns correctly. A well-formed JSON array can still fail if the destination asks for a wrapper object or a different field name.
Keep the original CSV and label the reviewed file according to its purpose. If the source changes later, repeat the conversion and compare a few known records with the new output. The conversion is ready for use when the header names, record count, and cell values match what the recipient expects.
Compare an empty field with a zero and an explicit label
Suppose a registration export includes an identifier, an available-seat count, and a status indicator. Paste these four lines into CSV to JSON.
code,available,confirmed
0017,0,false
0018,,false
0019,2,true
In the output, all three codes are strings. The first record has "0" for available, the second has an empty string, and the third has "2". The first two records also contain the string "false". Before filling an application field that expects a boolean, translate the explicitly allowed values according to the contract. In some languages, treating any nonempty string as true would turn the text "false" into the opposite of its intended meaning.
Read the receiving schema before handling the blank seat count. Suppose it requires a number when a count is known and allows null when it is unknown. In that case, transform "0" to the number 0, the empty string to null, and "2" to the number 2. Keep the codes as strings. If the schema instead asks you to omit unknown fields, leave available out of the second object after conversion. A JSON key with a null value and a missing key can cause different behavior in an update request, so use the documented representation.
Verify the transformation on this sample before doing it across the whole export. Compare the first and second records side by side and confirm that “no seats” and “count unknown” are distinguishable. Then test an unexpected status string and confirm that your import reports it or handles it under an explicit rule. An unrecognized string should not quietly become a confirmation by accident.
Keep the raw CSV and the generated JSON alongside any typed version you make. When a later export adds a new column, compare its header with the previous file before applying the same conversion rules. Another reader should be able to reproduce both the original text conversion and the subsequent choices about field types.