UtilitySansar
डाटा

CSV to JSON Converter

Turn CSV into a JSON array with one row per object. Optional header detection, configurable delimiter, and type coercion that turns 1/true/null into real JSON values.

टूल सारांश

यो टूलले संरचित इनपुट लिन्छ र सर्भर अपलोड बिना ब्राउजरमै निर्धारित आउटपुट दिन्छ।

टूलको नाम
CSV to JSON Converter
इनपुट उद्देश्य
बदल्न, प्रमाणीकरण गर्न वा विश्लेषण गर्न स्रोत सामग्री प्रदान गर्नुहोस्।
आउटपुट उद्देश्य
कपी, पुन: प्रयोग वा डिबगिङका लागि उपयुक्त सामान्यीकृत आउटपुट प्राप्त गर्नुहोस्।
उदाहरण इनपुट
id,name,active 1,Alice,true 2,Bob,false
उदाहरण आउटपुट
[ { "id": 1, "name": "Alice", "active": true }, { "id": 2, "name": "Bob", "active": false } ]

Paste CSV above and click Convert to JSON.

टूल परिचय

Turn CSV into a JSON array with one row per object. Optional header detection, configurable delimiter, and type coercion that turns 1/true/null into real JSON values.

टूल अवलोकन

The parser is RFC-4180 compliant: it handles quoted fields, escaped quotes ("" → "), mixed \n and \r\n line endings, and trailing blank lines. With header mode on, the first row becomes the JSON object keys; with it off, each row is output as an array. Type coercion converts bare integers, floats, true/false, and null into their JSON-native form — leaving ambiguous strings (like "007" or "01-02") alone.

प्रयोगका केसहरू

  • Convert an Excel export to JSON for an API test
  • Seed a web app fixture from a CSV file
  • Pipe spreadsheet data into jq for filtering
  • Prepare CSV survey data for a charting library

इनपुट/आउटपुट उदाहरण

इनपुट उद्देश्य
id,name,active
1,Alice,true
2,Bob,false
आउटपुट उद्देश्य
[
  { "id": 1, "name": "Alice", "active": true },
  { "id": 2, "name": "Bob", "active": false }
]
Quoted fields handle commas and escaped quotes per RFC 4180.
इनपुट उद्देश्य
product,price,notes
"Widget, Blue",19.99,"On ""sale"""
Gadget,42,ships 2 weeks
आउटपुट उद्देश्य
[
  { "product": "Widget, Blue", "price": 19.99, "notes": "On \"sale\"" },
  { "product": "Gadget", "price": 42, "notes": "ships 2 weeks" }
]
TSV input with the header row disabled outputs an array of arrays. Numeric cells are coerced to numbers.
इनपुट उद्देश्य
1	Alice
2	Bob
3	Carol
आउटपुट उद्देश्य
[
  [1, "Alice"],
  [2, "Bob"],
  [3, "Carol"]
]

अक्सर सोधिने प्रश्नहरू

Is this CSV to JSON converter free?+
Yes. Convert as much as you need — unlimited rows, no sign-up, no upload to any server.
Does it support tab-separated or semicolon-separated files?+
Yes. Change the delimiter option to Tab, Semicolon, or Pipe before converting. Excel exports from European locales typically use semicolons.
What is type coercion?+
When enabled, 1 becomes the number 1, "true" becomes the boolean true, and "null" becomes null. Turn it off to keep every cell as a string — useful when you want to preserve leading zeros like "007".
Can it handle quoted fields with commas inside?+
Yes. The parser follows RFC 4180: "a, b" is a single cell containing "a, b", and "" inside a quoted cell is treated as a literal double quote.
Is the first row always treated as the header?+
Only when the "First row is header" option is on (default). Turn it off and you get an array of arrays instead of an array of objects.

थप टूलहरू अन्वेषण गर्नुहोस्

श्रेणीमा सम्बन्धित उपयोगिताहरू पत्ता लगाउनुहोस् डाटा तल।

सबै डाटा ब्राउज गर्नुहोस्

सम्बन्धित टूलहरू

तपाईंलाई काम लाग्न सक्ने सावधानीपूर्वक छानिएका उपयोगिताहरू