.CSV

CSV File

Comma-Separated Values
Ask a question
QUICK ANSWER

A CSV file stores tabular data as plain text - one row per line, values separated by commas (or semicolons in European locales). Any spreadsheet opens it: Excel, Google Sheets, LibreOffice Calc. The most common problem is Excel cramming everything into one column or showing garbled characters - both fixed by using the import wizard instead of double-clicking.

Developer: No single owner (in use since the 1970s); documented in RFC 4180 (2005) Category: Data Files Open standard MIME: text/csv
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jun 21, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the CSV file format?

.csv is a file format that stores various types of data in character-separated text sets, most commonly with a comma - hence the name Comma-Separated Values. The format is documented in RFC 4180 (2005), a minimal but widely adopted standard. Data records are separated by a newline character, while individual field values are commonly enclosed in double-quote characters. To include a literal double-quote inside a field, it is written twice as "".

The first line of a .csv file conventionally holds column names (a header row), although the CSV specification does not mandate its structure. Record fields may be separated by:

  • Commas,
  • Semicolons,
  • Tabs (see .TSV),
  • Other characters - used consistently throughout the document.

.csv files are used for storing, importing, and exporting data in a well-defined, platform-independent format that any text editor can open. Because the choice of separator is unrestricted, it can sometimes cause issues during conversion; therefore, data import wizards must offer an option to configure the separator to be used, as is the case with spreadsheet applications such as Microsoft Excel and LibreOffice Calc.

.csv carries no file signature (magic bytes) and is identified by its structure rather than its content. A file may optionally begin with a UTF-8 byte-order mark (EF BB BF), which Excel writes automatically to signal the encoding. Most programming languages provide dedicated libraries for importing and managing .csv files reliably, making it one of the most universal data-exchange formats in use today.

Security & safety

RISK: MEDIUM

CSV is plain text and can't itself run code, but it carries a real risk: CSV injection (formula injection). If a cell starts with =, +, - or @, a spreadsheet may execute it as a formula on open - attackers exploit this in exported CSVs to run commands or leak data. Modern Excel/LibreOffice warn before running such formulas; don't enable them in files from untrusted sources. The everyday "risk" is data corruption, not malware: wrong encoding or delimiter silently mangling numbers, dates and leading zeros (e.g. ZIP codes and phone numbers losing their leading 0).

Format details

in a nutshell
FULL NAMEComma-Separated Values
DEVELOPERNo single owner (in use since the 1970s); documented in RFC 4180 (2005)since 1970s (early use); RFC 4180 published 2005
CATEGORYData Files
MIME TYPEtext/csv
TYPEPlain-text tabular data
STANDARDOpen · royalty-free

Programs that open CSV files

Windows3 apps
Microsoft Excel Paid Don't double-click for tricky files - use Data > 'From Text/CSV', then choose encoding (UTF-8) and delimiter in the preview before loading.
LibreOffice Calc Open-source Open the CSV - Calc shows an import dialog to pick the delimiter and character set every time. The most reliable free CSV opener.
Notepad / Notepad++ Open-source Open as plain text to inspect raw rows, check the delimiter and encoding, or make quick fixes.
macOS3 apps
Microsoft Excel Paid Use File > Import or Data > From Text to control delimiter and encoding.
LibreOffice Calc Open-source Open the CSV and set delimiter/encoding in the import dialog. Free and reliable.
Numbers (Apple) Free Double-click to open the CSV; Numbers shows column/encoding options on import.
Linux2 apps
LibreOffice Calc Open-source Open the CSV; the import dialog lets you set separator and character set. The default choice on Linux.
GNOME Gnumeric Open-source Lightweight spreadsheet with a clear text-import assistant for delimiter/encoding.
Web2 apps
Google Sheets Free File > Import > Upload the CSV, choose the separator (auto/comma/semicolon). Handles UTF-8 well and runs in the browser.
Microsoft Excel for the web Free Upload to OneDrive and open in Excel for the web (free with a Microsoft account).

Technical details

