.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.
Claimants (10)
Languages that list
.txt among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| Adblock Filter List | linguist | primary |
| Adblock Filter List | pygments | primary |
| ASCII art | wikidata | primary |
| AsciiDoc | wikidata | primary |
| bibtex | wikidata | primary |
| Text | linguist | primary |
| Text | pygments | primary |
| Vim Help File | linguist | primary |
| Vim Help File | pygments | primary |
| txt | wikidata | secondary |
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.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| 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 Q124097900 | file format | — | text/plain | — | Use as new PL ↗ |
Disambiguation rules (3)
Linguist heuristics that decide, by content, which language a
.txt file actually is.| Rule | Predicts | Kind | Predicates (truncated) | Measured on SWH |
|---|---|---|---|---|
h/linguist/.txt/0 | Hosts File | predicates | [{"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/1 | Adblock Filter List | predicates | [{"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/2 | Text | default | [] |
SWH-mined examples (0)
No archived examples for .txt in our local mirror yet.