.csv.tsv
CSV file: what it is and how to open it
A CSV file is a table saved as plain text: one row per line, with commas between the values. Drop one here to see it as a table, search it or turn it into JSON.
Drop your CSV file here
Opens on this device. Nothing is uploaded. Any other file works too.
What is a CSV file?
CSV, short for comma-separated values, is the simplest way to move a table between programs. Banks, online shops, analytics tools and databases export it, and every spreadsheet app imports it. Because it is plain text, any text editor can open it too.
CSV was in use long before anyone wrote it down. RFC 4180, published in 2005, describes the common form and registers the text/csv media type, but programs still differ: in countries that write decimals with a comma, the separator is often a semicolon, and files come in different text encodings.
A CSV holds values only: no formulas, formatting, charts or second sheet. A TSV file is the same idea with tabs between the values.
What is inside
Each line is one record, and commas separate its fields; RFC 4180 ends lines with CR LF and allows an optional header row. A field that contains a comma, a double quote or a line break is wrapped in double quotes, and a double quote inside it is written twice.
Nothing in the file says which separator, text encoding or column types it uses, so the app opening it has to guess. Wrong guesses cause most CSV problems: Excel reads a UTF-8 file without a byte order mark with garbled accents, turns 00123 into 123 and drops digits after the 15th from long numbers.
orders.csvorder,customer,totalthe header row (optional)1001,Ana Silva,19.991002,"Lee, Kim",5.00a comma inside a value: quoted1003,"The ""Big"" Box",12.50a quote inside a value: doubledHow to open a CSV file
Windows
- Microsoft ExcelPaid. Double-clicking applies automatic conversions; Data, From Text/CSV lets you pick the delimiter and encoding and check the columns first.
- NotepadBuilt in. Shows the raw text, which reveals the separator and the quoting.
- Universal File Opener for WindowsOursOpens the table to sort or filter the view and edit cells, then saves the CSV for free, leaving the rest of the file text as it was.
Mac
- NumbersFree from Apple. Opens CSV and TSV files; change the delimiter in the Format sidebar, Table tab, Adjust Import Settings.
- TextEditBuilt in. Shows the raw text.
iPhone and iPad
- FilesBuilt in. Tap the file for a read-only preview.
- NumbersFree from Apple. Opens CSV and TSV files as a spreadsheet.
Android
- Google SheetsFree. Opens CSV files and can convert them to a Google Sheet.
- Universal File OpenerOursEdit the table offline: change cells, add or delete rows and columns, sort, find and replace. Saving the CSV is free, and so is a PDF export.
In a browser
- Google SheetsFree with a Google account. File, Import detects commas, semicolons or tabs, or lets you set the separator yourself.
- Universal File OpenerOursDrop the file on this page to see it as a table and search it, or convert it to another delimiter or to JSON. Nothing is uploaded.
Won’t open?
Everything lands in one column
The file uses a different separator, often a semicolon, than Excel expects. In Excel, choose Data, From Text/CSV and pick the delimiter, or use File, Import in Google Sheets, which detects it.
Accented letters turn into odd symbols
The file is UTF-8 without a byte order mark, and Excel guessed another encoding. Instead of double-clicking, choose Data, Get Data, From File, From Text/CSV in Excel.
Leading zeros vanish or long numbers turn into 1.23E+19
Excel converts values as it opens a CSV. Turn that off in File, Options, Data, Automatic Data Conversion, or import with Data, From Text/CSV and set the column to Text.
Excel says the data set is too large for the grid
Excel shows at most 1,048,576 rows. Do not save over the file, or the rows that did not load are lost. Load it with Data, From Text/CSV into a PivotTable instead.
Formulas, formatting or other sheets are gone
A CSV stores only the values of one sheet, and Excel saves only the active sheet when you save as CSV. Keep an .xlsx original and export a CSV copy when you need one.
Convert a CSV file
- To Excel workbook (.xlsx)Open the CSV in Excel, then File, Save As, Excel Workbook. Formulas and formatting you add are kept from then on.
- To Google SheetsIn Google Sheets, File, Import, upload the file and choose Create new spreadsheet.
CSV files in our apps
Open CSV and TSV files offline in an editable grid: change cells, add or delete rows and columns, sort, find and replace, then save the text file for free or export a PDF table.
All Android tools and limits for CSV files
- A grid with column headers that stay in view and numbered rows.
- Edit cells (Enter moves down a row), and insert or delete rows and columns.
- Sort by column (numeric-aware, header-aware), find and replace, undo/redo.
- Export as a bordered, paginated PDF table; reading position resumes.
- Create a CSV free from New file on Home. Choose CSV and a name; the file opens in Documents, ready to edit.
Limits
- The CSV dialect (separator, quoting) is inferred; unusual dialects may need a quick check after saving.
Walkthrough: Edit text, code and data on Android