Connect any database. Ask in plain English.

Try free
← Blog

Free Datasets for Data Analysis: 24 Sources With Format, Size, License and Login Checked (2026)

24 places to get free datasets, grouped by what you want to analyze, each with its format, a real file size, its license and whether it needs a login, from the sources' own pages. 19 of 20 sources we tried sent us a file with no account, and we drew a sample chart from World Bank, NYC Open Data and USGS downloads, with the code.

Fastero Dev TeamFastero Dev Team2026-12-02

We read the download, license and access pages of 24 free dataset sources on 2 December 2026 and requested a real file from 20 of them with no account, key or cookie: 19 sent it, and Alpha Vantage asked for its free key. Of the rest, MIMIC-IV and BigQuery need an account, data.gov links to other agencies' files, and TPC-H is generated on your machine. Then we downloaded three small files, from the World Bank, NYC Open Data and the US Geological Survey, and drew a chart from each in pandas.

The short answer: for practice, start with Kaggle, the UCI Machine Learning Repository or TidyTuesday's weekly CSVs. For business-like data, UCI's Online Retail II holds 1,067,371 real transactions under CC BY 4.0, and DuckDB generates the TPC-H sales tables, 6 million order lines, in seconds. For official statistics, the World Bank, Eurostat and NYC Open Data all sent us files with no account, and data.gov lists 534,547 US datasets. US government data is public domain; health data has the strictest terms. Free to download doesn't mean free to use, so read each license. Checked 2 December 2026.

Fastero

Connect your database. Ask questions. Get dashboards.

Postgres, BigQuery, Snowflake, and 10+ sources — live-connected, AI-powered, no dashboard builder learning curve.

Try free →

The best free dataset sources, by what you need

You want Start with Format License Login
Practice data Kaggle Datasets Mostly CSV Per dataset; 87 of the top 200 are CC0 No, for downloads
A new dataset every week TidyTuesday CSV on GitHub Repo CC0; data per source No
Real business transactions UCI Online Retail II Excel, 43.5 MB CC BY 4.0 No
Sales tables for SQL practice TPC-H in DuckDB Generated tables You generate it No
Country statistics World Bank Open Data CSV zip, JSON API CC BY 4.0 No
City data NYC Open Data CSV, JSON, API No restrictions on use No
Public finance US Treasury Fiscal Data CSV, JSON, XML Free, commercial use allowed No
Health WHO Global Health Observatory JSON API Public-health use, credit WHO No
Maps Natural Earth Shapefile, GeoPackage Public domain No
Machine learning Hugging Face Datasets Parquet, CSV, JSON Per dataset Only gated ones

Free datasets for practice

Source Format Typical size License Login
Kaggle Datasets CSV, JSON, SQLite, archives Median 3.2 MB in the top 200; up to 200 GB Set by each uploader No, via CLI or kagglehub
UCI Machine Learning Repository Zipped files; ucimlrepo for Python Iris 3.7 KB; Online Retail II 43.5 MB Per dataset; both of those CC BY 4.0 No
TidyTuesday CSV on GitHub One 2026 file: 7.5 MB Repo CC0; data from each week's source No
Our World in Data CSV per chart, JSON metadata Life expectancy: 605 KB CC BY for its own data No

Kaggle's quality varies the most; our Kaggle datasets guide covers its filters, usability score and three download routes. UCI's repository dates from 1987 and holds many classic teaching datasets. TidyTuesday posts a new real-world dataset every Monday. Our World in Data is the quickest route to a clean country-by-year table, but "Most of the data on Our World in Data comes from third-party providers", whose own licenses apply.

Business-like datasets for SQL and dashboards

Source Format Typical size License Login
UCI Online Retail II Excel (.xlsx) 43.5 MB, 1,067,371 rows CC BY 4.0 No
Chinook sample database SQLite file, SQL for 6 databases 1.1 MB SQLite MIT-style No
TPC-H via DuckDB Generated in DuckDB 6,001,215 order lines at scale 1 You generate it No

