.bat

4 claimants 4 primary 0 secondary shared primary (4)

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.

5.4M
total files
2.0M
first seen 2021–2025 (36.6%)
2019
median year (half its files since)

Case variants in archive: .bat (5.3M), .BAT (65.7K), .Bat (5.5K), .bAt (12), .BaT (10), .baT (10), .BAt (8), .bAT (5) — aggregated above.

Attribution status

This extension is attributed to Batch; Batchfile; Rexx; WinBatch as primary by 6 authoritative claims.

Authoritative sources: ✓ Linguist ✓ Pygments ✓ Wikidata · Q479833 ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (6)

Languages that list .bat among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
Batchpygmentsprimary
Batchfilelinguistprimary
Batchfilepygmentsprimary
Batchfilewikidataprimary
Rexxwikidataprimary
WinBatchpygmentsprimary

Wikidata says… (1)

File formats, image formats, audio codecs and other non-PL entities that claim .bat 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
batch file Q479833
script file for Microsoft computer operating systems
file format; script file—application/x-bat—Use as new PL ↗

SWH-mined examples (2)

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.
unclassified (2) — 2 via fallback
extractcode.bat · 843 B · seen 3325× in SWH
predicted: unclassified via fallback
swh:1:cnt:4b7424fc013d5af1a8f695e7e2c50142643f337f;origin=https://github.com/darcyfdu/findlicense;anchor=swh:1:rev:888cfb21a7378408032f60d06ee5598d3228dbc5;path=/extractcode.bat
Open in SWH · Raw bytes
ToCHT.bat · 1023 B · seen 2801× in SWH
predicted: unclassified via fallback
swh:1:cnt:2c9538b1775e2d9e5fbc7301d8bb66feb6b8e554;origin=https://github.com/mirbeta/MirClient;anchor=swh:1:rev:3dbba7d20f647e2716a1cacacdfe233e1695c33f;path=/Components/cnvcl/Source/ToCHT.bat
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .bat is, request a fresh mining run.
(or open the pre-filled issue directly)