.txt

7 claimants 6 primary 1 secondary shared primary (6)

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.

799.6M
total files
399.5M
first seen 2021–2025 (50.0%)
2021
median year (half its files since)

Case variants in archive: .txt (797.9M), .TXT (1.6M), .Txt (31.6K), .TxT (183), .tXt (182), .tXT (39), .txT (39), .TXt (29) — aggregated above.

Attribution status

This extension is attributed to Adblock Filter List; ASCII art; AsciiDoc; bibtex; Text; Vim Help File as primary by 9 authoritative claims.

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

Disagree or have a correction? Open a labelling issue.

Claimants (10)

Languages that list .txt among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
Adblock Filter Listlinguistprimary
Adblock Filter Listpygmentsprimary
ASCII artwikidataprimary
AsciiDocwikidataprimary
bibtexwikidataprimary
Textlinguistprimary
Textpygmentsprimary
Vim Help Filelinguistprimary
Vim Help Filepygmentsprimary
txtwikidatasecondary

Wikidata says… (70)

File formats, image formats, audio codecs and other non-PL entities that claim .txt 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
BibTeX Q105859274
file format for bibliography items used by the BibTeX software
file format; bibliographic data format—application/x-bibtex; text/x-bibtex—Use as new PL ↗
text file Q86920
kind of computer file containing plain text
file format—text/plain—Use as new PL ↗
.txt file Q124097900file format—text/plain—Use as new PL ↗

Disambiguation rules (3)

Linguist heuristics that decide, by content, which language a .txt file actually is.
RulePredictsKindPredicates (truncated)Measured on SWH
h/linguist/.txt/0Hosts Filepredicates[{"kind": "any", "regexes": ["^(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}(?:/(?:3[0-2]|[12]?[0-9]))?(?:[ \\t]+[A-Za-z0-9_](?:[A-Za-z0-9_-]
h/linguist/.txt/1Adblock Filter Listpredicates[{"kind": "any", "regexes": ["\\A\\[(?:[Aa]d[Bb]lock(?:[ \\t][Pp]lus)?|u[Bb]lock(?:[ \\t][Oo]rigin)?|[Aa]d[Gg]uard)(?:[ \\t][0-9]+(?:\\.[0-9]+)*)?(?:[ \\t]?;[ \\t]?(?:[Aa]d[Bb]lock(?:[ \\t][Pp]lus)?|u
h/linguist/.txt/2Textdefault[]

SWH-mined examples (0)

No archived examples for .txt in our local mirror yet.

Need an archived example for this extension?
No verbatim file with extension .txt in our local SWH mirror yet. Submit a sample-mining request and a maintainer will run swh_extension_mining.py against the live archive for this extension; samples land here once the run completes.
(or open the pre-filled issue directly)