Online Retail II is the only one with real customers: every transaction of a UK online gift retailer from December 2009 to December 2011. Chinook is a music store's database (artists, albums, tracks, invoices, customers) with invented people; its README says "Sales information is auto generated using random data for a four year period." It suits the joins in our SQL query examples.

TPC-H is a benchmark's schema of orders, line items, customers, suppliers and parts, and DuckDB builds it in one statement:

CALL dbgen(sf = 1);

With DuckDB 2.0.1 on our laptop that made 8 tables, with 6,001,215 line items and 1,500,000 orders, in 2.1 to 6.2 seconds over two runs, peaking at 1.6 GB of memory. DuckDB's docs note "small differences from the official TPC-H specification".

Government and economic data

Source Format Typical size License Login
Data.gov A catalog of agencies' data and APIs 534,547 datasets listed Federal works public domain; check each No
World Bank Open Data CSV zip, JSON API One indicator, every country: 50 KB zip CC BY 4.0 unless labeled otherwise No
Eurostat SDMX-CSV, TSV, JSON-stat via API One table query: a few KB Reuse allowed with credit No
NYC Open Data CSV, JSON via the Socrata API Our 2025 crash extract: 4.4 MB No restrictions on use No; an app token raises limits

US federal data is the least restrictive here: data.gov's licensing guidance says "Government works are by default in the U.S. Public Domain." The World Bank's API covers nearly 16,000 indicators and needs no key. Eurostat allows reuse "for commercial or non-commercial purposes" if you credit it, except for data it marks as someone else's, such as figures for the United States, Japan or China.

New York City's Open Data Law requires datasets to be published "without any registration requirement, license requirement or restrictions on their use". One trap in its API: it returns 1,000 rows unless you ask for more.

Free financial datasets

Source Format Typical size License Login
US Treasury Fiscal Data CSV, JSON, XML via API Pages of rows you choose Free, commercial use allowed No account or token
Alpha Vantage JSON, CSV via API 25 requests a day Its terms of service Free API key

The Treasury's data on debt, interest, revenue and spending is "free, without restriction, and available to copy, adapt, redistribute, or otherwise use for non-commercial or commercial purposes". For share prices, Alpha Vantage's free tier allows "25 API requests per day". The popular yfinance library is unofficial: its README says Yahoo's API is "intended for personal use only". FRED, the St. Louis Fed's economic series, and the SEC's EDGAR filings refused our automated requests, so we left them out rather than describe their terms from memory.

Health datasets

Source Format Typical size License Login
WHO Global Health Observatory JSON via an OData API One indicator at a time WHO terms: public-health use, with credit No
MIMIC-IV (PhysioNet) Deidentified hospital tables 364,627 patients (v3.0) PhysioNet Credentialed Health Data License Credentialed account, training, signed agreement

Health data has the tightest terms in this list. The WHO grants use "for public health purposes", asks for credit in a set format, forbids using the data to promote a commercial product, and wants permission for changes beyond restyling a table. MIMIC-IV, from a Boston hospital's emergency department and intensive care units, goes only to credentialed users who complete research-ethics training and sign a data use agreement.

Sports datasets

Source Format Typical size License Login
Lahman Baseball Database CSV, SQL, Access Seasons 1871 to 2025 CC BY-SA 3.0 No
nflverse CSV, Parquet, RDS on GitHub Game results: 2.2 MB CC BY 4.0 No
International football results CSV on GitHub and Kaggle 7.1 MB, 50,093 matches CC0 No

Lahman's CSV files cover major-league batting and pitching back to 1871. nflverse publishes NFL schedules, results and play-by-play files as GitHub releases. The football results run from 1872 to November 2026, and our Kaggle datasets guide charts them.

Geospatial datasets

