RevealTheme logo

محوّل CSV إلى JSON

حوّل بيانات CSV إلى مصفوفة JSON من الكائنات. يُعامَل الصف الأول كترويسة.

كيفية استخدام هذه الأداة

  1. 1

    Paste your CSV — make sure the first row holds the column headers.

  2. 2

    Click Convert. Each following row becomes a JSON object keyed by the header names.

  3. 3

    Copy the JSON array, ready to drop into a JavaScript file, API mock, or seed script.

ما هو محوّل CSV إلى JSON؟

تحويل CSV إلى JSON هو عكس تحويل JSON إلى CSV. وهو مفيد عندما تتلقى بيانات من تصدير جدول بيانات أو قاعدة بيانات وتحتاج إلى استخدامها في تطبيق JavaScript. تتبع هذه الأداة معيار RFC 4180: تُزال علامات الاقتباس من الحقول المقتبسة، وتُلغى مهايأة علامات الاقتباس المزدوجة، وتُحفظ فواصل الأسطر داخل علامات الاقتباس.

حالات الاستخدام الشائعة

  • Turn a clean spreadsheet of products, users, or locations into a JSON array to seed a database or mock an API.

  • Convert exported analytics or CRM data into JSON for a quick chart or dashboard prototype.

  • Build test fixtures from a CSV someone handed you, without writing a parser.

  • Migrate config that lives in a spreadsheet into a JSON file your app reads at build time.

  • Sanity-check a CSV's structure — malformed rows become obvious when the object keys stop lining up.

  • Hand front-end developers ready-to-use JSON instead of a raw export they'd have to parse themselves.

الأسئلة الشائعة

ما الفاصل الذي تستخدمه؟
الفاصلة افتراضيًا. أما TSV (المفصول بعلامات الجدولة) فيتطلب معالجة مسبقة.
كيف تُعالَج الأنواع؟
جميع القيم سلاسل نصية: يحتوي JSON على أرقام ذات نوع محدد، لكن تحليل CSV دون مخطّط أمر غامض. حوّل الأنواع في تطبيقك.

أدوات ذات صلة