UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

About·Changelog·Privacy Policy·Terms of Service·Contact
HomeData Format ConvertersCSV to JSON

Related Tools

JSON to CSV

CSV to JSON Converter — Types & Nesting

Convert CSV or TSV to JSON in your browser: detect numbers safely, nest dot headers, keep leading zeros, and export objects, arrays or JSON Lines.

You Might Also Like

All Data Format Converters

JSON to CSV

Convert JSON arrays, API responses or JSON Lines to CSV. Nested objects flatten to dot columns, arrays join or split, and quoting stays Excel-safe.

Case Converter

Convert text to UPPERCASE, lowercase, Title Case or Sentence case, or to camelCase, PascalCase, snake_case and kebab-case for code. Paste and copy.

Lorem Ipsum

Placeholder text in 20 languages — English, Bengali, Hindi, Arabic, Spanish, French, Chinese and more. Paragraphs, sentences, words, lists, optional emoji.

English Lorem Ipsum

Generate free English Lorem Ipsum dummy text for web design, layouts, and mockups. Classic Latin filler text in paragraphs, sentences, words, or lists.

Most CSV converters treat every number-looking value as a number, and that quietly breaks real data: a ZIP code of 01234 loses its zero, and a 17-digit order ID comes back rounded. This one only converts a value when nothing can be lost, and tells you about anything odd in the file.

The box starts with a small service table, whose first data row 1,checkout-api,210,0.0002,eu-west becomes an object with "id": 1 and "p99_ms": 210.

How to Use the Shape and Type Settings

  1. Paste CSV or TSV, press Open file, or drop a file. The delimiter is detected, and a sep=; line from Excel is honoured.
  2. Choose Array of objects, Array of arrays, Object of columns or JSON Lines.
  3. Decide what Empty cells become, and whether to detect types and nest dot headers.
  4. Press Copy JSON or Download.

Dot headers are the feature to look for: columns called address.city and address.zip become one nested address object, which also reverses what JSON to CSV does when it flattens nested data.

Format Notes: What Counts as a Number

42, -3.5 and 1e3 become numbers; true, false and null become their JSON values in any case. These stay strings on purpose: 007 and +1, because the leading characters would vanish, 1,000, and anything over 15 significant digits, because JavaScript numbers cannot hold it exactly. Quoted fields may contain commas, doubled quotes and line breaks, as in RFC 4180.

Edge Cases: Messy Headers and Uneven Rows

Problems are listed under the output rather than hidden. A blank header becomes column_3, a repeated one becomes name_2, and a row of the wrong length is reported, such as “Row 4 has 3 values; the header has 5.” Missing cells count as empty, and extra cells get their own column. If a and a.b are both columns, they cannot both exist in one object, so a.b stays a flat key. Files over 25 MB are refused because a browser tab may run out of memory. Pasted text is kept in this browser; opened files are not saved or uploaded.

JSON shape

Delimiter

Empty cells