.f

3 claimants 3 primary 0 secondary shared primary (3)

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.

3.6M
total files
712.9K
first seen 2021–2025 (19.7%)
2017
median year (half its files since)

Case variants in archive: .f (2.4M), .F (1.2M) — aggregated above.

Attribution status

This extension is attributed to filebench-wml; Forth; fortran as primary by 4 authoritative claims.

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

Disagree or have a correction? Open a labelling issue.

Claimants (5)

Languages that list .f among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
filebench-wmllinguistprimary
Forthwikidataprimary
fortranlinguistprimary
fortranwikidataprimary
Forthlinguistsecondary

Wikidata says… (3)

File formats, image formats, audio codecs and other non-PL entities that claim .f 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
Fixed-format Fortran source Q111721131
file format
file format———Use as new PL ↗
Freeze compressed data (v1.x) Q105855227
file format
file format—application/octet-stream—Use as new PL ↗
Freeze compressed data (v2.x) Q105855520
file format
file format—application/octet-stream—Use as new PL ↗

Disambiguation rules (3)

Linguist heuristics that decide, by content, which language a .f file actually is.
RulePredictsKindPredicates (truncated)Measured on SWH
h/linguist/.f/0Forthpredicates[{"kind": "any", "regexes": ["^: "]}]
h/linguist/.f/1filebench-wmlpredicates[{"kind": "any", "regexes": ["flowop"]}]
h/linguist/.f/2fortranpredicates[{"kind": "any", "regexes": ["^(?i:[c*][^abd-z]| (subroutine|program|end|data)\\s|\\s*!)"]}]

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.
fortran (1) — 1 via Linguist heuristic
getversion.f · 1243 B · seen 330× in SWH
predicted: fortran via heuristic
swh:1:cnt:7629668e705c792bea37e726af0d79485d54bdc3;origin=https://github.com/Dhondtguido/CalculiX;anchor=swh:1:rev:350e9c8352c868c623483d2b7d037d6955de8b5f;path=/src/getversion.f
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .f is, request a fresh mining run.
(or open the pre-filled issue directly)