open-markdown / README.md
tamnd's picture
Publish 12 shards CC-MAIN-2026-12/32746–32773
4d83729 verified
---
license: odc-by
task_categories:
- text-generation
- feature-extraction
language:
- en
pretty_name: Open Markdown
size_categories:
- 1M<n<10M
tags:
- common-crawl
- web-crawl
- markdown
- text
configs:
- config_name: default
data_files:
- split: train
path: "data/**/*.parquet"
- config_name: CC-MAIN-2026-12
data_files:
- split: train
path: "data/CC-MAIN-2026-12/**/*.parquet"
---
# **Open Markdown**
> Clean markdown from the web, ready for training and retrieval
## What is it?
**Open Markdown** is a large-scale web text dataset built from [Common Crawl](https://commoncrawl.org). Common Crawl is a non-profit that crawls the web and freely provides its archives and datasets to the public — see [their latest crawl announcement](https://commoncrawl.org/blog/march-2026-crawl-archive-now-available) for details on the source data. Every page goes through a pipeline that extracts the main content from raw HTML, converts it to clean Markdown, and packages the result into Parquet files with useful WARC metadata for traceability.
The dataset currently includes crawl **CC-MAIN-2026-12** with **563,524,727 documents across 32658 shards**. Processed 73.0 TB of raw HTML into 4.7 TB of clean Markdown — a **96.9% reduction**. We plan to add more snapshots over time.
### Live Progress
Processing at **60.6 shards/hour** — 32,658 of 100,000 done (**32.66%**)
Estimated completion: **May 21, 2026** (46 days)
**Current server:** 6 CPU cores, 12 GB RAM (6.6 GB available), 59 GB disk free
**Memory per session:** avg 578 MB, peak 799 MB (measured via VmRSS)
**With 10 identical servers:** 606 shards/hour → April 9, 2026 (5 days)
**Open Markdown** is released under the **Open Data Commons Attribution License (ODC-By) v1.0**, the same license used by Common Crawl.
## What is being released?
Each Common Crawl WARC file (~1 GB of compressed HTML) becomes one Parquet shard. The shards live under a crawl-specific directory so multiple snapshots can coexist:
```
data/
CC-MAIN-2026-12/
00/
00/
000000.parquet
000001.parquet
...
01/
000100.parquet
...
01/
...
```
Every row in a Parquet file is one web page. Each row includes the `warc_record_id` and `warc_refers_to` fields parsed from the original WARC headers, so you can trace any document back to its source record. We also store `html_length` and `markdown_length` to measure the compression from raw HTML to clean markdown.
## How to download and use Open Markdown
### Using `datasets`
```python
from datasets import load_dataset
# stream the entire dataset
ds = load_dataset("open-index/open-markdown", name="CC-MAIN-2026-12", split="train", streaming=True)
for doc in ds:
print(doc["url"], len(doc["markdown"]))
# load a single shard into memory
ds = load_dataset(
"open-index/open-markdown",
data_files="data/CC-MAIN-2026-12/00/00/000000.parquet",
split="train",
)
```
### Using `huggingface_hub`
```python
from huggingface_hub import snapshot_download
folder = snapshot_download(
"open-index/open-markdown",
repo_type="dataset",
local_dir="./open-index/",
allow_patterns="data/CC-MAIN-2026-12/**/*.parquet",
)
```
For faster downloads, install `pip install huggingface_hub[hf_transfer]` and set `HF_HUB_ENABLE_HF_TRANSFER=1`.
### Using DuckDB
```sql
SELECT url, host, markdown_length
FROM read_parquet('hf://datasets/open-index/open-markdown/data/CC-MAIN-2026-12/**/*.parquet')
WHERE host = 'en.wikipedia.org'
LIMIT 10;
```
# Dataset card for Open Markdown
## Dataset Description
- **Homepage and Repository:** [https://huggingface.co/datasets/open-index/open-markdown](https://huggingface.co/datasets/open-index/open-markdown)
- **Point of Contact:** please create a discussion on the Community tab
- **License:** Open Data Commons Attribution License (ODC-By) v1.0
## Dataset Structure
### Data Instance
The following is an example row from the dataset:
```json
{
"doc_id": "6aaa5be7-a917-5105-aa60-e39ea1d087fc",
"url": "https://example.com/article/interesting-topic",
"host": "example.com",
"crawl_date": "2026-02-06T18:14:58Z",
"warc_record_id": "<urn:uuid:a1b2c3d4-e5f6-7890-abcd-ef1234567890>",
"warc_refers_to": "<urn:uuid:f9e8d7c6-b5a4-3210-fedc-ba0987654321>",
"html_length": 48210,
"markdown_length": 3847,
"markdown": "# Interesting Topic\n\nThis is the main content of the page..."
}
```
### Data Fields
| Column | Type | Description |
|---|---|---|
| `doc_id` | string | Deterministic UUID v5 derived from the canonical URL: `doc_id = UUID5(NamespaceURL, url)` — identical URLs always produce the same `doc_id` across crawls |
| `url` | string | Original URL of the crawled page |
| `host` | string | Lowercase hostname extracted from the URL |
| `crawl_date` | string | RFC 3339 timestamp from the WARC record |
| `warc_record_id` | string | Full WARC-Record-ID of this conversion record (`<urn:uuid:...>`) |
| `warc_refers_to` | string | WARC-Record-ID of the original HTTP response this was converted from |
| `html_length` | int64 | Byte length of the original HTML body before conversion |
| `markdown_length` | int64 | Byte length of the converted markdown body |
| `markdown` | string | Clean markdown content extracted from the page |
### Data Splits
The default subset includes all available data across all crawl snapshots. You can also load a specific crawl by using its ID as the config name (e.g. `CC-MAIN-2026-12`).
## Dataset Creation
### Curation Rationale
Most open web datasets either release raw text without structure or keep the HTML and leave parsing to the user. **Open Markdown** sits in between: it converts every page to Markdown so the content is immediately usable for training, while preserving key WARC identifiers (`warc_record_id`, `warc_refers_to`) so you can always trace back to the source record.
### Source Data
The source data consists of web pages crawled by the [Common Crawl](https://commoncrawl.org) foundation. Common Crawl archives billions of pages across the public web and makes the raw WARC files freely available on Amazon S3.
### Data Processing Steps
The processing pipeline runs as a single-pass direct conversion:
1. **Download** raw .warc.gz files from Common Crawl S3 (each file is roughly 1 GB compressed)
2. **Filter** to keep only HTTP 200 responses with a text/html content type, discarding images, scripts, redirects, and error pages
3. **Convert** HTML to clean Markdown using a lightweight tokenizer-based extractor that strips tags, scripts, styles, navigation, and boilerplate — keeping only the main content
4. **Export** directly to Apache Parquet with Zstd compression, 100,000 rows per row group
No intermediate files are created — the pipeline streams from compressed WARC through conversion directly into Parquet. Pages that produce empty conversions are dropped.
### Compression Ratios
Numbers below are actual measurements summed across all 32658 files of CC-MAIN-2026-12 (563,524,727 pages total), projected to the full crawl of 100,000 WARC files.
| Stage | 32658 files (measured) | 100,000 files (projected) | Reduction |
|---|---|---|---|
| Raw WARC (.warc.gz, downloaded) | ~25.9 TB | ~79.2 TB | — |
| HTML extracted (uncompressed) | 73.0 TB | ~223.4 TB | — |
| Markdown (clean text) | 4.7 TB | ~6.8 TB | **-96.9%** vs HTML |
| Final Parquet (Zstd) | 1.5 TB | ~4.5 TB | **-68.9%** vs markdown |
The big win is HTML → Markdown conversion: the tokenizer strips all tags, scripts, styles, navigation, and ads, keeping only the main content. This cuts 73.0 TB of uncompressed HTML down to 4.7 TB of markdown — a **96.9% reduction**. Parquet with Zstd then compresses the markdown a further 68.9%.
End to end: ~25.9 TB of raw gzipped WARCs becomes **1.5 TB of Parquet** — a **94.3% total reduction** — containing 563,524,727 clean markdown documents.
### Processing Times
Pipeline timings across 32658 shards of CC-MAIN-2026-12:
```
Download (raw WARC) █████████░░░░░░░░░░░░░░░ 289h 15m 10s
Convert (HTML → Markdown → Parquet) ████████████████████████ 694h 42m 58s
Publish (HuggingFace) █████░░░░░░░░░░░░░░░░░░░ 146h 46m 42s
```
### Dataset Charts
![Total size: HTML vs Markdown vs Parquet](charts/totals_chart.png)
![Pipeline stage durations](charts/timing_chart.png)
### Personal and Sensitive Information
No additional PII filtering is applied beyond what Common Crawl provides. As the dataset is sourced from the public web, it is likely that some personally identifiable information is present. If you find your own PII in the dataset and would like it removed, please open an issue on the repository.
## Considerations for Using the Data
### Social Impact
By releasing both the dataset and the full processing pipeline, we aim to lower the barrier to training and evaluating language models on high quality web data. Researchers and practitioners who cannot afford to run their own Common Crawl processing pipelines can use **Open Markdown** directly.
### Discussion of Biases
**Open Markdown** inherits the biases present in Common Crawl and the public web at large. The trafilatura extraction step favors article-like pages and may underrepresent content from forums, social media, and non-standard page layouts. We have not applied any machine-learning-based quality or toxicity filters, as such filters have been shown to disproportionately remove content from certain dialects and communities.
### Known Limitations
Code-heavy pages may not convert well to Markdown. If you are training a model that needs strong code performance, consider supplementing **Open Markdown** with a dedicated code dataset such as [The Stack v2](https://huggingface.co/datasets/bigcode/the-stack-v2). Similarly, highly structured pages like Wikipedia may have better formatting in dedicated Wikipedia dumps than in their Common Crawl versions.
## Additional Information
### Licensing
The dataset is released under the **Open Data Commons Attribution License (ODC-By) v1.0**. The use of this dataset is also subject to [Common Crawl's Terms of Use](https://commoncrawl.org/terms-of-use). The original content remains subject to the rights and terms of its respective publishers.
### Contact
Please open a discussion on the [Community tab](https://huggingface.co/datasets/open-index/open-markdown/discussions) for questions, feedback, or issues.