Notes

C4

A raw crawl of the web is mostly not prose. It is navigation bars, cookie notices, placeholder text and stray code. C4 is what one month of that crawl looks like after someone decides, rule by rule, what counts as a usable English sentence.

How it was made

The Colossal Clean Crawled Corpus was built at Google for the T5 paper from a single April 2019 Common Crawl snapshot. The cleaning is a list of blunt heuristics: keep only lines ending in terminal punctuation, drop pages with fewer than five sentences, discard anything containing placeholder text, curly braces or a word from an obscenity blocklist, collapse three-sentence spans that appear more than once, and keep only text a language detector calls English with high confidence. Around 750 GB survives — on the order of 150 billion tokens.

Why it became a standard

C4 made web-scale pretraining reproducible. Anyone can download it from the Hugging Face hub or TensorFlow Datasets and get the same corpus the T5 models saw, which is rare for data at this size. Its 101-language sibling mC4 trained mT5 the same way, and C4 still appears as a component inside later mixtures such as RedPajama and Dolma.

What the filters cost
  • The obscenity blocklist strips out medical, legal and LGBTQ+ discussion along with the pornography it targets.
  • Dialects a language detector handles poorly, African-American English among them, are discarded at higher rates than standard written English.
  • Patent filings and news sites dominate the surviving text far more than a reader would guess.

Cleaning a corpus is never neutral — it is an editorial decision applied a billion times.

C4, the Colossal Clean Crawled Corpus, is roughly 750 GB of English web text distilled from a single 2019 Common Crawl snapshot by a set of blunt cleaning heuristics, built at Google to train T5. It matters because it made web-scale pretraining data reproducible and freely downloadable, so results could be compared across labs. Its filters also show that cleaning is editorial: whole topics and dialects disappear as a side effect.

Most of the internet is not worth reading. Menus, cookie warnings, half-broken pages, spam. C4 is what you get when you take one month of crawled web pages and throw away everything that does not look like proper English writing — pages that are too short, pages full of code, pages padded with placeholder text. What survives is still enormous: about 750 gigabytes of plain text, more than a person could read in a thousand lifetimes. It became a standard starter diet for teaching AI systems to write, partly because anyone can download exactly the same copy and compare their results fairly.