CSV (Comma-Separated Values)
CSV adalah format paling sederhana untuk data tabular — baris nilai yang dipisahkan oleh koma (atau pemisah lainnya). Didukung secara universal oleh spreadsheet, database, dan bahasa pemrograman, menjadikannya lingua franca untuk pertukaran data dan alur kerja impor/ekspor.
Tipe MIME
text/csv
Tipe
Teks
Kompresi
Lossless
Kelebihan
- + 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
Kekurangan
- − 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
Kapan Menggunakan .CSV
Gunakan CSV untuk ekspor/impor data sederhana, pertukaran data spreadsheet, dan memasukkan data ke dalam skrip dan pipeline.
Detail Teknis
File CSV adalah teks biasa dengan setiap baris pada baris baru dan nilai yang dipisahkan oleh koma. Bidang dalam kutipan (kutip ganda) dapat berisi koma, baris baru, dan kutipan yang di-escape. Tidak ada standar untuk tipe data — semuanya adalah string.
Riwayat
Format data yang dipisahkan koma sudah ada sebelum komputer pribadi, muncul di IBM Fortran pada awal tahun 1970-an. RFC 4180 (2005) memformalkan spesifikasi CSV, meskipun banyak varian yang ada.
Konversi dari .CSV
Konversi ke .CSV
Format Terkait
Istilah Terkait
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 …