In March 2016 I asked a small question on this blog: are BitTorrent pieces 250 KB long? (Are BitTorrent Pieces 250Kb Long?) [1]. I had read the protocol specification, which says piece length is most commonly 256 K. I rounded that to 250 in the title, downloaded 279 torrent files, kept the 169 unique ones, and charted them in Excel. Of the 76 torrents under 1 GB, 71 used the specification’s 256 K piece.
Ten years later I ran the same question again with a much larger sample. The answer has changed. In 7,305 torrents from eight legitimate publishers, 256 KiB pieces account for 13.7% of the total and 16.6% of torrents under 1 GiB.
The specification has not changed since then. The torrents did.
What a piece is, and why it matters
A torrent’s metainfo file (the .torrent file) describes the content as a sequence of fixed-size pieces. In a version 1 torrent, every piece has its own SHA-1 hash in the metainfo file, and a client checks each piece against that hash before it keeps it or shares it. The piece length is a single number in the metainfo file, chosen by whoever created the torrent. The last piece may be shorter; every other piece is exactly that length. Version 2 torrents keep the piece length but hash each file separately with a SHA-256 Merkle tree, so pieces line up with file boundaries and the last piece of each file may be short.
That makes the piece the unit of verification. When a client reports that it has piece 412, it is claiming a specific range of bytes that matched a specific hash. Anyone who reasons about which bytes of a file came from where, including examiners who work on BitTorrent investigations, needs the actual piece length from the actual metainfo file. I wrote about BitTorrent investigations in a SANS white paper some years ago [2], and the habit of reading the number rather than assuming it is the practical point of this post.
Where 256 K came from
I went back to the original text. The Internet Archive’s 2002 copies of Bram Cohen’s protocol page, captured in June and again in October of that year, say piece length “is almost always a power of two, most commonly 2^20” [3]. That is 1 MiB, not 256 K.
By December 2, 2003, the sentence reads differently: “most commonly 2^18 = 256 K (BitTorrent prior to version 3.2 uses 2^20 = 1 M as default)” [4]. The archive’s list of captures brackets the change: the old wording is still there in the capture of June 21, 2003, and the new wording is there by December 2, 2003.
BEP 3, the specification on bittorrent.org today, still says piece length is almost always a power of two, most commonly 256 K, and that BitTorrent prior to version 3.2 used 1 M as the default [5]. When I compared the two texts, the BEP 3 sentence is the 2003 sentence, word for word, exponents included. I read the 256 K figure as a statement about what the reference client did in 2003. No version of the text I could find says 250. That number was my rounding in 2016.
The newer version of the protocol, BEP 52, is stricter in one way and silent in another. In BEP 52, piece length is the number of bytes that each logical piece in the peer protocol refers to, and it must be a power of two and at least 16KiB [6]. Unlike BEP 3, it does not name a typical value at all.
How I collected the new sample
The 2016 sample came from one site, legittorrents.info. That site is now a static landing page with no torrent listings, so the old sample cannot be redrawn. I used nine collections from eight publishers instead (Debian’s installer images and live images are separate collections), all of them projects or archives that publish torrents openly as an ordinary way to download what they host:
- Academic Torrents, every item in its public database: 3,631 unique torrents.
- FOSS Torrents, its complete batch of open-source software torrents: 1,751.
- Internet Archive, a seeded random sample of items published since January 2024: 1,213.
- Official project mirrors: OpenStreetMap (340), Arch Linux (179), Fedora (115), Debian (37 installer and 9 live images) and Ubuntu (30).
The collector downloads only .torrent metainfo files, one request per second per site. It never contacts a tracker, never joins a swarm and never downloads any of the content the torrents describe. Of 9,991 requests, 9,653 returned a file.
Duplicates were removed in two passes. The first pass removed files with the same infohash. The second pass caught something I did not expect: FOSS Torrents publishes each release three times, as a version 1 torrent, a version 2 torrent and a hybrid of the two, each with a different infohash. I counted each release once. In every case the three copies used the same piece length, so the choice of which copy to keep did not affect the results.
In 2015 I wrote a Python parser for BitTorrent metainfo files (A Python Parser for BitTorrent Metainfo Files) [7]. The survey code lives in the same repository and grows out of that work. It reads version 2 and hybrid torrents and needs nothing beyond the Python standard library [8]. The full survey report is published there too [9], beside a CSV with one row per torrent.
What the numbers say
Here are the 2016 observations, measured again:
| Observation | 2016 (169 torrents) | 2026 (7,305 torrents) |
|---|---|---|
| Torrents under 1 GiB | 44% | 53.5% |
| Of those, using a 256 KiB piece | 71 of 76 | 648 of 3,909 (16.6%) |
| Torrents over 10 GiB | 7% | 22.7% |
| Of those, using a piece of 2 MiB or more | all | 1,541 of 1,655 (93.1%) |
The large-torrent pattern held. Big torrents still use big pieces, which keeps the number of pieces, and the size of the metainfo file, manageable. The small-torrent pattern did not hold. The most common piece length in the whole sample is now 512 KiB, at 25.6%, and piece lengths run from 16 KiB to 1 GiB.

