🌐 English

Home › Guides

Handling Semicolon- and Tab-Separated CSV Files

The name CSV suggests commas, but plenty of real files use semicolons or tabs. Pick the wrong separator and everything lands in a single column. This guide shows how to spot the separator and read the file correctly.

Why separators differ

CSV stands for comma-separated values, yet there is no single strict standard. In many regions the decimal mark is a comma (3,14), so exporting programs there use a semicolon to separate columns and keep number commas from clashing with column breaks. A CSV exported with such regional settings is semicolon-separated.

Tab-separated files (TSV) are common when you copy a table from a spreadsheet or export from a database. For data full of commas in free text, a tab or a pipe character can be a safer choice.

How to find the separator

Open the file in a plain text editor and look at the first two or three lines. In the header row, check which character repeats between column names. A tab is hard to see, but it shows as a wide gap between words.

If you are not sure, count the candidate characters line by line. The character that appears the same number of times on every line is very likely the separator.

Symptoms of a wrong guess

A wrong separator usually produces one of two symptoms. Either everything sits in the first column as one long string, or columns split in odd places because of commas inside text.

The second case happens even with proper quoting if the chosen separator is wrong. If the number of cells differs from line to line, the separator or the quoting rule does not match the file.

Reading them with this site's tools

The CSV viewer and the CSV to JSON converter let you choose the separator instead of assuming a comma. After loading a file, check that the table splits into the right columns and switch the separator until it looks correct.

Once you find the setting that gives a clean table, convert to JSON with the same choice. Everything runs in your browser and the file never leaves your device.

Agreements when you share files

When you send a CSV to someone, mention the separator and the character encoding (UTF-8) so they do not have to guess. Standardizing on one choice inside your team saves time.

If you plan to merge several files, make their separators identical first. Joining files that use different separators shifts every column out of place.