.txt

7 claimants 6 primary 1 secondary shared primary (6)

SWH popularity

From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.

517.9M
total occurrences
186.8M
since 2019 (36.1%)
1955–2023
years active

Case variants in archive: .txt (516.5M), .TXT (1.4M), .Txt (24.9K), .tXt (162), .TxT (137), .txT (28), .tXT (28), .TXt (19) — aggregated above.

Attribution status

This extension is attributed to Adblock Filter List; Adblock Filter List; ASCII art; AsciiDoc; bibtex; Text; Text; Vim Help File; 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 formatapplication/x-bibtex; text/x-bibtexUse as new PL ↗
text file Q86920
kind of computer file containing plain text
file formattext/plainUse as new PL ↗
.txt file Q124097900file formattext/plainUse as new PL ↗

Disambiguation rules (4)

Linguist heuristics that decide, by content, which language a .txt file actually is.
RulePredictsKindPredicates (truncated)
h/linguist/.txt/0Vim Help Filepredicates[{"kind": "any", "regexes": ["(?:(?:^|[ \\t])(?:vi|Vi(?=m))(?:m[<=>]?[0-9]+|m)?|[ \\t]ex)(?=:(?=[ \\t]*set?[ \\t][^\\r\\n:]+:)|:(?![ \\t]*set?[ \\t]))(?:(?:[ \\t]*:[ \\t]*|[ \\t])\\w*(?:[ \\t]*=(?:[^\
h/linguist/.txt/1Hosts Filepredicates[{"kind": "any", "regexes": ["(?xi) ^\n\n# IPv4 address\n(?<ipv4>\n (?!\\.)\n (?:\\.?\n (?: 25[0-5] # 250-255\n | 2[0-4]\\d # 200-249\n | 1\\d\\d # 100-199\n | [1-9]?\\d # 0-99
h/linguist/.txt/2Adblock Filter Listpredicates[{"kind": "any", "regexes": ["(?x)\\A\n\\[\n(?<version>\n (?:\n [Aa]d[Bb]lock\n (?:[ \\t][Pp]lus)?\n |\n u[Bb]lock\n (?:[ \\t][Oo]rigin)?\n |\n [Aa]d[Gg]uard\n )\n (?:[ \\t] \\
h/linguist/.txt/3Textdefault[]

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)