Source Format Typical size License Login
Natural Earth Shapefile, SQLite, GeoPackage Countries at 1:110m: 215 KB zip; all vector themes: 576 MB Public domain No
OpenStreetMap via Geofabrik .osm.pbf, .gpkg.zip Antarctica 31.6 MB to Asia 15.4 GB ODbL: credit, share-alike No
USGS earthquake feeds CSV and other feeds 30 days, every quake: 1.9 MB Public domain No

For country outlines, use Natural Earth: "No permission is needed to use Natural Earth. Crediting the authors is unnecessary." Geofabrik's OpenStreetMap extracts are "normally updated every day", and anything you publish from them must credit OpenStreetMap and keep the Open Database License.

Datasets for machine learning and very large data

Source Format Typical size License Login
Hugging Face Datasets Parquet, CSV, JSON Lines, Arrow Iris CSV: 5 KB; varies widely Per dataset Only for gated datasets
Registry of Open Data on AWS Files in public S3 buckets Varies by dataset Per dataset, e.g. CC0 for NOAA None for some
BigQuery public datasets SQL tables in BigQuery Up to multi-terabyte Per dataset Google account, no card

A gated Hugging Face dataset asks you to share your username and email address with its authors before you download. The AWS registry's front page listed 1,481 datasets on 2 December 2026, and some, such as NOAA's daily weather records, say "No AWS account required". On BigQuery, "The first 1 TB per month is free", and the sandbox needs no credit card, though tables you create there expire after 60 days.

Connect any database. Ask in plain English.

Start free →

Sample charts: what an afternoon with three of them gives you

We downloaded each file three times with no account. Median times: 0.13 seconds for the World Bank zip (50 KB), 0.15 seconds for the USGS CSV (1.9 MB) and 11.9 seconds for the NYC extract (4.4 MB), though one later run took 63 seconds. The code is what we ran, with Python 3.14.3 and pandas 3.1.2, followed by its output.

World Bank: internet use by income group

import io, urllib.request, zipfile
import pandas as pd
 
url = "https://api.worldbank.org/v2/en/indicator/IT.NET.USER.ZS?downloadformat=csv"
z = zipfile.ZipFile(io.BytesIO(urllib.request.urlopen(url).read()))
csv_name = next(n for n in z.namelist() if n.startswith("API_"))
wb = pd.read_csv(z.open(csv_name), skiprows=4)  # 4 lines of notes sit above the header
groups = wb.set_index("Country Code").loc[["HIC", "UMC", "WLD", "LMC", "LIC"], "2005":"2024"]
print(wb.shape)
print(groups[["2005", "2015", "2024"]].round(1))
(266, 71)
              2005  2015  2024
Country Code
HIC           52.9  78.3  93.0
UMC           10.2  47.9  86.9
WLD           15.6  39.9  71.2
LMC            3.6  19.5  58.9
LIC            1.0   7.9  22.5

One row per country and group, one column per year since 1960, and an empty last column from a trailing comma. The story: the world went from 16% online in 2005 to 71% in 2024, and low-income countries are about where the world was in 2008.

Line chart of the share of people using the internet from 2005 to 2024 by World Bank income group: high income 53% to 93%, upper middle income 10% to 87%, world 16% to 71%, lower middle income 4% to 59% and low income 1% to 22%

Internet users as a share of population, World Development Indicators, CC BY 4.0, data updated 11 November 2026. 2025 is left out: only 10 of 217 economies have a 2025 figure yet.

NYC Open Data: crashes by hour of day

from urllib.parse import urlencode
 
params = {
    "$select": "crash_date,crash_time,borough,number_of_persons_injured,number_of_persons_killed",
    "$where": "crash_date between '2025-01-01T00:00:00' and '2025-12-31T23:59:59'",
    "$limit": 500000,  # without it, the API returns 1,000 rows
}
ny = pd.read_csv("https://data.cityofnewyork.us/resource/h9gi-nx95.csv?" + urlencode(params))
hour = ny.crash_time.str.split(":").str[0].astype(int)
print(len(ny), "crashes,", ny.number_of_persons_injured.sum(), "injured,",
      ny.number_of_persons_killed.sum(), "killed")
