Chuyển đổi dữ liệu phân tách bằng tab hoặc dấu chấm phẩy
- Chọn
- Chuyển đổi
Even called CSV, the separator is not always a comma. There is data separated by tabs or semicolons. In Convert CSV to Excel (.xlsx) you choose the "Delimiter" and split into columns correctly.
Các bước
- Choose a file with "Choose a CSV file", or paste into "CSV content".
- Choose the type under "Delimiter": "Detect automatically", "Comma", "Tab" or "Semicolon".
- Press "Make Excel and save".
The three delimiters
- Comma (,): ordinary CSV.
- Tab: data copied from Excel and the like. Also called TSV.
- Semicolon (;): CSV used in places like Europe, mostly in countries using a comma as the decimal separator.
When automatic detection is enough
It looks at the first line of the data and detects which delimiter is used. In most cases it detects correctly.
When to choose manually
- Automatic detection didn't split columns correctly
- The data contains several kinds of delimiters
- You want to specify it for certain
If the delimiter doesn't match
The whole line becomes one column and doesn't split cleanly. Look at the resulting columns, and if odd, change the delimiter and try again.
When items contain commas
If addresses and the like contain commas, they are handled correctly as long as the items are enclosed in double quotes. If not enclosed, it's safer to output again as tab-separated.
Phù hợp với
- Semicolon-separated CSVs output from overseas systems
- Tab-separated data copied from Excel
- Tab-separated data output from databases
Ví dụ
An order CSV output from an overseas shop opened as a single column. It was semicolon-separated, so converting with the delimiter set to "Semicolon" split it into the right columns.
Common stumbling blocks
- Only some columns shift: delimiters inside items aren't enclosed in quotes.
- Decimal point is a comma: in semicolon-separated CSV where decimals use commas, numbers may not be treated as values.
Frequently asked questions
Can other delimiters (such as spaces) be used?
This tool supports commas, tabs and semicolons.
Tóm tắt
If unsure, "Detect automatically". If columns shift, choose the delimiter manually.
Dùng “Chuyển CSV sang Excel (.xlsx)” (miễn phí)Công cụ hay dùng cùng
- Chuyển Excel sang CSV hoặc JSON: Chuyển một trang tính Excel sang CSV, TSV hoặc JSON.
- Chuyển đổi CSV và JSON: Chuyển đổi giữa CSV và JSON ngay lập tức.
- Xóa dòng trùng lặp và sắp xếp danh sách: Xóa các dòng trùng lặp và sắp xếp chúng.
Nếu hướng dẫn này hữu ích, một khoản ủng hộ nhỏ sẽ là niềm động viên lớn.
Gửi tiền ủng hộ (¥300)Tặng quà (danh sách mong muốn Amazon)