CSV (قيم مفصولة بفواصل)
CSV هو أبسط تنسيق للبيانات الجدولية — صفوف من القيم مفصولة بفواصل (أو محددات أخرى). يدعمه عالمياً كل من جداول البيانات وقواعد البيانات ولغات البرمجة، مما يجعله اللغة المشتركة لتبادل البيانات وسير عمل الاستيراد والتصدير.
نوع MIME
text/csv
النوع
نص
الضغط
بدون فقدان
المزايا
- + Universal support in Excel, Google Sheets, databases, and every language
- + Human-readable and easy to generate
- + Minimal overhead — just data, no formatting or metadata
- + Streamable — can be processed line by line for large files
العيوب
- − No data type information — numbers, dates, and strings all look the same
- − Encoding and delimiter ambiguity (comma vs semicolon vs tab)
- − No support for hierarchical or nested data
متى تستخدم .CSV
استخدم CSV لتصدير/استيراد البيانات البسيط وتبادل بيانات جداول البيانات وتغذية البيانات إلى البرامج النصية وخطوط الأنابيب.
التفاصيل التقنية
ملفات CSV هي نص عادي مع كل صف في سطر جديد والقيم مفصولة بفواصل. يمكن للحقول المُقتبسة (علامات اقتباس مزدوجة) أن تحتوي على فواصل وأسطر جديدة واقتباسات مُهرّبة. لا يوجد معيار لأنواع البيانات — كل شيء سلسلة نصية.
التاريخ
تسبق تنسيقات البيانات المفصولة بفواصل أجهزة الكمبيوتر الشخصية، حيث ظهرت في IBM Fortran في أوائل السبعينيات. وحّد RFC 4180 (2005) مواصفات CSV، رغم وجود العديد من المتغيرات.
التحويل من .CSV
التحويل إلى .CSV
صيغ ذات صلة
مصطلحات ذات صلة
Learn More
File Format Conversion: A Complete Guide
Converting files between formats is a daily task for professionals across every industry. This comprehensive guide covers document, image, audio, …
How to Generate Strong Random Passwords
Password generation requires cryptographic randomness and careful character selection. This guide covers the principles behind strong password generation, entropy calculation, …
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Text Encoding Explained: UTF-8, ASCII, and Beyond
Text encoding determines how characters are stored as bytes. Understanding UTF-8, ASCII, and other encodings prevents garbled text, mojibake, and …
CSV vs JSON vs XML: Data Exchange Formats Compared
Data exchange formats serve different needs. CSV excels at tabular data, JSON dominates web APIs, and XML powers enterprise integrations. …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …