CSV Editor
Open, edit and clean CSV files in a spreadsheet grid: sort, filter, find and replace, add rows and columns, and save as CSV, Excel or JSON.
Drop a CSV file here, or
Your files never leave your device
Opens .csv, .tsv and .txt up to 50 MB · edited in this browser
Opens a CSV file as a grid you can edit like a spreadsheet: change any cell, paste a range copied from Excel or Google Sheets, add and delete rows and columns, sort, filter, find and replace, and clean up spaces, duplicate and empty rows. Every change can be undone. The file is read and edited in your browser and never uploaded, and values stay exactly as they are written: an ID like 007 keeps its zeros, which is what goes wrong when the same file is opened in Excel.
How to use it
- Open a file (.csv, .tsv or .txt) of up to 50 MB (25 MB on a phone or tablet) and 2,000 columns: 50 MB is about half a million rows of a typical export. Or paste CSV text, start a New table, or open the Example.
- Delimiter is found from the data, or from a
sep=line Excel adds; choose another if the rows of a file or pasted text split wrongly. A file's Encoding is UTF-8, with a byte order mark honoured; a file that is not valid UTF-8 is read as Windows-1252 and the page says so, with other code pages to choose from. First row is headers names the columns from the first row; off, columns are lettered A, B, C, as is a column the header leaves without a name. - Row and Column insert and delete as many rows or columns as are selected; Column also renames, sorts and filters. The same items open with a right-click on the grid. A double-click on a column's name renames it too.
- Numbers sit at the right of their cell, as in a spreadsheet, and text at the left. A number with leading zeros, such as 007, is kept as text and stays at the left.
- Sort orders the rows by the selected column. A column whose values are all plain numbers sorts by value; any other sorts as text in your language, with runs of digits compared as numbers (item 2 before item 10). Empty cells go last.
- Filter shows the rows whose value in the column contains the text you type, ignoring case. Find, Replace all and the column summary then work on the rows shown, and Save can write all rows or only those; sorting and the clean-ups still apply to every row.
- Find tints every matching cell in view, and the match it has stepped to more strongly; Enter and Shift+Enter step to the next and previous.
- Clean up trims spaces, tabs and line breaks from both ends of every value, removes rows equal to an earlier one, and removes rows that hold nothing but spaces. Each says how many it changed and is one undo step.
- Undo keeps the last 100 changes. Each stores only what it changed, so undo works on large files too.
- Under the grid, the column summary counts the selected column's values, empty cells and unique values, with the minimum, maximum, sum and mean when every value is a number.
- Save downloads CSV (comma, semicolon or pipe, with a UTF-8 byte order mark and CRLF line ends, as RFC 4180 has them), TSV, an Excel workbook or JSON. CSV and TSV keep short rows short and write every value as it is, unless you turn on the formula guard. JSON takes its keys from the header, so values past its last name are left out, and the page says which rows held them.
- While you edit, a table of up to 10 MB is kept in this browser's storage two seconds after you stop, and offered back if the page is closed before saving. A larger table is not kept, so leaving the page asks first.
Examples
A file saved by Excel on Windows
Excel's “CSV (Comma delimited)” saves in the Windows code page, not UTF-8, so an é is one byte (E9) that UTF-8 cannot read. Opened here:
- Notice
- This file is not valid UTF-8, so it was read as Windows-1252.
- Second column
- José
Saved again, the file is UTF-8 with a byte order mark, which Excel and every other program read correctly.
Formulas in a file to be opened in Excel
A cell starting with = (or +, - or @) runs as a formula when a spreadsheet opens the CSV. Saved as it is, and with Guard against formulas on:
- Saved
name,note Asha,=1+1 Ben,-5 Chen,@SUM(A1)
- Guarded
name,note Asha,'=1+1 Ben,-5 Chen,'@SUM(A1)
The guard puts an apostrophe before each formula, and leaves -5 alone: a spreadsheet reads a signed number as the number. The grid keeps the values as they were.
Keyboard shortcuts
| Keys | Does |
|---|---|
| Arrows, Page Up, Page Down | Move; Shift with them selects a range |
| Ctrl+Home, Ctrl+End | The first and last cell |
| Ctrl+A | Select every cell |
| Enter, F2 or typing | Edit the cell; typing replaces its value |
| Enter, Tab | While editing: keep the value and move down, or right |
| Shift+Enter, Alt+Enter | While editing: a line break in the cell |
| Escape | While editing: drop the change |
| Delete, Backspace | Clear the selected cells |
| Ctrl+C, Ctrl+X, Ctrl+V | Copy, cut and paste, as tab-separated cells |
| Ctrl+Z, Ctrl+Y | Undo and redo |
| Ctrl+F | Find and replace |
| Shift+F10, menu key | The menu for the selected cells |
Frequently asked questions
See also
- CSV to JSON Converter — for JSON with every option: nested headers, types and layout.
- CSV to SQL Converter — to turn the saved CSV into CREATE TABLE and INSERT statements.
- Excel to JSON Converter — to get a sheet of a workbook out as CSV, to edit here.
- JSON to Excel Converter — for a workbook from JSON, nested objects flattened into columns.