.zig

2 claimants 2 primary 0 secondary shared primary (2)

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.

1.3M
total files
1.1M
first seen 2021–2025 (82.0%)
2023
median year (half its files since)

Case variants in archive: .zig (1.3M), .ZIG (15), .Zig (6), .ZIg (1) — aggregated above.

Attribution status

This extension is attributed to Zig; Zig (programming language) as primary by 4 authoritative claims.

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

Disagree or have a correction? Open a labelling issue.

Claimants (4)

Languages that list .zig among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
Ziglinguistprimary
Zigpygmentsprimary
Zigwikidataprimary
Zig (programming language)pygmentsprimary

Wikidata says… (1)

File formats, image formats, audio codecs and other non-PL entities that claim .zig 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
Zig file format Q131454123
file format
file format—text/zig—Use as new PL ↗

SWH-mined examples (1)

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.
Zig (1) — 1 via unique-primary
controller_bvh.zig · 21517 B · seen 11× in SWH
predicted: Zig via unique-primary
swh:1:cnt:486e2f4040fae3a9e1318df1b247032357d864da;origin=https://github.com/roma-p/jeanpaul;anchor=swh:1:rev:01a4ca406f2a86b6c5c0531408e3e9d45c8e5191;path=/proto_2/src/controller_bvh.zig
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .zig is, request a fresh mining run.
(or open the pre-filled issue directly)