Find CSV datasets on GitHub

How to search GitHub for CSV datasets, what CSV-to-TSV conversion changes, and how to keep the data readable and usable after download, copying or sharing.

GitHub hosts a large number of datasets stored as comma-separated (CSV) and tab-separated (TSV) files. They sit alongside code, version history and documentation. That makes them easy to inspect and track, but no single catalog checks their quality or licensing. This review covers how to locate CSV datasets on GitHub, what happens when you convert between CSV and TSV, and how to judge whether a file will stay readable and usable for your purpose. No measurements, test results or repository-specific facts were supplied for this article, so the guidance relies on general, verifiable principles. Points that depend on a particular file or environment are marked as things to check.

Is a GitHub-hosted CSV suitable for your intended use?

GitHub works well when you want a dataset you can inspect before downloading, compare across versions and cite at a specific commit. CSV is the main benefit here. It is plain text, so almost any spreadsheet, database, scripting language or text editor can open it, and line-by-line differences show up clearly in version history.

The decisive tradeoff is that CSV carries no schema. It doesn't record column types, units, encoding, missing-value conventions or the meaning of each field. Those details live in the README, a data dictionary or nowhere at all. If a repository documents none of them, plan to infer them yourself or look elsewhere.

Plain, unconverted CSV is the better choice when you need to preserve the file exactly as published, for example for reproducibility, citation or comparison with later versions. Convert to TSV only when a destination handles tabs better than commas, and keep the original alongside the converted copy.

Where to look and what to search for

There are two practical routes: search for files directly, or search for repositories that describe themselves as datasets. The search qualifiers below are part of GitHub's documented search syntax. Some search features may require you to be signed in, and the search interface changes over time, so confirm the current syntax in GitHub's search documentation if a query returns nothing unexpected.

# Find files by extension (code search)
path:*.csv climate
path:*.tsv gene expression
language:CSV population

# Find repositories that present themselves as datasets
topic:dataset
topic:open-data transport
"awesome datasets" in:readme

Searching for files tends to surface CSVs stored inside software projects, such as test fixtures, sample data and generated output. Searching repositories by topic, or for curated lists (often titled with "awesome" plus a subject), tends to surface intentional, documented collections. If your search doesn't return what you expect, try related terms such as "open data", "public datasets", "tabular data" or "data package". Some repositories ship a metadata file describing their tables.

Once you open a repository, check a few things before you rely on a file:

  • A license file or license statement that covers the data, not only the code.
  • A README or data dictionary explaining columns, units and missing-value markers.
  • Recent commit history, if you need current data, or a tagged release, if you need a stable version.
  • Whether the files are stored with Git Large File Storage. In that case the repository holds a small pointer file, and the actual data must be fetched separately.
  • Whether the CSV is a source file or output generated by a script in the same repository. If it is generated, the script may tell you more than the file does.

What CSV-to-TSV conversion actually changes

Converting CSV to TSV changes stored characters, not just appearance. The field separator changes from a comma to a tab character. Quoting may also change, because a field that needed quotes in CSV (because it contained a comma) may no longer need them in TSV. The reverse also applies: a field containing a literal tab needs quoting or escaping in TSV. The values themselves should not change, and you can verify a conversion on that basis.

The example below shows a field containing a comma. In the CSV it must be quoted. In the TSV, written with a typical CSV library set to use tabs, the quotes are dropped because the comma is no longer a separator. The gaps in the TSV lines are single tab characters.

CSV input:
id,name,city
1,"Smith, Jo",Austin
2,Lee,Denver

TSV output:
id	name	city
1	Smith, Jo	Austin
2	Lee	Denver

A naive find-and-replace of commas with tabs would have split "Smith, Jo" into two fields and left stray quote marks. Use a parser that understands quoting rather than text substitution. Python's standard csv module, for example, reads quoted CSV fields and writes them out with a different delimiter:

import csv

with open("input.csv", newline="", encoding="utf-8") as src, \
     open("output.tsv", "w", newline="", encoding="utf-8") as dst:
    reader = csv.reader(src)
    writer = csv.writer(dst, delimiter="\t")
    for row in reader:
        writer.writerow(row)

"Format" can mean two different things here. GitHub's file view shows CSV and TSV files as an interactive table, but that is presentation only. The stored file is unchanged, and downloading it (for example through the Raw view) gives you the original delimited text.

Will the data stay readable and usable after copying or sharing?

Most problems with GitHub CSVs come from what happens after download, not from the file itself. The risks below are general behaviors of delimited text and common spreadsheet software. Whether a particular file is affected depends on its contents and the program you open it in, so test with your own file and destination.

Risk | What can happen | What to check
Encoding | Accented letters or non-Latin scripts display as garbled characters if the file is read with the wrong encoding | Confirm the encoding (often UTF-8) and whether a byte-order mark is present
Type guessing | Spreadsheets may strip leading zeros from codes, or reinterpret strings as dates or numbers | Import columns as text rather than opening the file directly
Regional separators | Some locales expect semicolons or use a comma as the decimal mark, which can merge or split columns | Use an import dialog that lets you set the delimiter explicitly
Embedded line breaks | Quoted fields containing newlines can look like extra rows to line-based tools | Count records with a CSV parser, not by counting lines
Large files | Previews may be truncated or unavailable, and spreadsheets may not open very large files | Check the row count against the README and use a database or script instead
Copy and paste | Copying from a rendered table can lose quoting or merge cells | Download the raw file instead of copying from a preview

Accessibility depends on the destination. A delimited file has no captions, header markup or descriptions of its own. If the data is meant for people rather than programs, publish it as a properly marked-up table, or include a plain-language summary of what the columns contain. How a screen reader handles a raw CSV opened in a text editor or a spreadsheet depends on the specific software, and no scoped test results were supplied here. Check with the assistive technology your audience actually uses rather than assuming one program's behavior applies to all.

Searchability and editing also favor keeping a plain, well-documented CSV. Text search, version comparison and editing all work directly on the delimited text. A converted or reformatted copy is useful for a specific tool, but the original file should remain the reference version you share or cite.

Gaps to keep in mind

No evidence was supplied about specific repositories, dataset quality, file size limits, rendering limits or how particular tools behave. Check those points against GitHub's current documentation and against the files you actually plan to use. Licensing and data provenance in particular can only be confirmed from each repository's own statements.