Skip to main content
appkiro.com

CSV to JSON

Convert pasted CSV/TSV, uploaded CSV files, or public web page tables into JSON directly in your browser.

Read the full guide

Practical guide

CSV is easy to export from spreadsheets, but app code usually wants objects. Paste a table, upload a CSV, or extract a public table, then turn rows into JSON records that can feed fixtures, prototypes, or API examples. If the target is documentation, you may later turn the JSON into YAML for config-style files.

Visual examples show the kind of input and output this tool is designed around.

Rows to JSON records

Turn a small table into structured objects for app fixtures or API examples.

Before
CSV to JSON demo showing table rows converted into JSON objects before
After
CSV to JSON demo showing table rows converted into JSON objects after

Where this fits

Move spreadsheet rows into a prototype

A product manager can hand over CSV, and a developer can turn it into predictable JSON without manually quoting every cell.

Preserve IDs as strings

Disable type coercion when values like postal codes, SKU numbers, or account IDs must keep leading zeros.

Create typed sample data

Once the row shape is stable, generate TypeScript types so sample data and front-end models stay aligned.

How to use CSV to JSON

  1. 1Add CSV or table dataPaste rows, upload a CSV or Excel file, or extract a public table URL.
  2. 2Confirm delimiter and header settingsUse auto-detect first, then override delimiter or header behavior if the preview looks wrong.
  3. 3Choose object or array outputObjects are best when header names are meaningful; arrays work for matrix data or duplicate columns.
  4. 4Review warningsCheck ragged rows before copying because uneven columns usually point to unescaped delimiters or broken source data.
  5. 5Copy or download JSONUse pretty JSON for review and minified JSON when size matters.

Practical notes

Round-trip only after reviewing types

If spreadsheet teammates need edits later, round-trip the data back to CSV after confirming IDs, dates, and booleans survived conversion as intended.

The safest flow is parse, inspect, type-check, then hand the output to the next system.

  1. 1

    Convert CSV rows

  2. 2

    JSON to TypeScript

  3. 3

    JSON to YAML

    Useful when the same records become config.

Questions worth checking

Why did a value like 00123 become 123?

Type coercion interpreted it as a number. Turn coercion off when codes, IDs, ZIP codes, or phone fields must remain exact text.

What if the CSV has no header row?

Disable the header option. The tool can generate column names so every row is still represented in JSON.

Why does the preview show row warnings?

Warnings usually mean a row has more or fewer columns than expected, often because a comma or newline appears inside an unquoted value.