محوّل JSON إلى CSV
حوّل مصفوفة مسطّحة من الكائنات إلى CSV. تُضاف بادئة حماية إلى النصوص الشبيهة بالمعادلات عند الاستيراد إلى جداول البيانات.
المدخلات
تلميح: اضغط Ctrl + Enter للتشغيل
الإعدادات المحفوظة
المساعدة المفصلة أدناه متاحة بالإنجليزية فقط حاليًا.
حول هذه الأداة
Need to open API data in Excel or Google Sheets? This converter turns a JSON array of objects into CSV: the keys become the header row and each object becomes a line. Keys that appear only in some objects still get a column, and missing values are left blank.
It also protects against CSV formula injection. A value such as =SUM(A1) or =HYPERLINK(…) from untrusted data could run as a formula when opened in a spreadsheet, so values starting with =, +, - or @ are prefixed with an apostrophe.
طريقة الاستخدام
- Paste a JSON array of objects, for example [{"name":"Pear","qty":5}].
- Run the conversion.
- Download the CSV or copy it.
- Open it in your spreadsheet; check columns with leading zeros, which spreadsheets may strip.
كيف يعمل الحساب
The header is the union of all keys in order of first appearance. Values are written with CSV quoting (quotes, commas and line breaks are quoted), nested objects are written as JSON text, and formula-like strings are prefixed with an apostrophe.
keys → header; objects → recordsمثال تطبيقي
Converting [{"name":"=SUM(A1)","qty":3},{"name":"Pear","qty":5,"note":"ripe"}] produces the header name,qty,note. The first row becomes '=SUM(A1),3, with an empty note, and the second Pear,5,ripe. The apostrophe stops the spreadsheet from treating the first name as a formula.
مثال على الإدخال والنتيجة
[{"الاسم":"تفاح","الكمية":3}] → الاسم,الكمية / تفاح,3القيود
- Input must be an array of objects.
- Nested structures are not flattened.
- Up to 100,000 characters.
آخر تحديث:
الأسئلة الشائعة
What happens to nested objects?
They are written as JSON text in a single cell. Flatten the data first if you need separate columns.
Why is there an apostrophe before some values?
It neutralizes values that a spreadsheet would execute as formulas, a known security risk with exported data.
Which delimiter is used?
A comma. If your spreadsheet expects semicolons, use its import dialog to choose the delimiter.
استكشاف الأخطاء وإصلاحها
It says the JSON is invalid.
Validate it with the JSON formatter first.
Leading zeros disappeared in Excel.
Excel converts "007" to 7 when opening CSV. Import the column as text instead.
A real negative number got an apostrophe.
Numbers stored as JSON numbers are not prefixed; strings starting with "-" are. Store numbers as numbers in the JSON.
الخصوصية & مجاني
هل تُخزَّن مدخلاتي؟
تبقى مدخلاتك في علامة التبويب هذه. لا نتلقى ملفاتك أو النصوص الملصقة أو قيم الحسابات.
هل هذه الأداة مجانية؟
نعم. لا يلزم تسجيل أو دفع.
انظر أيضًا
خطوات تالية مفيدة
منسّق JSON ومدقّقه
تحقّق من JSON أو نسّقه أو صغّره محليًا. لا تُرسل البيانات غير الصالحة إلى أي خادم.
المطورون وتحسين محركات البحثمحوّل CSV إلى JSON
حوّل ترويسات وسجلات CSV إلى JSON مع دعم الفواصل بين علامات الاقتباس وفواصل الأسطر.
المطورون وتحسين محركات البحثمشفّر ومفكّك Base64
رمّز نص UTF-8 بصيغة Base64 أو فكّه إلى نص. Base64 ترميز وليس تشفيرًا.
المطورون وتحسين محركات البحث