محوّل CSV إلى JSON
حوّل ترويسات وسجلات CSV إلى JSON مع دعم الفواصل بين علامات الاقتباس وفواصل الأسطر.
المدخلات
تلميح: اضغط Ctrl + Enter للتشغيل
الإعدادات المحفوظة
المساعدة المفصلة أدناه متاحة بالإنجليزية فقط حاليًا.
حول هذه الأداة
Spreadsheets export CSV, but web apps and APIs want JSON. This converter reads CSV with a header row and turns each following row into a JSON object whose keys are the column names. It follows CSV quoting rules, so a value like "Smith; John" stays in one field even when the delimiter is a semicolon, and quoted line breaks stay inside their cell.
All values are kept as text, because CSV does not say which columns are numbers. Convert types in your code if you need them.
طريقة الاستخدام
- Paste the CSV, including the header row.
- Choose the delimiter: comma, semicolon (common in European Excel exports) or tab.
- Run the conversion.
- Copy or download the JSON array.
كيف يعمل الحساب
The CSV is parsed character by character following RFC 4180 quoting: double-quoted fields may contain delimiters, quotes (written as two quotes) and line breaks. The first row supplies the keys, which must be unique and non-empty.
CSV headers → JSON keysمثال تطبيقي
A semicolon-separated export has the header name;city and rows "Smith; John";Paris and Ana;Lyon. With delimiter ";" the result is two objects: {"name": "Smith; John", "city": "Paris"} and {"name": "Ana", "city": "Lyon"}. The quoted semicolon did not split the name.
مثال على الإدخال والنتيجة
الاسم,الكمية / تفاح,3 → {"الاسم":"تفاح","الكمية":"3"}القيود
- Requires a header row with unique, non-empty names.
- All values become strings.
- Up to 100,000 characters; for larger files use Excel to JSON or CSV cleanup.
آخر تحديث:
الأسئلة الشائعة
Why are numbers in quotes in the JSON?
CSV has no data types, so every value is converted as a string. Convert numeric fields in your application.
My Excel CSV uses semicolons. Is that supported?
Yes. Choose ";" as the delimiter; Excel uses it in locales where the comma is the decimal separator.
Can rows have different numbers of columns?
No. Every row must match the header, otherwise the tool reports invalid CSV so data is not silently shifted.
استكشاف الأخطاء وإصلاحها
It reports invalid CSV.
Check for a stray quote inside an unquoted field, rows with extra delimiters, or a duplicate column name.
Everything ended up in one key.
The delimiter is wrong. Try semicolon or tab.
Accented characters look garbled.
The file was not saved as UTF-8. Re-export it as "CSV UTF-8".
الخصوصية & مجاني
هل تُخزَّن مدخلاتي؟
تبقى مدخلاتك في علامة التبويب هذه. لا نتلقى ملفاتك أو النصوص الملصقة أو قيم الحسابات.
هل هذه الأداة مجانية؟
نعم. لا يلزم تسجيل أو دفع.
انظر أيضًا
خطوات تالية مفيدة
منسّق JSON ومدقّقه
تحقّق من JSON أو نسّقه أو صغّره محليًا. لا تُرسل البيانات غير الصالحة إلى أي خادم.
المطورون وتحسين محركات البحثمحوّل JSON إلى CSV
حوّل مصفوفة مسطّحة من الكائنات إلى CSV. تُضاف بادئة حماية إلى النصوص الشبيهة بالمعادلات عند الاستيراد إلى جداول البيانات.
المطورون وتحسين محركات البحثمشفّر ومفكّك Base64
رمّز نص UTF-8 بصيغة Base64 أو فكّه إلى نص. Base64 ترميز وليس تشفيرًا.
المطورون وتحسين محركات البحث