.cbl

1 claimant 1 primary 0 secondary unambiguous primary

SWH popularity

Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.

281.6K
total files
162.7K
first seen 2021–2025 (57.8%)
2021
median year (half its files since)

Case variants in archive: .CBL (195.6K), .cbl (86.0K), .Cbl (39), .CBl (1), .cBL (1), .cbL (1) — aggregated above.

Observed in Software Heritage

Study cobol — What is actually in the COBOL extensions on Software Heritage? Report: docs/cobol_swh_study.md · PDF.
Population. 276,831 .cbl, .CBL files in 6,278 repositories.
Sample. share of files — uniform 1 000 contents of the .cbl ∪ .CBL union, content-classified (corpus_estimate.jsonl); share of repositories — 1 000 of 6 278 repositories, one random content each (worklist_div.csv), content-classified. Each share says how it was estimated (judged sample, PPI over the rule-labelled sample, or tail census); 95 % interval in brackets.

Language / formatShare of filesShare of repositories
COBOL (programs, copybooks, generated) pl/cobol54.4% [51.3–57.5] · judged sample92.7% [90.9–94.2] · judged sample
synthetic test fixture (WBC_*_FOO.CBL, one GitLab repository)40.8% [37.8–43.9] · judged sample—
other text (foreign source, data, docs)2.8% [1.9–4.0] · judged sample5.3% [4.1–6.9] · judged sample
Calibre/ComicRack comic-book reading lists1.7% [1.1–2.7] · judged sample0.10% [0.0–0.6] · judged sample
binary data0.30% [0.1–0.9] · judged sample1.9% [1.2–2.9] · judged sample
synthetic test fixture (WBC_*_FOO.CBL, one GitLab repository) (.CBL only)58.9% [55.2–62.5] · judged sample—
COBOL (programs, copybooks, generated) (.CBL only) pl/cobol39.4% [35.8–43.1] · judged sample92.6% [83.9–96.8] · judged sample
other text (foreign source, data, docs) (.CBL only)1.2% [0.6–2.3] · judged sample4.4% [1.5–12.2] · judged sample
Calibre/ComicRack comic-book reading lists (.CBL only)0.30% [0.1–1.0] · judged sample—
binary data (.CBL only)0.30% [0.1–1.0] · judged sample2.9% [0.8–10.1] · judged sample

Attribution status

This extension is attributed to COBOL as primary by 1 authoritative claim.

Authoritative sources: △ Linguist · secondary ✗ Pygments · no claim ✓ Wikidata · Q131140 ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (2)

Languages that list .cbl among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
COBOLwikidataprimary
COBOLlinguistsecondary

Wikidata says… (1)

File formats, image formats, audio codecs and other non-PL entities that claim .cbl on Wikidata (property P1195) or in the Wikipedia infobox. Source: data/derived/external_extension_index.csv. Click Use as new PL on any row to open the Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata URL, and this extension — one submission creates the PL + claim.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
COBOL Source Code File Q127327939
file format
file format———Use as new PL ↗

SWH-mined examples (8)

Real archived programs with this extension, byte-verified against the SWH archive, grouped by predicted language and by how the prediction was made. Useful for deciding what this extension actually is when the attribution is uncertain.
COBOL (8) — 6 via extension study cobol (LLM judges, human reviews) · 2 via fallback

via extension study cobol (LLM judges, human reviews) (6)

