CSV to JSON Converter with Semicolon and Tab Delimiters
Convert CSV data to JSON array format
What does the CSV to JSON converter do?
It turns delimited tabular data — a spreadsheet export, a database dump, a report someone emailed you — into a JSON array of objects. The first row is treated as the header, and each subsequent row becomes an object whose keys are those header names. Quoted fields are handled, so values containing the delimiter itself (like "Smith, John") don't break the row into extra columns.
The conversion runs entirely in your browser. The CSV you paste is never uploaded, stored, or logged, so it's safe to convert exports containing emails, order data, or other records you wouldn't put in a random web form.
When to use it
The most common case is seeding or testing: you have data in Excel or Google Sheets and your code wants JSON — fixtures for tests, a mock API response, a one-off import script. Instead of writing a throwaway parser, export as CSV, paste, convert.
It's also handy in the other direction of a debugging session: when an ETL job or import endpoint chokes on a CSV file, converting a few rows here shows you exactly what objects your parser should be producing, which makes it obvious whether the file or the code is at fault. Semicolon-delimited files (the default in many European Excel locales) and tab-separated exports are covered by the delimiter switch — if your columns come out mashed into one field, that switch is almost always the fix.
Example
Paste:
name,age,email John,30,[email protected] Jane,25,[email protected]
and Convert produces a two-element array: [{"name": "John", "age": "30", "email": "[email protected]"}, ...]. Note that every value is a string — CSV has no type information, so numbers stay quoted and you cast them in your code where you know the intended type. Use "Copy link to this result" to share a permalink that restores your exact input and delimiter for a teammate; the data is encoded in the link fragment, not sent to any server. Going the other way? There's a matching JSON to CSV tool.
How delimiters, quotes and headers are handled
Delimiter: choose comma, semicolon or tab. Semicolons are the default CSV separator in Excel for locales that use a decimal comma (much of Europe and Latin America), and tab-separated text is what you get when you copy cells straight out of a spreadsheet.
Quoting: a field wrapped in double quotes can contain the delimiter ("Smith, John" stays one value), and a doubled quote inside a quoted field is read as a literal quote, as RFC 4180 specifies ("say ""hi""" becomes say "hi"). The converter reads one record per line, so a quoted field that contains a line break is not supported — replace embedded newlines in the source, or use one of the scripts below, which handle them.
Headers and rows: the first non-empty line is always the header row and its values become the keys. Blank lines are skipped and spaces around each value are trimmed. A row with fewer values than headers gets empty strings for the missing keys; values beyond the last header are dropped. If two headers share a name, the later column overwrites the earlier one, so rename duplicates first.
Convert CSV to JSON with Python or Node.js
Python, standard library only: python3 -c 'import csv, json, sys; print(json.dumps(list(csv.DictReader(sys.stdin)), indent=2))' < data.csv > data.json. For a semicolon file pass delimiter=";" to DictReader; for tabs, delimiter="\t". Like this tool, csv.DictReader returns every value as a string, and unlike it, handles quoted fields that span several lines.
If you want numbers instead of strings, convert explicitly per column after parsing — for example row["age"] = int(row["age"]) — rather than guessing, so ZIP codes and IDs with leading zeros survive. pandas does guess: pandas.read_csv("data.csv").to_json(orient="records") infers numeric columns, which is convenient for clean numeric data and destructive for codes like 00123.
Node.js has no built-in CSV parser; csv-parse (npm i csv-parse) is the common choice: const { parse } = require("csv-parse/sync"); JSON.stringify(parse(text, { columns: true, skip_empty_lines: true })). Pass cast: true only if you want it to convert numeric-looking values.
How to use the CSV to JSON Converter with Semicolon and Tab Delimiters tool
- 1
Paste your CSV
Include the header row — it becomes the JSON keys. Spreadsheet exports from Excel or Google Sheets work as-is.
- 2
Pick the delimiter
Comma is the default; switch to semicolon or Tab if your export uses those.
- 3
Convert
Each data row becomes one object in the output array, keyed by the headers.
- 4
Copy or share
Copy the JSON, or copy a permalink that restores your input and settings for anyone who opens it.
Frequently asked questions
Is my data uploaded anywhere?
No. Parsing and conversion happen entirely in your browser with JavaScript. Nothing you paste leaves your machine, and shared permalinks encode the data in the URL fragment, which browsers never send to the server.
Why is everything in one column / one key?
The delimiter doesn't match. European Excel exports often use semicolons and copy-pasted spreadsheet cells are tab-separated — switch the delimiter button and convert again.
Why are my numbers strings in the output?
CSV carries no type information, so every value is emitted as a string rather than the tool guessing. That keeps ZIP codes, phone numbers, and IDs with leading zeros intact; cast to numbers in your code where you know the type.
Can I convert JSON back to CSV?
Yes — use the companion JSON to CSV tool on this site. It takes an array of objects, unions all keys into a header row, and quotes values correctly.
How are quoted fields and escaped quotes handled?
Fields wrapped in double quotes can contain the delimiter, and a doubled quote ("") inside a quoted field becomes a literal quote, per RFC 4180. Quoted fields containing line breaks are not supported, because each line is parsed as one record.
Can I make numbers come out as numbers instead of strings?
Not in this tool: every value is a string, so IDs and ZIP codes with leading zeros are never mangled. Cast the columns you know are numeric in your code, or use pandas.read_csv, which infers numeric types.
What if my CSV has no header row?
The first line is always used as the keys. Add a header line such as col1,col2,col3 at the top before converting, otherwise your first record becomes the key names.
How do I convert CSV to JSON in Python?
json.dumps(list(csv.DictReader(open('data.csv', newline=''))), indent=2) uses only the standard library and returns a list of objects keyed by the header row, the same shape this tool produces.
Related on TechLogHub
Related Converter Tools
Unix Timestamp Converter with Milliseconds
Convert Unix timestamps to human-readable dates and vice versa
Cron Expression Generator with Next Run Times
Build, explain and test cron expressions, with the next run times in UTC and your timezone
ENV to JSON
Convert .env files to JSON format
ENV to Docker Compose
Convert .env files to docker-compose environment snippet
Query String to JSON
Parse URL query strings into JSON objects
JSON to Query String
Convert JSON objects to URL query strings
Get the next tool before you need it
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.