CSV (Comma-Separated Values)
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 ในต้นทศวรรษ 1970 RFC 4180 (2005) เป็นมาตรฐานอย่างเป็นทางการของรูปแบบ MIME text/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 …