print(hour.value_counts().head(3).to_dict())
print((ny.crash_time == "00:00").sum(), "logged at exactly 00:00")
85559 crashes, 49640 injured, 229 killed
{17: 5323, 16: 5289, 15: 5099}
1740 logged at exactly 00:00

Crashes peak between 3 pm and 6 pm, and the quietest hour is 3 am, with 1,491. Loading it also shows a quirk: 1,740 crashes are logged at exactly midnight, 43% of that hour, which looks like a default value rather than a real time. About 8% of rows have no borough, and the city warns that "the data is preliminary and subject to change".

Bar chart of New York City motor vehicle crashes in 2025 by hour of day: 1,491 at 3 am rising to 4,485 at 8 am and a peak of 5,323 at 5 pm, with the midnight bar of 4,069 including 1,740 crashes logged at exactly 00:00

Police-reported crashes in 2025 from NYC Open Data's Motor Vehicle Collisions - Crashes, downloaded 2 December 2026, free to use under the city's Open Data Law.

USGS: earthquakes by magnitude

us = pd.read_csv("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv",
                 parse_dates=["time"])
eq = us[us.type == "earthquake"]
band = pd.cut(eq.mag, [-10, 1, 2, 3, 4, 5, 6, 10], right=False)
network = eq.net.where(eq.net == "us", "regional")
print(len(us), "events,", len(eq), "earthquakes")
print(pd.crosstab(band, network))
9651 events, 9347 earthquakes
net       regional   us
mag
[-10, 1)      2262    0
[1, 2)        3843    8
[2, 3)        1832   86
[3, 4)         316   95
[4, 5)          44  703
[5, 6)           2  142
[6, 10)          0   13

The feed also lists 304 quarry blasts, explosions and other events, so filter on the type column. Then a surprise: fewer quakes between magnitude 3 and 4 than between 4 and 5. That's coverage, not geology. Of the 8,031 quakes below magnitude 3, 7,937 came from regional networks such as Alaska's and California's, while 858 of the 904 at magnitude 4 or more came from USGS's worldwide network. Elsewhere, the feed mostly lists magnitude 4 and up.

Stacked bar chart of 9,346 earthquakes in the USGS 30-day feed by magnitude band: 2,262 below magnitude 1, 3,851 at 1 to 2 and 1,918 at 2 to 3, almost all from regional networks, then 411 at 3 to 4, and 747 at 4 to 5, 144 at 5 to 6 and 13 at 6 or more, almost all from the USGS worldwide network

Earthquakes from 2 November to 2 December 2026 in the USGS all_month.csv feed, downloaded 2 December 2026, public domain.

For bigger files, see our guides to reading a large CSV in pandas and pandas groupby. To run this code with nothing installed, see where to run a Jupyter notebook online.

Where Fastero fits

Fastero is an AI and data platform where people and AI agents work together on a team's data. Every new free account comes with an invented sample to practice on straight away: a sales table of made-up orders you can query in the SQL editor (DuckDB SQL), plus a sample dashboard, notebook and Streamlit app built on it. The numbers are invented, so it's for learning the tools, not for findings.

With a real dataset from this list:

  • Upload the CSV or Excel file to a project, up to 100 MB a file within the Free plan's 500 MB of storage, and query it with SQL, chart it, or read it from a notebook by path. The 43.5 MB Online Retail II workbook fits.
  • Ask the AI chat to build a dashboard. It writes and runs the SQL, from up to 10 files at a time and 50 MB each, paid from the $20 of AI usage every account starts with.
  • Keep it fresh. Saved queries and dashboards refresh on a schedule, and viewers sign in for free.

