Your contacts live in a spreadsheet: one row per person, columns for name, phone, email and postcode. The app you are moving to does not want the spreadsheet. It wants a JSON file, with every contact as an object and every field named exactly the way the app expects. The conversion itself takes seconds. What decides whether the import succeeds is the first row of your CSV, because those column names become the keys in the JSON, word for word.
This guide covers the conversion with the free CSV to JSON Converter on Ovatly: preparing the header row before you convert, why phone numbers survive the trip intact, and what happens to contacts with missing fields. Everything runs in your browser, so the list never leaves your device.
Contents
- Quick answer
- The header row becomes the keys
- Why every value stays a string
- Missing fields become empty strings
- How to convert a contacts CSV, step by step
- Worked example: two contacts, converted
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Rename the columns in your CSV to the field names your app expects, then convert with the header option on. Open the CSV to JSON Converter, paste the CSV text or upload the file, leave the header checkbox ticked so each row becomes an object keyed by your header names, and download converted.json. Every value stays a string, so phone numbers and postcodes keep their leading zeros. Empty cells become empty strings, so a contact with no email still arrives carrying every key. Rename first: the converter copies your header row verbatim and cannot fix names for you.
The header row becomes the keys
With the header option on, the converter treats the first row of the CSV as field names and every following row as one contact. A column headed name produces a "name" key on every object; a column headed Tel produces a "Tel" key. Nothing is translated, tidied or guessed. The names in your file are the names in the JSON.
That makes the header row the one piece of preparation that matters. Apps read imports by key, so the import works when your keys match the names the app expects, and fails or quietly drops fields when they do not. Before converting, find the names: the app's import documentation usually lists them, and exporting a single contact from the app gives you a sample file with the exact keys. Then edit the first row of your CSV to match, even if that means renaming a friendly heading like Phone Number to the plainer name the app uses.
With the header option off, the output is an array of arrays instead: rows of bare values with no names attached. An app import has nothing to match its fields against in that shape, so leave the header on for contacts.
Why every value stays a string
The converter never guesses at types. A value that looks like a number stays a string, and so does a value that looks like a date. In the worked example below, an age of 31 comes out as the string "31", in quotes.
For contacts, that restraint is protection. Phone numbers begin with zero, postcodes mix letters and digits, and customer IDs often carry leading zeros that mean something. A converter that typed values would read a phone number as a number and drop the zero, and the contact would be silently wrong. Because every value stays a string, the text in your CSV is the text in the JSON, exactly.
The tradeoff is real: if a field in your app genuinely stores a number, the JSON still carries a string for it. This tool will not type values for you.
Missing fields become empty strings
Real contact lists are uneven: one person has no email, another has no postcode. An empty cell in the CSV becomes an empty string in the JSON, present under its key with nothing in it. A row that is shorter than the header, missing its last cells entirely, is padded with empty strings to the same effect.
The result is a uniform array: every contact object carries the same set of keys, and a missing field reads as present but empty rather than absent.
How to convert a contacts CSV, step by step
- Prepare the CSV. Fix the header row first: rename each column to the field name your app expects. Then read the file as plain text once, and check the values are exactly what you want to keep, leading zeros included.
- Open the CSV to JSON Converter and paste the CSV text, or upload the file.
- Leave the header checkbox on. The delimiter is detected automatically, so comma, semicolon and tab files all read correctly, and quoted fields are handled by the standard CSV rules.
- Read the output before downloading: the keys should match your header names, and the values should sit in quotes.
- Download converted.json and run your app's import with it.
Worked example: two contacts, converted
Here is a small export, in the shape this kind of file usually takes:
name,age
Ana,31
Ben,28
Converted with the header on, it becomes:
[
{
"name": "Ana",
"age": "31"
},
{
"name": "Ben",
"age": "28"
}
]
Two things to notice. The keys, name and age, are your header words copied verbatim, and the ages are in quotes: strings, not numbers.
Now the contacts version. Suppose the app expects the keys name and phone. You edit the first row of the CSV to say exactly that:
name,phone
Ana,07123456789
Ben,
The output keeps Ana's number as "07123456789", zero intact, and Ben, who has no number in the file, gets "phone": "" rather than no key at all.
Limitations and honest tradeoffs
The converter produces arrays only: an array of objects with the header on, or an array of arrays with it off. It cannot produce a keyed object, a map of contacts keyed by an ID field. If your app wants that shape, the reshape is a separate step after conversion, so decide which shape you need before you start.
It also cannot know your app's field names: a file with the wrong keys converts perfectly and imports badly, with no warning. And it cannot repair damage already in the CSV: if a spreadsheet removed a leading zero before you exported, the zero is gone, and conversion preserves the file, not the intention.
Common mistakes
- Converting first, renaming later. Keys are fixed at conversion time. Rename the header row in the CSV, then convert.
- Leaving the header checkbox off. You get rows of bare values with no field names, and the import has nothing to match against.
- Trusting the spreadsheet's display. A spreadsheet can hide a stripped leading zero behind its formatting. Check the raw CSV text; the converter preserves what is in the file.
- Leaving stray rows in the file. A totals line or a note at the bottom is a row too, and it becomes a contact object. Delete anything that is not a contact.
- Treating a clean conversion as a passed import. Conversion checks nothing about your app's rules. If the import fails, compare your keys against the app's expected names first.
FAQs
Do I need the header option on for an app import? Yes, in almost every case. With the header on, each contact becomes an object keyed by your column names, the shape import tools read. With it off, you get an array of arrays: rows of values with no field names attached.
Will my phone numbers lose their leading zero? No. The converter keeps every value as a string and never guesses that a value is a number or a date, so a phone number starting with 0, or a postcode mixing letters and digits, comes through exactly as written in the CSV.
What happens to a contact with a missing field? An empty cell becomes an empty string in the JSON, and a row that is shorter than the header is padded with empty strings. Either way, every contact object carries the same set of keys, with the missing field present but empty.
My CSV uses semicolons instead of commas. Will it work? Yes. The delimiter is detected automatically, and comma, semicolon and tab are all recognised. Quoted fields are read by the standard CSV rules, so a value containing a comma stays in one piece when wrapped in quotes.
Is my contacts list uploaded anywhere? No. The conversion runs in your browser and nothing is uploaded. You paste the CSV or open the file locally, then download converted.json.
Conclusion
Converting contacts is really one preparation step: make the header row say what the app expects, then let the converter do the mechanical part. The CSV to JSON Converter keeps every value as an exact string, fills missing fields with empty strings, and runs entirely in your browser. If you have not yet settled which shape of JSON your app wants, read our guide on array of objects vs keyed objects in JSON output before you convert. For more in this series, see the Data and JSON Tools guides.
References
- RFC 8259, The JavaScript Object Notation (JSON) Data Interchange Format: https://www.rfc-editor.org/rfc/rfc8259
- RFC 4180, Common Format and MIME Type for Comma-Separated Values (CSV) Files: https://www.rfc-editor.org/rfc/rfc4180