Skip to content
RAG Repo

C4 (Colossal Clean Crawled Corpus)

C4 was created for the T5 paper as a cleaned single-snapshot version of Common Crawl. The cleaning is rule-based: it removes pages without proper sentences, strips boilerplate and navigation text, drops lines that do not end in punctuation, and filters out offensive and placeholder content. What remains is fairly readable English prose.

It is a good middle ground between raw crawl data and heavily curated corpora: small enough to handle without a cluster, clean enough to use directly. The Allen Institute for AI (Allen AI) hosts it on HuggingFace as Parquet files, with language variants and a noisier `en.noclean` split alongside the standard one.

Access it by streaming with the `datasets` library or downloading individual shards. It remains a common baseline for pretraining experiments and a handy source of general English text for RAG.

web-crawlenglishpretrainingcleanedallen-ai

Related sources