Utilido

Utilido blog

CSV and JSON round trips without breaking rows or types

Practical tips for headers, quoting, nested fields, and when a spreadsheet export is not valid JSON yet.

By Benchehida Abdelatif · Published May 12, 2026 · Updated May 24, 2026 · 9 min read

Moving between CSV and JSON is routine until a comma inside a name, an empty cell, or a nested object breaks the shape. The Utilido CSV and JSON tools run the conversion in your browser for the transform step, which helps when you are cleaning exports locally.

CSV expectations

Most tools assume the first row is headers. Empty trailing columns often become extra keys with blank names. If a cell contains commas or quotes, the file must be properly quoted. Open the CSV in a text editor when Excel hides the problem.

JSON expectations

JSON to CSV works best on an array of similar objects. One top-level object becomes one row. Deep nesting may need flattening first. Numbers and booleans should stay typed in JSON; everything becomes text once it lands in CSV.

Bidirectional workflow

  • Export CSV from the spreadsheet, convert to JSON, validate shape.
  • Edit JSON, convert back to CSV, re-open in the sheet to confirm columns.
  • Use the direction switcher on the tool page instead of guessing URLs.
  • Keep a small sample file for tests before running large exports.

After conversion

Scan the first and last rows for shifted columns. Confirm date and ID fields did not pick up scientific notation from Excel. If the API rejects the payload, run it through the JSON formatter to locate a trailing comma or a string where a number was expected.