Convert JSON objects and arrays into RFC 4180 CSV tables with selectable delimiters
Convert JSON arrays of objects or single JSON objects into structured CSV tables locally in your browser with selectable delimiters (Comma, Semicolon, Tab), RFC 4180 quote escaping, clipboard copy, and .csv download.
Modern REST APIs, NoSQL databases (such as MongoDB and Firestore), and web applications exchange data primarily as hierarchical JSON (JavaScript Object Notation), whereas spreadsheet tools like Microsoft Excel, Google Sheets, and SQL bulk-import utilities expect flat, two-dimensional rows and columns in CSV (Comma-Separated Values) format. Our browser-based JSON to CSV Converter bridges this gap locally in your browser. When you paste a JSON array of objects (such as `[{"id": 1, "name": "Aarav"}, {"id": 2, "name": "Priya", "role": "Admin"}]`) or even a single JSON object (which the tool automatically wraps into a one-row array), the parser scans every object in the dataset and builds a unified list of unique top-level property keys (`new Set(...)`) to serve as your CSV column headers.
Handling inconsistent keys, nested structures, and special characters properly is essential to prevent broken columns when opening the exported CSV in spreadsheet software. If certain objects in your JSON array omit optional properties (sparse objects) or introduce new keys later in the array, our converter automatically aligns every value under its matching column header and outputs an empty cell (`""`) wherever a property is `null`, `undefined`, or missing. If a property's value is itself a nested object or array (for example, `"tags": ["urgent", "verified"]`), the converter serializes that nested structure via `JSON.stringify()` into a single text cell rather than dropping the data. Furthermore, the escaping engine follows strict RFC 4180 rules: any cell value containing your chosen delimiter, a newline (`\n`), or a double quote (`"`) is automatically enclosed in double quotes with internal quotes doubled (`""`).
Before clicking 'Convert JSON to CSV', you can select your preferred field separator from the 'Delimiter' dropdown: `Comma (,)` for standard US/UK/Indian CSV files and SQL imports, `Semicolon (;)` for European Excel locales where commas represent decimal points, or `Tab (\t)` for TSV (Tab-Separated Values) clipboard pasting. Once converted, the tool displays the exact count of processed records and detected columns, lets you inspect the raw CSV text in the result box, and provides both one-click clipboard copy and direct `export.csv` (`text/csv;charset=utf-8;`) download. Remember that the input must be valid RFC 8259 JSON (double-quoted keys and strings, no trailing commas) and must contain at least one object with keys; if your JSON has syntax errors, you can validate and beautify it first using our JSON Formatter tool.
आधुनिक वेब एपीआई (REST APIs), मंगोडीबी (MongoDB) और फायरबेस जैसे डेटाबेस डेटा को जेसन (JSON) फॉर्मेट में भेजते हैं, जबकि माइक्रोसॉफ्ट एक्सेल, गूगल शीट्स और डेटा एनालिसिस टूल्स में काम करने के लिए हमें पंक्तियों और कॉलमों वाले सपाट सीएसवी (CSV) फॉर्मेट की आवश्यकता होती है। हमारा ब्राउज़र-आधारित 'जेसन से सीएसवी कनवर्टर' (JSON to CSV Converter) इस काम को 100% आपके ब्राउज़र के भीतर पूरा करता है। जब आप ऑब्जेक्ट्स का कोई JSON एरे (जैसे `[{"id": 1, "name": "Aarav"}, {"id": 2, "name": "Priya", "role": "Admin"}]`) या कोई सिंगल JSON ऑब्जेक्ट पेस्ट करते हैं, तो हमारा पार्सर सभी रिकॉर्ड्स को स्कैन करके उनमें मौजूद सभी यूनिक टॉप-लेवल कीज़ (`Keys`) को पहचान लेता है और उन्हें स्वचालित रूप से सीएसवी के कॉलम हेडर (Headers) बना देता है।
डेटा कन्वर्ट करते समय अधूरे रिकॉर्ड्स, नेस्टेड डेटा और कॉमा/कोट्स को सही तरीके से संभालना बहुत जरूरी होता है ताकि एक्सेल में कॉलम न बिगड़ें। यदि आपके JSON एरे के कुछ ऑब्जेक्ट्स में कोई फील्ड मौजूद नहीं है (`null` या `undefined` है), तो यह टूल कॉलम का क्रम बिगाड़े बिना उस स्थान पर खाली सेल (`""`) रख देता है। यदि किसी प्रॉपर्टी के अंदर नेस्टेड ऑब्जेक्ट या एरे (जैसे `"features": ["Fast", "Free"]`) मौजूद है, तो डेटा खोने के बजाय यह टूल उसे `JSON.stringify()` के जरिए टेक्स्ट में बदलकर उसी सेल में सुरक्षित रखता है। इसके अलावा, यह RFC 4180 मानक का पालन करता है: यदि किसी मान के अंदर कॉमा, नई लाइन (`\n`) या डबल कोट्स (`"`) आते हैं, तो उसे अपने आप कोट्स में बंद कर दिया जाता है।
'Convert JSON to CSV' बटन दबाने से पहले आप ऊपर दिए गए 'Delimiter' ड्रॉपडाउन से अपनी जरूरत के अनुसार सेपरेटर चुन सकते हैं: सामान्य सीएसवी और डेटाबेस के लिए `Comma (,)`, यूरोपीय एक्सेल सेटिंग्स के लिए `Semicolon (;)`, या सीधे स्प्रेडशीट में पेस्ट करने के लिए `Tab (\t)`। कन्वर्जन पूरा होते ही आपको कुल रिकॉर्ड्स और कॉलमों की संख्या दिखाई देती है, और आप 'CSV Result' बॉक्स से आउटपुट को एक क्लिक में कॉपी (`Copy`) कर सकते हैं या सीधे `export.csv` फाइल डाउनलोड कर सकते हैं। ध्यान रखें कि इनपुट वैध JSON सिंटैक्स (डबल कोट्स में कीज़, बिना अंतिम कॉमा के) में होना चाहिए; यदि सिंटैक्स एरर आए, तो पहले हमारे 'JSON Formatter' टूल से उसे जांच लें।