Turn CSV into JSON without losing the details
Use the practice CSV to check column names, quoted commas and codes as strings in a JSON export.
Use a readable CSV with unique headings, import or paste it using its actual delimiter, and convert it to a JSON array while keeping identifiers, dates, and empty cells as strings. In the practice export, the code 001 keeps its zeros, 03/04/2026 keeps its original text, and an empty note appears as an empty string under its own key. Download the full JSON, then check the keys and the exact values of those fields against the CSV before passing the file to a system that may require its own data types.
What to look for
Use this guide when a working CSV needs to be imported as JSON and you want to keep what the source actually says. Common warning signs include an identifier displayed without leading zeros, a date that a spreadsheet formatted differently, or a JSON object whose key is missing where the CSV had a blank value. A comma in a name can make the row look wider than its header if the field is entered without quotes.
A quick conversion is useful when the destination expects a flat array of records and you can decide field types separately. Before you convert, ask what exact values the destination must receive. A reference that has to match another system calls for text. A field meant for calculation or date arithmetic calls for an agreed conversion rule and a separate check after applying it.

Why it happens
CSV stores cells in a delimited text format. A heading supplies the key for the cells below it, and quoted fields can contain punctuation or line breaks. A converter can parse that structure without guessing what a value means. In this workflow every cell enters the JSON as a string. A date-like field stays as its original characters, a blank cell stays as an empty string, and the source text true stays a string. This gives you a stable file to inspect before applying any rules required by the recipient.
Before you begin
Download field-notes.csv and keep an unchanged copy. The sample has three data rows and five columns named name, region, code, date and note. The first row is Field notes, Europe, 001, 03/04/2026, with an empty note. The second contains the name A new, good idea, code 002, the date 2026-11-05 and a note whose two lines read First line and Second line. The last row contains Next step, code 003, an empty date and the text true in note. The second row spans more than one physical line in the file.
Decide what will count as a correct conversion before opening the tool. Check the exact code, the two differently written dates, the comma inside the name, and the empty fields. Use the sample to see how these values look as JSON. For your own file, make a short checklist of values that another program might interpret differently and compare those values after export.
Steps
Inspect the input as text and check the headings.
Open field-notes.csv in a text editor, or use the import preview in the converter. Read the full header row in order. Each column name should occur once and have a clear meaning for the receiving application. The converter trims surrounding whitespace from header names. In a diagnostic run, a header with spaces around name became name, while the spaces around a text value were kept.
- Check that the value A new, good idea is enclosed in quotes.
- Its comma belongs inside one field.
- The multiline note also needs quotes across its whole value.
- If you edit a source field containing literal double quotes, double those interior marks, and place the delimiter directly after the closing mark.
- This preserves the value while telling the parser where the next field begins.
Load the file with the right separator.
If you are setting the delimiter explicitly, open Import settings & limits and choose Comma for this sample. Set the source’s encoding before choosing Add files to select field-notes.csv. For another source, read the first line to find the actual separator. If you paste the test text into the CSV text box, preserve the quotes and line break in the note.
- With the practice file imported, the preview should show three records and five headings.
- Check the first code and the date next to it.
- If the code is already missing a zero in the imported table, look for the loss in the original export before converting.
- Confirm the before value in a text editor when relying on a spreadsheet view that may format it differently.
Convert the table and read the preview.
Leave Conversion set to CSV → JSON and choose Convert & preview. The result is a new table ready for JSON export. In this sample, there are still three records and the same five field names. The content of the imported fields stays the same. If you entered text and imported a file in the same session, clear the text box when you want the active table to supply the input.
- An empty field becomes an empty string.
- You should still find a note key for Field notes and a date key for Next step after exporting.
- Write down at least one value that should be text even though it resembles another type.
- Here the last note is the word true.
- Check that the JSON represents it in quotes rather than as a Boolean value.
Save and open the full JSON.
Choose JSON in Download format, then select Download full table. Open the saved file with a text editor or a local JSON reader. The file should contain an array of objects with a name, region, code, date, and note in each object. A name such as A new, good idea is a single string. Its comma stays inside that value rather than introducing a new key.
- Check the code and date by reading the values between the quotes.
- The saved field for the first date is exactly 03/04/2026.
- The file alone does not tell the receiving system which calendar convention to use.
- Confirm that convention with whoever owns the import before changing a date.
- The second note shows a JSON escape for its line break in the saved text, while the parsed note has the original two lines.
Agree on field types before import.
Compare the output with the expected receiving format. A destination that needs numbers, dates or Booleans can apply conversions to the relevant fields once their meanings are agreed. Keep identifiers as text when their digits are significant. Keep a working copy of the original JSON so you can check what changed if the destination transforms it.
- After import, inspect the same representative records you checked in the local file.
- Separate problems in the receiving system from a mismatch already present in the JSON.
- For example, check whether 001 has the exact same characters in the saved JSON and in the newly loaded record.
- Record whether an empty string should remain empty or be mapped to a missing value by that system.
Check your result
Parse the saved JSON as an array. Count three objects and compare the five keys of each object with the header. Compare the value and type of each code. Confirm that the first date is “03/04/2026”, the second date is “2026-11-05” and the last date is an empty string. Check the empty first note, the second note’s line break and the last note’s string value “true”. The local run asserted that every value has the string type and matched all fields against these expected records. The saved file was also opened as parsed JSON to check the quote and line-break cases.
With your own input, check the first record, a representative tricky record and the last one. Confirm the required fields are present and compare the text values after parsing, since escaping in JSON source can change how a value is written on screen. The SHA-256 record for the public example can help you confirm that you downloaded the exact tested reference. For a different exporter, use parsed values to compare across whitespace and formatting conventions.
| name | region | code | date | note |
|---|---|---|---|---|
| Field notes | Europe | 001 | 03/04/2026 | |
| A new, good idea | Asia | 002 | 2026-11-05 | First line Second line |
| Next step | Americas | 003 | true |
Common mistakes
Starting with a re-saved spreadsheet export that changed the source value. Inspect the original CSV text and confirm its identifier fields first. The converter can preserve 001 when those exact characters are present.
Removing the closing quote or leaving stray space after it. Keep field syntax separate from data. The diagnostic parser rejected a space between a closing quote and the comma. Remove the stray separator-side space while retaining spaces that belong inside the value.
Replacing blanks with null during conversion. Agree on the import rule first. The tested output contains an empty string for the blank date and includes its key. A deliberate type mapping can be done separately when the destination needs one.
Treating the preview as the saved result. Open the full download and read it as JSON. Check key names, object count and representative values before submitting it to the recipient.
Limitations
This workflow checks that the parsed CSV fields carry into the JSON array with their exact text. Consult the destination for its own schema, expected field types and dates. When a source exceeds the importer’s published limits, work with a smaller reproducible subset or split the source into batches that preserve the same headers.
Test record
On 2026-11-23, we generated and verified the synthetic samples with Veylunex Data Workspace 1.0.0 under Node.js v26.4.0. We repeated the walkthrough in Google Chrome 157.0.8103.80 using a local site build.
The saved JSON contained 3 objects and 5 fields per object. Every value matched the expected string, including leading zeros, both date spellings, blank fields and the multiline note.
The measurement record includes the inputs, output counts or values, error messages, byte sizes and SHA-256 checksums for the public samples.
Tested in
Sample files
Questions
Will the converter infer a date or number from CSV?
The tested workflow exports strings. That includes the date-like field and the original code. If a receiving system wants another type, choose the conversion rule deliberately and verify the resulting values there.
How can I distinguish a blank value from a missing field?
Check that the JSON object still includes the key. In the test export, the last record includes date with an empty string. If a short CSV row is missing a required cell, correct its field count before converting.
Why is there an escape sequence in the JSON note?
JSON uses an escape to write the line break in the file. A JSON reader reconstructs the two lines as part of the same note string. Inspect the parsed value to verify the content.
Can I restore zeros that were missing from the CSV?
Use a verified source value or the original export before converting. The test preserves the exact strings it receives, so it keeps leading zeros for 001 when they are present in the CSV.