By JW Tool Box
Convert CSV, TSV and JSON: Headers, Quotes and Data Checks
Last updated
Paste delimited text or a JSON array, choose input and output formats, and check the result against your actual data requirements.
Why trust this guide
- Written by JW Tool Box around the actual workflow or linked tool on this page.
- Updated when browser behavior, file handling, or platform dimensions change in ways that affect the steps.
- Focused on practical settings, safe defaults, and real tradeoffs instead of generic filler.
Open CSV/JSON Converter, choose the input and output formats, paste your text, then convert and copy the result. The current interface accepts pasted text, not a dropped file. It supports comma-separated CSV, tab-separated TSV and JSON.
Choose the input format deliberately
| Source | Select | Check first |
|---|---|---|
| Comma-separated rows | CSV | Commas inside cells must be quoted |
| Tab-separated spreadsheet cells | TSV | The first row must contain column names |
| JSON records for a table | JSON | Use an array of flat objects for CSV/TSV output |
| Semicolon-separated data | Prepare it separately | There is no custom delimiter selector or automatic semicolon detection |
Do not blindly replace semicolons or commas inside quoted text. Use an appropriate parser or source export when a different delimiter is required.
Convert CSV to JSON
The first row always supplies the JSON keys. There is no headerless mode or header checkbox. Choose CSV as input and JSON as output, then paste:
name,age,city
Ada,30,London
Ben,25,Chicago
The resulting records contain strings:
[
{ "name": "Ada", "age": "30", "city": "London" },
{ "name": "Ben", "age": "25", "city": "Chicago" }
]
The converter does not offer a Parse Numbers switch. Keeping values as strings can preserve identifiers such as 00123. If a receiving API requires numbers or booleans, map the relevant fields explicitly and validate the result. A global find-and-replace can corrupt identifiers or text values.
Quotes, commas and line breaks
Enclose a cell containing a comma or a line break in double quotes. Escape a quote inside a quoted cell with another quote:
name,note
"Widget, Pro","He said ""hello"""
Expected JSON:
[
{ "name": "Widget, Pro", "note": "He said \"hello\"" }
]
A quoted multi-line cell can include a newline. Check the parsed value instead of counting every physical line as a separate record. This lightweight parser is not a strict CSV validator; malformed quotes or inconsistent rows require your own checks.
Protect column names and record boundaries
- Give each header a unique, non-empty name. Duplicate headers can overwrite earlier values in the same JSON record.
- Keep the number of fields consistent. Missing cells become empty strings; extra cells beyond the headers are not included in JSON objects.
- The tool trims the complete pasted input before delimited conversion. Verify meaningful leading or trailing whitespace near its boundaries.
- Decode source files as the correct text encoding before pasting. There is no file-encoding selector in this interface.
Convert JSON to CSV or TSV
Choose JSON as input and CSV or TSV as output. Paste an array of flat objects and convert. The converter builds a union of object keys as columns; missing and null values become empty cells.
[
{ "name": "Ada", "role": "Engineer" },
{ "name": "Ben", "role": "Designer" }
]
CSV result:
name,role
Ada,Engineer
Ben,Designer
Nested objects and arrays are not automatically flattened into a relational table. Convert them into explicit scalar columns before using this workflow. Avoid unusual header names containing commas, tabs, quotes or newlines; this tool does not escape the generated header row. Inspect the result before opening it in another application.
Copy and inspect the output
Use the output's Copy control or select the text manually when clipboard access is unavailable. The current interface has no download button. Save the copied output in a local text editor if you need a file.
For data from an untrusted source, review cells that a spreadsheet might interpret as formulas before opening a CSV. CSV quoting alone is not a spreadsheet-safety check.
Start with a small representative sample that includes empty cells, quotes and identifiers. Check record count, column names and required types in the receiving system; successful conversion does not validate an API schema or guarantee a large dataset fits in browser memory.
Data text is converted locally in your browser, without being uploaded to JW Tool Box. Website analytics and advertising are described separately in the Privacy Policy.
About the author
JW Tool Box - Editorial and product review team
JW Tool Box publishes hands-on guides tied directly to the site's browser-based tools. Content is updated when browser behavior, platform rules, or product requirements change in ways that affect real workflows. The goal is to provide practical instructions, tested defaults, and trustworthy reference content instead of thin keyword filler.
Related guides
-
XML to JSON Converter: Attributes, Types and API Mapping Checks
Use XML/JSON Converter to convert pasted XML into JSON or JSON into XML. Select a direction, paste the input, convert, then copy the output. The interface does not fetch a feed URL or import a file for you. A converted SOAP envelope is still an envelope-shaped object. It is not automatically a REST endpoint, a valid target API payload or a complete migration. Checked XML-to-JSON example The fo…
Related tools
Additional browser-based utilities that are closely related to this workflow.
-
JSON Formatter & Validator (Minify, Beautify, Fix JSON)
Pretty-print, minify, or validate JSON documents instantly.
-
CSV to JSON Converter (Table, Array, Excel)
Convert CSV or TSV to JSON (and back) with proper quoting, headers, and clipboard support.
-
XML to JSON Converter (API, Data, Parse)
Convert between XML and JSON formats instantly. Perfect for API integration.