01.cbl · 373 B · SWH occurrences unknown
predicted: COBOL via swh_study:cobol (reclassifier:cobol; human:mathieu-acher)
swh:1:cnt:84dc7ee9806a492bfa98b5d307fe018808c50fff;origin=https://github.com/michalasobczak/q;path=/05/cobol/01.cbl
Open in SWH · Raw bytes
Reviews (1 human)
Ground truth · how?
👤 mathieu-acher → pl/cobol (medium) 2026-07-08
demo-example
Form1.Designer.cbl · 1250 B · SWH occurrences unknown
predicted: COBOL via swh_study:cobol (judge:claude-sonnet-4.6 (cobol-judge/2, shown indicators); reclassifier:cobol-generated)
swh:1:cnt:11085a16efb09a9bca78144ab36461d68ecb8920;origin=https://github.com/schleyer/GitStrtUp;path=/Form1.Designer.cbl
Open in SWH · Raw bytes
Reviews (1 LLM)
Ground truth · how?
🤖 anthropic-claude-sonnet-4.6 cobol-judge/2 → pl/cobol (high) 2026-07-07
micro-focus, COBOL-2002, fixed; subprogram, utility-tooling
sys.d.cbl · 1042 B · SWH occurrences unknown
predicted: COBOL via swh_study:cobol (judge:claude-sonnet-4.6 (cobol-judge/2, shown indicators); reclassifier:cobol)
swh:1:cnt:a4b1dbc856e6c267ed7b840be8eff21dc667acba;origin=https://github.com/yakiro-nvg/cobol.js;path=/types/sys.d.cbl
Open in SWH · Raw bytes
Reviews (1 LLM)
Ground truth · how?
🤖 anthropic-claude-sonnet-4.6 cobol-judge/2 → pl/cobol (low) 2026-07-07
unknown, unknown, fixed; copybook, utility-tooling
ORCSMISAVE.CBL · 12122 B · SWH occurrences unknown
predicted: COBOL via swh_study:cobol (judge:claude-sonnet-4.6 (cobol-judge/2, shown indicators); reclassifier:cobol)
swh:1:cnt:e2bcfeb80e3dbf3078a766995eaeef958361b9e7;origin=https://github.com/izumiya/jma-receipt;path=/cobol/common/ORCSMISAVE.CBL
Open in SWH · Raw bytes
Reviews (1 LLM)
Ground truth · how?
🤖 anthropic-claude-sonnet-4.6 cobol-judge/2 → pl/cobol (high) 2026-06-17
gnucobol, COBOL-85, fixed; subprogram, healthcare-medical
calc-expenses.cbl · 2439 B · SWH occurrences unknown
predicted: COBOL via swh_study:cobol (judge:claude-sonnet-4.6 (cobol-judge/2, shown indicators); reclassifier:cobol)
swh:1:cnt:04db07df088b136f11f64d356c2ef3abfa1042b9;origin=https://github.com/isobelscott/business_expenses;path=/calc-expenses.cbl
Open in SWH · Raw bytes
Reviews (1 LLM)
Ground truth · how?
🤖 anthropic-claude-sonnet-4.6 cobol-judge/2 → pl/cobol (medium) 2026-07-07
gnucobol, COBOL-85, fixed; batch, accounting-erp
DFH0XSOD.cbl · 7259 B · SWH occurrences unknown
predicted: COBOL via swh_study:cobol (judge:claude-sonnet-4.6 (cobol-judge/2, shown indicators); reclassifier:cobol)
swh:1:cnt:bab43fcee6d1fa4eac7f03463c9f9df45b07f054;origin=https://github.com/Jack-Billings-IBM/catalog;path=/COBOL/DFH0XSOD.cbl
Open in SWH · Raw bytes
Reviews (1 LLM)
Ground truth · how?
🤖 anthropic-claude-sonnet-4.6 cobol-judge/2 → pl/cobol (high) 2026-06-17
ibm-mainframe, COBOL-85, fixed; online-cics, demo-example

via fallback (2)

IF108A.CBL · 39783 B · seen 7× in SWH
predicted: COBOL via fallback
swh:1:cnt:3319c582b9bb2d580d6832c1fb2cd08c8c2d72ee;origin=https://github.com/krisds/koopa;anchor=swh:1:rev:34ced67d50536b4dea31b540ad7a145c6b2144bd;path=/testsuite/cobol85/IF108A.CBL
Open in SWH · Raw bytes
IF138A.CBL · 53553 B · seen 7× in SWH
predicted: COBOL via fallback
swh:1:cnt:fd982154388e0121ed98ad1cfcdabaccd484b627;origin=https://github.com/krisds/koopa;anchor=swh:1:rev:34ced67d50536b4dea31b540ad7a145c6b2144bd;path=/testsuite/cobol85/IF138A.CBL
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .cbl is, request a fresh mining run.
(or open the pre-filled issue directly)