Like the 2016 chart, both axes are log 2. Each dot is one torrent. The horizontal bands are the point: piece lengths cluster on powers of two, and each source tends to sit on one or two bands.
A few details stood out:
- Powers of two still rule. 99.5% of piece lengths are powers of two. The 39 exceptions all came from Academic Torrents, and 38 of them were made by one tool.
- No torrent in the sample uses 250 KB. Not one of the 7,305 torrents uses a piece of 250,000 bytes, or of 256,000 bytes (250 KiB). The 256 K in the specification is 262,144 bytes.
- Version 2 is arriving. 19.3% of the sample are hybrid torrents that carry both version 1 and version 2 hashes. Version 2 is defined in BEP 52, which bittorrent.org lists as last modified in August 2017, after my 2016 post.
- The extremes are extreme. The largest torrent describes about 30 TiB in 128 MiB pieces. The torrent with the most pieces has 542,772 of them, 2 MiB each.
The tool decides, not the protocol
The clearest pattern in the data is not about torrent size. It is about who made the torrent and with what.
The Debian, Debian live and Fedora torrents all use 256 KiB pieces, every one of them. Ubuntu uses 256 KiB for 24 of its 30 torrents and 512 KiB for the rest. Every Arch Linux torrent uses 512 KiB. Every OpenStreetMap torrent uses 4 MiB. The Internet Archive’s own torrent generator used 512 KiB for 1,098 of the 1,213 items in my sample.
The created by field in each metainfo file names the tool, and it tells the same story. The table counts tools across all sources, which is why the Internet Archive’s generator appears 1,312 times: 1,213 from the archive sample and 99 more that Academic Torrents lists.
| Tool | Torrents | Median piece length |
|---|---|---|
| ia_make_torrent (Internet Archive) | 1,312 | 512 KiB |
| py3createtorrent | 1,310 | 32 KiB |
| FOSS Torrents | 1,195 | 256 KiB |
| mktorrent | 1,121 | 512 KiB |
| Transmission | 807 | 2 MiB |
| qBittorrent | 582 | 2 MiB |
The same tool can still produce very different results in different hands. mktorrent made both the 512 KiB Arch Linux torrents and the 4 MiB OpenStreetMap torrents, because the person running it chose a different setting. And the tool with the smallest pieces, py3createtorrent, made nearly all of its 1,310 torrents for Academic Torrents datasets, many of them small enough to need only a dozen or so pieces.
What this sample cannot tell you
This is a sample of legitimate, publicly listed torrents, and it is lopsided. Academic Torrents and FOSS Torrents together account for nearly three quarters of it, and two tools account for more than a third. A different mix of sources would move every percentage in this post.
It also says nothing about the torrents that circulate on public trackers and file-sharing indexes. I did not sample those, by design. If anything, the spread of results here argues against assuming that they look like any one of these sources.
The creation dates add a caution of their own. The share of 256 KiB pieces is higher among torrents created from 2024 onward (17.4%) than among those from 2016 to 2023 (about 5% to 8%). Of the 763 recent torrents at 256 KiB, 482 came from FOSS Torrents and 161 from the Fedora and Debian mirrors, publishers that use 256 KiB and keep mostly recent releases online. That is a property of what publishers keep online, not a trend.
The takeaway
The 256 K in the specification is a sentence about what one client did in 2003. It was never a rule, and it is no longer a good guess.
If a piece length matters to your work, read it from the metainfo file. If you want to know what a collection of torrents looks like, measure that collection. The scripts I used are in the bittorrent-parser repository [8], and they will run against any directory of .torrent files you can legally collect.
References
[1] Kenneth G. Hartman, Are BitTorrent Pieces 250Kb Long?, kennethghartman.com, March 12, 2016
[2] Kenneth G. Hartman, BitTorrent and Digital Contraband, SANS Institute
[3] Bram Cohen, BitTorrent protocol specification, bitconjurer.org, Internet Archive capture of October 17, 2002
[4] Bram Cohen, BitTorrent protocol specification, bitconjurer.org, Internet Archive capture of December 2, 2003
[5] Bram Cohen, BEP 3: The BitTorrent Protocol Specification, bittorrent.org, created January 10, 2008
[6] Bram Cohen, BEP 52: The BitTorrent Protocol Specification v2, bittorrent.org, draft, last modified August 31, 2017
[7] Kenneth G. Hartman, A Python Parser for BitTorrent Metainfo Files, kennethghartman.com, November 12, 2015
[8] Kenneth G. Hartman, bittorrent-parser, survey directory, GitHub
[9] Kenneth G. Hartman, BitTorrent piece-size survey report, GitHub, December 3, 2026