CSV conversion guide
How to Convert CSV to Excel and JSON Online
CSV files are used everywhere: product exports, inventory lists, accounting reports, customer lists, bank statements, analytics downloads, order reports, supplier price lists, shipping data and database exports. CSV is simple and flexible, but it is not always comfortable to read or use directly. That is why many users convert CSV to Excel for spreadsheet work, or CSV to JSON for apps, APIs, websites and automation.
This guide explains how CSV files work, when to convert CSV to Excel, when to convert CSV to JSON, how headers and delimiters affect the result, how to avoid broken columns, and how to prepare clean data before using it in business or development workflows.
Use the CSV tools to preview, clean and download your converted output.
What is a CSV file?
CSV stands for comma-separated values. It is a plain text format used to store table-like data. Each line is usually one row, and each value in the row is separated by a delimiter. The delimiter is often a comma, but some systems use semicolon, tab or pipe.
Item Code,Item Name,Price,Stock SHB-1001,Premium Tray,305,12 SHB-1002,Kids Dress,35,40 SHB-1003,Co-ord Set,45,22
The first row often contains headers. Headers describe what each column means. In the example above, the headers are Item Code, Item Name, Price and Stock.
CSV to Excel vs CSV to JSON: which one should you choose?
| Conversion | Best for | Typical users |
|---|---|---|
| CSV to Excel | Viewing, filtering, editing, sharing and reporting spreadsheet data. | Business users, accountants, inventory teams, ecommerce teams, office staff. |
| CSV to JSON | Using table data in APIs, apps, scripts, websites, dashboards and automation. | Developers, data users, automation users, technical teams. |
When should you convert CSV to Excel?
Convert CSV to Excel when you want to work with the data in a spreadsheet. Excel format is easier for many people because it opens in a familiar workbook layout. It can preserve columns clearly, support filters, allow formulas, make data easier to review and create a cleaner file for sharing.
CSV to Excel is useful for:
- Opening product exports in a readable workbook.
- Sharing inventory reports with staff or suppliers.
- Reviewing order lists and sales reports.
- Cleaning customer lists before upload.
- Preparing data for manual editing.
- Converting raw CSV downloads into a more professional file.
How to use the CSV to Excel tool
- Open the CSV to Excel tool.
- Upload or paste your CSV data.
- Check whether the columns are detected correctly.
- Preview the table output before downloading.
- Download the generated XLSX file.
- Open it in Excel, Google Sheets, LibreOffice or another spreadsheet app.
The most important step is previewing the data. If all values appear in one column, the delimiter may be wrong. If product names break into multiple columns, the original CSV may need proper quotes around values that contain commas.
When should you convert CSV to JSON?
Convert CSV to JSON when the data needs to be used by software. JSON is common in web apps, APIs, JavaScript, Node.js, Python scripts, dashboards, browser storage and automation workflows. JSON gives each record a clear structure that programs can read easily.
CSV to JSON is useful for:
- Preparing product data for a custom app.
- Sending spreadsheet data to an API.
- Creating sample data for development.
- Converting exported reports into structured records.
- Using CSV data in JavaScript or Apps Script.
- Building dashboards, prototypes or test datasets.
How to use the CSV to JSON tool
- Open the CSV to JSON tool.
- Paste or upload your CSV data.
- Choose whether the first row should be treated as headers.
- Select the JSON output style if the tool provides options.
- Preview the JSON output.
- Copy or download the JSON file.
JSON objects vs JSON arrays
The most common CSV to JSON format is an array of objects. Each row becomes one object, and each column header becomes a key.
[
{
"Item Code": "SHB-1001",
"Item Name": "Premium Tray",
"Price": "305",
"Stock": "12"
},
{
"Item Code": "SHB-1002",
"Item Name": "Kids Dress",
"Price": "35",
"Stock": "40"
}
]This format is easy to read because every value has a name. It is usually best for APIs, apps and automation. Another possible format is an array of arrays, where each row is just a list of values. That format is more compact, but harder to understand because the meaning depends on column position.
Understanding CSV headers
Headers are very important when converting CSV to JSON. If the first row contains headers, the JSON keys come from that row. If headers are missing, the converter may create generic column names or output arrays instead of objects.
Good headers
Product Code,Product Name,Price,Quantity
Weak headers
Column1,Column2,Column3,Column4
Good headers make the output useful. Weak headers make the JSON harder to understand and maintain.
Understanding delimiters
A delimiter is the character that separates columns. Most CSV files use commas, but not all. Some regions and systems use semicolons because comma may be used as a decimal separator. Some exports use tab-separated values.
Comma delimiter
Most common format. Example: name,price,stock
Semicolon delimiter
Common in some regional spreadsheet exports. Example: name;price;stock
Tab delimiter
Often used when values contain many commas. It is sometimes called TSV.
Pipe delimiter
Used in some technical exports. Example: name|price|stock
Common CSV problems and how to fix them
Everything appears in one column
The delimiter may be wrong. Try comma, semicolon, tab or pipe depending on the file source.
Product names break columns
If a value contains commas, it should be wrapped in quotes, like "Premium Tray, Large".
JSON keys look wrong
Check the first row. It should contain clean headers if you want an array of objects.
Special characters look broken
Save or export the CSV as UTF-8 when possible.
Leading zeros disappear
Spreadsheet apps may treat codes as numbers. Keep product codes, phone numbers and IDs as text.
Empty rows appear in output
Remove blank rows before converting, especially at the top or bottom of the file.
CSV conversion examples for business
Example 1: Product list
A shop exports product data as CSV. The team can convert CSV to Excel to check product names, prices and stock. A developer can convert the same CSV to JSON to import products into a web app or custom dashboard.
Example 2: Order report
An ecommerce order export may contain order number, customer name, city, payment amount and status. CSV to Excel is useful for filtering and reviewing. CSV to JSON is useful for sending the data into an internal order tracker.
Example 3: Barcode label data
Product codes and label details can be stored in CSV, then uploaded into the Barcode Generator. This is useful when creating many barcode labels from a spreadsheet.
Best practices before converting CSV
- Keep the first row as clear headers.
- Remove blank rows before the header row.
- Check that every row has the same number of columns.
- Use quotes for values that contain commas.
- Keep IDs and product codes as text if leading zeros matter.
- Use UTF-8 encoding for better character support.
- Preview the output before using it in another system.
When not to use automatic conversion
Automatic conversion is useful, but some files need manual review. If the CSV contains sensitive financial records, legal records, complex formulas, merged spreadsheet cells, or unusual delimiters, review the output carefully before using it. CSV does not store formatting, formulas or multiple sheets like an Excel workbook.
Final checklist
- Confirm whether you need Excel or JSON output.
- Check the delimiter.
- Confirm the first row contains correct headers.
- Preview the converted result.
- Download the file and open it before sharing or importing.
- Keep the original CSV as a backup.
Frequently asked questions
Can I convert CSV to Excel online?
Yes. Use the CSV to Excel tool to convert CSV data into an XLSX workbook.
Can I convert CSV to JSON?
Yes. Use the CSV to JSON tool to create structured JSON from spreadsheet-style data.
Why is my CSV in one column?
The delimiter may not be comma. Try semicolon, tab or another delimiter depending on the source.
Does CSV keep Excel formatting?
No. CSV stores plain data only. It does not preserve colors, formulas, multiple sheets or formatting.