To bring a dataset from this list into Fastero, download the file and upload it, or connect the database or Amazon S3 bucket where you already keep it. The Free plan has no end date and needs no card; plans are on the pricing page.

A Sales overview dashboard in Fastero showing revenue in the latest month, orders, average order value, cancellation rate and a monthly revenue line from 2024 to 2026

A sales dashboard in Fastero, on a demo workspace's invented data.

FAQ

Where can I find free datasets for data analysis?

For practice, Kaggle, the UCI Machine Learning Repository and TidyTuesday. For official statistics, data.gov, the World Bank, Eurostat and city portals such as NYC Open Data. For maps, Natural Earth and OpenStreetMap. Of the 20 sources we tested, 19 sent us a file with no account.

Are free datasets free to use commercially?

Not always. US federal data, CC0 data and Natural Earth are public domain, CC BY and the World Bank allow commercial use with credit, and the Treasury sets no conditions. Non-commercial licenses, the WHO's public-health terms and Yahoo's personal-use terms do not, so check each dataset's license, not just the site's.

What is a good dataset for a data analysis portfolio?

One with real mess and a question to answer, such as UCI's Online Retail II or NYC's crash data, with its default timestamps and missing boroughs. Cleaning data shows an employer more than charting tidy data does.

Do I need an account to download datasets?

Usually not. Of the 20 sources we tried, only Alpha Vantage refused without its free key. MIMIC-IV needs a credentialed account and BigQuery a Google account. NYC Open Data works without a token but gives one higher rate limits.

Where can I get free sales data to practice SQL?

UCI's Online Retail II for real transactions, the Chinook database for a small store schema, or TPC-H generated in DuckDB for 6 million order lines. A new Fastero account also includes an invented sales table you can query in its SQL editor straight away.

Sources

Read on 2 December 2026, when we also requested a file from each source we tested.


Try Fastero free: practice on the invented sales sample straight away, then upload a free dataset and ask for a dashboard. No credit card required.

Ready to try it yourself?

Connect your database, ask questions in plain English, and get live dashboards — in under 2 minutes. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.

Keep reading

Related articles

2026-12-03

Pandas Cheat Sheet: 36 Snippets Run on pandas 3.1.2, and the apply That Was 1,600x Slower (2026)

The pandas you keep looking up, run on pandas 3.1.2 against 4,734 invented orders with the output it printed: reading and writing, loc, iloc and query, groupby with named aggregation, pivot_table, merge, dates, strings, missing values and the code pandas 3 broke. A row-wise apply took 7.9 seconds on 473,400 rows where np.where took 4.8 ms, and pandas 3's string dtype held the sample in 618 KB instead of 1,755 KB.

pandaspythondata-analysis

2026-12-03

Iris Dataset: 150 Flowers, 5 Ways to Load It, and the 2 Rows That Differ Between Copies (2026)

The iris dataset is 150 flowers, 50 from each of three species, with four measurements in centimeters. We downloaded six copies and compared them with Fisher's 1936 table: UCI's iris.data and Kaggle's Iris Species differ in rows 35 and 38, while scikit-learn, seaborn, R and UCI's bezdekIris.data match it. Loading code for pandas, scikit-learn, seaborn, DuckDB and R, summary statistics, and baseline models that score 94% to 98% in cross-validation.

datasetsmachine-learningscikit-learn

2026-12-02

Kaggle Datasets: Find a Good One, Download It 3 Ways, and the 200 GB Limits (2026)

Public Kaggle datasets download with no account: kagglehub fetched a 7.1 MB public-domain dataset in 1.8 seconds, signed out, on 2 December 2026. How to filter by file type, license and usability, the website, CLI and kagglehub routes with real output, Kaggle's 200 GB and 50-file limits, and the licenses on the 200 most-voted datasets (87 are CC0, 20 forbid commercial use).

kaggledatasetspython