deep spec
MIME typetext/csv
File structurePlain text; rows delimited by line endings, fields delimited by a chosen separator character
Default delimiterComma (`,`); semicolons and tabs are also widely used variants
Line ending (RFC 4180)CRLF (`\r\n` per specification); LF-only (`\n`) is widely accepted in practice
Field quoting characterDouble-quote (`"`); doubled (`""`) to escape a literal quote within a field
Header rowOptional first row conventionally listing column names; RFC 4180 leaves the header structure undefined
File signature (magic bytes)None; identified by structure. An optional UTF-8 BOM (`EF BB BF`) may appear at the start of the file
Multi-line field supportSupported when field content is enclosed in double-quotes
Data modelSingle flat table only; no nesting, relations, or column data types encoded in the format
Character encodingAny encoding agreed between writer and reader; UTF-8 and Windows-1252 are most common
Built-in compressionNone; files are commonly archived as `.gz` or [ZIP](/format/zip)
Streaming suitabilityHigh - rows can be processed line by line without loading the entire file into memory
Binary data supportNot natively supported; binary content must be Base64-encoded as text
Application row limitsNo format-level limit; Microsoft Excel caps sheet import at 1,048,576 rows
Released1970s (early use); RFC 4180 published 2005
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

CSV conversions

Possible
.CSV .HTMLOnline converter
How to convert
.CSV .DBFOnline converter
How to convert
.CSV .XLSMOnline converter
How to convert
.CSV .SLKOnline converter
How to convert
.CSV .DIFOnline converter
How to convert
.CSV .XLTXOnline converter
How to convert
.CSV .DOCOnline converter
How to convert
.CSV .RTFOnline converter
How to convert
.CSV .PDFOnline converter
Yes -- open the CSV in a spreadsheet app and export or print to PDF. LibreOffice Calc (free) works on all…
How to convert
.CSV .TXTOnline converter
A CSV is already a plain-text file, so the fastest conversion is to rename the .csv extension to .txt.
How to convert
.CSV .XLSXOnline converter
Yes - open the CSV in Excel (or LibreOffice Calc, free) and use File > Save As > Excel Workbook (.xlsx).
How to convert
.CSV .SQLGUIDE
Yes -- import the CSV into a database tool like DBeaver or phpMyAdmin, which generates the INSERT statements…
How to convert
.CSV .JSONOnline converter
Yes -- the fastest route is a free online converter (csvjson.com or similar) or two lines of Python with…
How to convert
.CSV .SXCOnline converter
How to convert
.CSV .XMLOnline converter
Yes - the most direct route is a free online converter or a Python script; Excel works too but requires an…
How to convert
.CSV .DOCXOnline converter
How to convert
.CSV .ODSOnline converter
Yes -- the fastest free route is LibreOffice Calc: open the CSV (set delimiter and encoding in the import…
How to convert
.CSV .VCFGUIDE
Yes - the fastest way is to import the CSV into Google Contacts (free, no install) and export as vCard.
How to convert
.CSV .XLSOnline converter
Yes, you can convert CSV to XLS by opening the file in Excel or LibreOffice Calc and saving it as Excel…
How to convert

Community Q&A

asked by users
Ask a quick question
Get help from people who work with CSV files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about CSV files.

Frequently asked questions

Why does Excel open my CSV all in one column?
Your CSV uses a different delimiter than Excel expects for your region (comma vs semicolon). Instead of double-clicking, use Data > 'From Text/CSV' and choose the correct delimiter in the preview, or change Excel's list separator in Windows regional settings.
Why is my CSV showing garbled characters?
It's an encoding mismatch - the file is UTF-8 but the app opened it as ANSI/Windows-1252. Re-open with the import wizard and select UTF-8, or save the CSV with a UTF-8 BOM so Excel detects it.
Comma or semicolon - which delimiter should a CSV use?
Comma is the standard (RFC 4180), but European locales where the comma is the decimal mark use semicolons. Match the separator to whoever will open the file, or use a TSV (tab) to avoid the issue entirely.
How do I convert a CSV to Excel (.xlsx)?
Open the CSV in Excel, LibreOffice Calc or Google Sheets - setting the right delimiter and encoding on import - then File > Save As and choose .xlsx.
How do I turn a contacts CSV into a vCard for my phone?
Import the CSV into Google Contacts or Outlook, make sure the columns map to name/email/phone, then export as vCard (.vcf) and import that on your phone.
Will saving as CSV lose my Excel formulas and formatting?
Yes. CSV stores only plain values from the active sheet - no formulas, formatting, charts or extra sheets. Keep an .xlsx master and export CSV only for sharing data.

References

1RFC 4180 - Common Format and MIME Type for CSV Fileswww.rfc-editor.org
2Microsoft - Import or export text (.txt or .csv) filessupport.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.MDMarkdown Document
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.JPGJPEG Image
9.DATProgram Data File (generic)
10.TMPTemporary File

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.GGBGeoGebra Document

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z