CSV to JSON Converter

Convert CSV to JSON instantly. Paste CSV or upload a file. Choose delimiter (comma, semicolon, tab) and whether the first row is headers. Supports UTF-8 and BOM. All processing runs locally.

How it works

What is CSV?

CSV (Comma-Separated Values) is a plain text format for storing tabular data. Each line is a row, and values are separated by a delimiter (usually a comma, semicolon, or tab). CSV is widely used for spreadsheet exports, API data, database dumps, and analytics. It is human-readable and easy to generate programmatically.

Use Cases

Converting CSV to JSON is useful when:

  • Spreadsheet export: Export from Excel or Google Sheets and consume as JSON in apps
  • API integration: Transform CSV responses into JSON for frontend use
  • Database migration: Convert exported CSV to JSON for import into document stores
  • Analytics: Process CSV data in JavaScript or pass to charting libraries

Examples

Example 1: CSV with Headers

Input: name,age,city\nJohn,30,New York\nJane,25,Boston

Output: [{"name":"John","age":"30","city":"New York"},{"name":"Jane","age":"25","city":"Boston"}]

Example 2: CSV without Headers

Input: 1,2,3\n4,5,6

Output: [["1","2","3"],["4","5","6"]]

Example 3: Semicolon-Delimited

Input: name;age\nJohn;30

Select semicolon delimiter. Output: [{"name":"John","age":"30"}]

Frequently Asked Questions

What is CSV used for?

CSV is used for data exchange between systems, spreadsheet exports, bulk imports, and simple data storage. Most databases and spreadsheets can export to CSV.

Can I use semicolon or tab as delimiter?

Yes. Select comma, semicolon, or tab from the delimiter option. European CSV files often use semicolons.

Does it support UTF-8 and special characters?

Yes. The converter handles UTF-8 encoding and BOM (Byte Order Mark) automatically. Accented characters and Unicode work correctly.

Is there a file size limit?

Yes. Paste input is limited to 1 MB and file upload to 5 MB. Larger files may cause performance issues. Split large files or process in chunks.

Can I paste or upload?

Yes. Paste CSV into the textarea or click to upload a .csv file. The file content is loaded into the textarea so you can edit before converting.