Clean up and standardise a CSV file: change the delimiter, quoting and line endings, trim spaces, fill short rows and remove repeats, with a check against RFC 4180.
Initializing in your browser…
Find and remove duplicate rows in a CSV, by whole row or chosen columns, ignoring case, stray spaces or number formatting if you want, and review every group before you download.
Check every value in a CSV against rules such as required, email, number range, date, URL or unique, see each problem by row with a reason, and download the clean rows.
Clean up CSV columns with a chain of 34 steps: trim, change case, extract digits, reformat dates and numbers, mask values and more, with a live before and after preview.
A contact list edited by hand has stray spaces, a value with a comma in it, a blank line, a row missing its last field and an accidental duplicate. It needs to load into a system that expects a clean CSV.
contacts.csv (LF line endings)
Name,Age,City,Email Alice Johnson,28,New York,alice@example.com Bob Smith ,35, Los Angeles,bob@example.com Carol White,42,"Portland, OR",carol@example.com David Brown,,Houston Alice Johnson,28,New York,alice@example.com
Formatted, with Trim spaces and Remove repeated rows on
Name,Age,City,Email\r\n Alice Johnson,28,New York,alice@example.com\r\n Bob Smith,35,Los Angeles,bob@example.com\r\n Carol White,42,"Portland, OR",carol@example.com\r\n David Brown,,Houston,\r\n Found in your file: 2.1 Records are separated by LF; RFC 4180 specifies CRLF. 2.4 1 row does not have 4 fields. Changes: 1 short row filled with empty fields to 4 columns. 2 fields trimmed of surrounding spaces. 1 repeated row removed.
The blank line is dropped, David Brown's row gets an empty Email field so every row has four, and the second copy of Alice Johnson's row is removed. Portland, OR keeps its quotes because the comma would otherwise split it into two fields, while nothing else is quoted. Line endings become CRLF, shown here as \r\n. The two findings describe the original file, so you know why another program may have struggled with it; the formatted output itself conforms.
Load a CSV and get a cleaned, consistently formatted copy: the delimiter you need, quotes only where they are required, CRLF or LF line endings, stray spaces trimmed, short rows filled and exact duplicate rows removed. The tool also checks your file and the result against RFC 4180, the CSV specification, and explains anything that could trip up another program.
Why reformat a CSV? CSV is simple in principle but varies in practice. A file exported from European Excel uses semicolons, a database dump might quote every field, a script on Linux writes LF line endings, and someone's hand edits leave stray spaces and rows with a missing field. Importers differ in what they accept, so a file that opens fine in one place is rejected or misread in another. This formatter reads whatever you have and writes a clean, predictable file.
Reading the input. The delimiter is detected automatically, so comma, semicolon, tab and pipe separated files open correctly; you can also set it by hand, including colon and space. Blank lines can be dropped, and a leading byte order mark is removed so it does not end up glued to the first column name. If a quote is opened and never closed, the tool stops and says roughly where, because everything after that point would be read into the wrong fields.
Writing the output. Choose comma, semicolon, tab or pipe (colon and space are under More options). Quoting can be Only when needed, which is the standard choice, Every field, Text fields, or Never; even with Never, a field that holds the delimiter, a quote or a line break is still quoted, because otherwise the file could not be read back, and the tool counts those fields. Line endings default to CRLF as RFC 4180 specifies, and you can switch to LF. Other options change the case of the header or the data, add a byte order mark so Excel reads accented characters correctly, or pad columns so they line up when the file is read by a person.
Cleaning. Trimming removes spaces around values, which is off by default because the specification treats spaces as part of a value. Filling short rows adds empty fields so every row has the same number of columns, and removing repeated rows drops exact copies of an earlier row while keeping the header. Every change is listed, for example "1 short row filled with empty fields to 4 columns".
Checking. Findings are marked with the section of RFC 4180 they relate to: line endings (2.1), rows with a different number of fields (2.4), quotes inside unquoted fields (2.5). Findings about your file and about the output are listed separately, and a summary says whether the output conforms. The formatted file updates live as you change settings, and you can copy it or download it. Everything runs in your browser.
Turn a semicolon-separated export from a European spreadsheet into a comma-separated file for a US system, or the other way round.
Some importers want CRLF line endings, a fixed number of columns and no blank lines. Format the file once and the import goes through.
Remove stray spaces, fill in missing trailing fields and drop accidental copies of rows after several people have edited a shared CSV.
Load the problem file and read the findings: an unclosed quote, a row with too many fields or mixed line endings is usually the culprit.
name;city followed by Anna;Wien is detected as semicolon-separated and written as name,city and Anna,Wien with CRLF line endings.
Portland, OR is written as "Portland, OR" with quotes, so it stays one field. With quoting set to Never it is still quoted, and the count of such fields is shown.
With Data case set to Title Case, élan vital becomes Élan Vital and łódź becomes Łódź.
It is the short document that describes the common CSV format: records separated by CRLF, fields separated by commas, fields containing commas, quotes or line breaks enclosed in double quotes, and a quote inside a field written twice. Most programs follow it loosely, so a file that follows it closely is the safest to share.
Because a field holding the delimiter, a quote or a line break cannot be written without quotes and still be read back correctly. The tool quotes just those fields and tells you how many there were.
Only if the spaces are mistakes. The CSV specification treats spaces as part of the value, so trimming is off by default. For hand-typed data, turning it on usually helps.
CRLF is what RFC 4180 specifies and what Windows programs expect. LF is common on Linux and macOS. Almost every modern program reads both, so choose CRLF unless the receiving system asks for LF.
Some rows have more or fewer fields than the rest, often because a value contained an unquoted comma or a trailing field was left off. Fill short rows pads the short ones; a row with too many fields usually needs a quote added in the original.
No. The file is read in your browser and the formatted version is a new download. Nothing is uploaded.
It adds spaces so the columns line up when the file is opened in a text editor. That is handy for reading, but the spaces become part of the values for any program that imports the file, so leave it off for data you will process.
Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.