CSV ⇄ JSON Converter
Convert between CSV and JSON formats with support for various delimiters and formatting options. Perfect for data transformation and API integration.
Examples
CSV Example:
name,age,city John,30,New York Jane,25,Los Angeles Bob,35,Chicago
JSON Example:
[
{"name": "John", "age": "30", "city": "New York"},
{"name": "Jane", "age": "25", "city": "Los Angeles"},
{"name": "Bob", "age": "35", "city": "Chicago"}
]Key Features
🔄 Bidirectional Conversion
- CSV to JSON
- JSON to CSV
- Automatic format detection
📝 Flexible Delimiter Support
- Comma (
,) - Semicolon (
;) - Tab (
\t) - Pipe (
|)
⚙️ Customizable Options
- Header row toggle
- JSON indentation control
- Formatting preservation
🎯 Multiple Use Cases
- Data migration
- API data transformation
- Excel/Spreadsheet integration
- Database import/export
CSV Format
CSV (Comma-Separated Values) is a simple text format for storing tabular data.
Basic Structure
name,age,city
John,30,New York
Jane,25,Los Angeles
Bob,35,Chicago
With Different Delimiter
name;age;city
John;30;New York
Jane;25;Los Angeles
Bob;35;Chicago
JSON Format
JSON (JavaScript Object Notation) is a lightweight data interchange format.
Array of Objects
[
{
"name": "John",
"age": "30",
"city": "New York"
},
{
"name": "Jane",
"age": "25",
"city": "Los Angeles"
}
]
Conversion Examples
CSV to JSON
Input (CSV):
id,name,email,role
1,John Doe,john@example.com,Admin
2,Jane Smith,jane@example.com,User
3,Bob Johnson,bob@example.com,Editor
Output (JSON):
[
{
"id": "1",
"name": "John Doe",
"email": "john@example.com",
"role": "Admin"
},
{
"id": "2",
"name": "Jane Smith",
"email": "jane@example.com",
"role": "User"
},
{
"id": "3",
"name": "Bob Johnson",
"email": "bob@example.com",
"role": "Editor"
}
]
JSON to CSV
Input (JSON):
[
{
"product": "Laptop",
"price": 999,
"stock": 15
},
{
"product": "Mouse",
"price": 29,
"stock": 50
}
]
Output (CSV):
product,price,stock
Laptop,999,15
Mouse,29,50