Common Crawl

On this page 7

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.

FormatContentTypical use in AI work
WARCRaw HTTP requests and responses, including full HTMLCustom text extraction, multimodal datasets
WATJSON metadata: headers, links, page titlesLink graphs, URL selection, domain statistics
WETPlain text extracted from HTMLQuick language modeling experiments
CDX indexURL lookup table pointing to WARC offsetsRetrieving specific pages or domains
Columnar indexParquet tables of URLs, languages, MIME typesLarge-scale filtering with SQL engines
File formats in each Common Crawl snapshot

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.

StageMethodWhat it removes
URL filteringBlocklists of adult, spam and malware domainsUnsafe and low-value sites
Text extractionHTML parsing with boilerplate removalMenus, footers, scripts
Language identificationfastText or similar classifiersText outside target languages
Heuristic filtersRules on length, symbols, repetition, stop wordsGibberish, lists, templates
DeduplicationExact hashing and MinHash near-duplicate detectionRepeated and mirrored pages
Model-based quality filtersClassifiers or perplexity scoresLow-information or poorly written text
PII and toxicity handlingPattern matching and classifiersEmails, phone numbers, abusive content
Typical processing stages for a web pretraining corpus

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.

CorpusMain processing ideaTypical scale
C4One snapshot, strict heuristic rules, English onlyAbout 750 GB of text
CCNetDeduplication plus Wikipedia-trained perplexity scoringMultilingual, many snapshots
RefinedWebWeb-only data with strict filtering and deduplicationTrillions of tokens
RedPajamaOpen reproduction of a published training mixTrillions of tokens
DolmaDocumented, open pipeline with mixed sourcesAbout three trillion tokens
FineWebAblation-tested filters over many snapshotsAbout fifteen trillion tokens
Selected corpora built from Common Crawl

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.

SituationRecommended approachReason
Small research modelStart from an existing filtered corpusAvoids petabyte-scale processing
New language model familyBuild a custom pipeline over many snapshotsFull control over quality and mix
Low-resource languageUse WARC files with careful language identificationOfficial text extraction may miss scripts
Domain-specific modelQuery the columnar index by domain or URL patternRetrieves relevant pages cheaply
Evaluation workCheck benchmarks against crawl contentsDetects test-set contamination
Choosing an approach to Common Crawl data

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.

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.