Common Crawl is a nonprofit organization and the open web archive it publishes: regular snapshots of billions of web pages, released free of charge in standardized file formats. In artificial intelligence, it is the single most important raw source of training data for large language models, because almost every major pretraining corpus of the last decade starts from its files.
The archive is not a ready-made dataset. It is unfiltered, noisy and multilingual, and it contains boilerplate, spam, duplicates and harmful content alongside high-quality prose. Its value for machine learning therefore depends on the filtering, deduplication and curation pipelines that researchers build on top of it.
How Common Crawl collects and publishes the web
Common Crawl runs a distributed crawler called CCBot that fetches publicly reachable pages, honors robots.txt directives, and stores the responses without login or paywall circumvention. Since 2008 the organization has released crawls at intervals of roughly one to two months, and each snapshot typically holds two to four billion pages and several hundred terabytes of compressed data.
The archive is hosted as a public dataset on Amazon S3 and can also be downloaded over HTTPS. Each crawl receives an identifier such as CC-MAIN-2024-10, which encodes the year and the week, so researchers can cite a specific snapshot and reproduce a corpus exactly.
Every crawl is published in three parallel file formats, plus indexes that let users locate individual captures without reading the whole archive. The table below summarizes what each format contains.
| Format | Content | Typical use in AI work |
|---|---|---|
| WARC | Raw HTTP requests and responses, including full HTML | Custom text extraction, multimodal datasets |
| WAT | JSON metadata: headers, links, page titles | Link graphs, URL selection, domain statistics |
| WET | Plain text extracted from HTML | Quick language modeling experiments |
| CDX index | URL lookup table pointing to WARC offsets | Retrieving specific pages or domains |
| Columnar index | Parquet tables of URLs, languages, MIME types | Large-scale filtering with SQL engines |
Why raw Common Crawl data needs heavy processing
Raw Common Crawl text is unsuitable for direct training, because most of a typical snapshot consists of navigation menus, cookie banners, product listings, machine-generated pages and near-duplicate content. Teams that train language models usually discard the large majority of documents before any token reaches the model.
Many pipelines also ignore the official WET files and re-extract text from WARC records with tools such as trafilatura or resiliparse, because better extraction preserves paragraph structure and removes boilerplate more reliably. The table below lists the standard processing stages and what each one removes.
| Stage | Method | What it removes |
|---|---|---|
| URL filtering | Blocklists of adult, spam and malware domains | Unsafe and low-value sites |
| Text extraction | HTML parsing with boilerplate removal | Menus, footers, scripts |
| Language identification | fastText or similar classifiers | Text outside target languages |
| Heuristic filters | Rules on length, symbols, repetition, stop words | Gibberish, lists, templates |
| Deduplication | Exact hashing and MinHash near-duplicate detection | Repeated and mirrored pages |
| Model-based quality filters | Classifiers or perplexity scores | Low-information or poorly written text |
| PII and toxicity handling | Pattern matching and classifiers | Emails, phone numbers, abusive content |
Each stage involves a trade-off between quality and diversity. Aggressive filters raise benchmark scores but can silently remove dialects, minority languages and informal registers, which makes filter design a question of data curation policy as much as engineering.
Datasets derived from Common Crawl
Most well-known open web corpora are curated subsets of Common Crawl, differing mainly in the number of snapshots used and the strictness of filtering. The original GPT-3 training mix, for example, gave filtered Common Crawl text about 60 percent of the sampling weight, with smaller, higher-quality sources weighted more heavily per token.
| Corpus | Main processing idea | Typical scale |
|---|---|---|
| C4 | One snapshot, strict heuristic rules, English only | About 750 GB of text |
| CCNet | Deduplication plus Wikipedia-trained perplexity scoring | Multilingual, many snapshots |
| RefinedWeb | Web-only data with strict filtering and deduplication | Trillions of tokens |
| RedPajama | Open reproduction of a published training mix | Trillions of tokens |
| Dolma | Documented, open pipeline with mixed sources | About three trillion tokens |
| FineWeb | Ablation-tested filters over many snapshots | About fifteen trillion tokens |
These corpora show that processing choices matter as much as raw volume. Two datasets built from the same snapshots can produce models with clearly different accuracy, which is why newer projects publish ablation studies that test each filter on small models before scaling up.
Practical use in training data pipelines
Teams use Common Crawl when they need broad coverage of written language at a scale that no licensed or hand-collected source can provide. It is rarely used alone: practical training mixes combine filtered web text with books, code, scientific papers and instruction datasets to balance breadth with quality.
Choosing how to use the archive depends on the goal, the budget and the target languages. The decision table below summarizes common situations.
| Situation | Recommended approach | Reason |
|---|---|---|
| Small research model | Start from an existing filtered corpus | Avoids petabyte-scale processing |
| New language model family | Build a custom pipeline over many snapshots | Full control over quality and mix |
| Low-resource language | Use WARC files with careful language identification | Official text extraction may miss scripts |
| Domain-specific model | Query the columnar index by domain or URL pattern | Retrieves relevant pages cheaply |
| Evaluation work | Check benchmarks against crawl contents | Detects test-set contamination |
Processing even one snapshot requires distributed computing, typically Apache Spark or similar frameworks running close to the S3 storage region to reduce data transfer costs.
Limitations, risks and legal questions
Common Crawl reflects the biases of the public web: English and a few large languages dominate, commercial sites are overrepresented, and some regions and communities are barely present. Models trained on it inherit these imbalances unless the training mix corrects them through deliberate rebalancing.
- Copyright and licensing remain contested, because the archive contains copyrighted pages published under many different terms; the organization distributes data under fair-use reasoning, and its terms of use do not grant rights to the underlying content.
- Personal data appears throughout the crawl, so privacy regulations such as the GDPR affect how derived datasets are stored and released.
- Benchmark contamination occurs when test sets published online end up in the training corpus and inflate evaluation scores.
- Opt-out coverage is incomplete, because robots.txt rules added after a crawl do not remove pages from earlier snapshots.
- Crawl coverage is shallow for many sites, so the archive is a sample of the web, not a complete copy.
Stripped to the essentials
Common Crawl is a giant free copy of the public web. A nonprofit visits billions of pages every month or two and saves what it finds. Anyone can download the files.
AI developers use it as raw material for teaching language models. The raw copy is messy. It contains ads, menus, spam and repeated pages. So teams clean it first and keep only the useful text. Think of it as a huge quarry: the stone is free, but the real work is cutting and sorting it.
Where it is applied
A university research group wants to train a seven-billion-parameter language model for Central European languages. Licensed text in those languages is scarce, so the team turns to Common Crawl as its main source. It selects twenty recent snapshots and pulls only WARC records from domains whose language tag matches the target languages.
The pipeline re-extracts text from HTML, runs language identification on each paragraph, removes pages with heavy repetition, and applies MinHash deduplication across all snapshots. A small quality classifier, trained on news and encyclopedia text, scores the remaining documents. Out of several billion candidate pages, fewer than one in ten survive the full process.
The final corpus of roughly 300 billion tokens is mixed with books and code. The team also checks its evaluation benchmarks against the corpus and removes overlapping passages. The resulting model performs clearly better in the target languages than a model trained on an unfiltered sample of the same size, which confirms that curation drove the improvement, not raw volume.