.TORRENT

TORRENT File

BitTorrent Metainfo File
Ask a question
QUICK ANSWER

A .torrent file is a small metadata file that tells a BitTorrent client what to download and which servers (trackers) to contact - the actual content is not inside it. To open one, install qBittorrent or Transmission and double-click the file. The .torrent format is completely legal; whether the content it points to is legal depends on what that content is.

Developer: BitTorrent (originally Bram Cohen / BitTorrent, Inc.) Category: Misc Files Open standard MIME: application/x-bittorrent
OPENS ON Windows macOS Linux Android
Related: .MSO · .MD5 · .SHS · .DDD

On this page

19k+ extensions indexed
Last reviewed Aug 31, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the TORRENT file format?

Files with the .torrent extension contain metadata - information on other data: files and folders to be distributed within a network based on BitTorrent. They may also include data on trackers - addresses of computers that help locate files within the network. The format is serialized using Bencode, a compact key-value encoding defined in BEP-3.

.torrent files do not contain the data that is going to be downloaded, but instead describe it through a set of fields:

  • Name of the file or files to be downloaded, along with its path - name, path, files
  • Information on the parts the file will be divided into - piece length
  • Total size in bytes - length
  • Information about the structure of the directory - info
  • A list of SHA-1 hashes calculated for each piece, in order to verify its integrity after download - pieces
  • Tracker URL - announce

The logic of a BitTorrent network is based on decentralising file location, enabling users to establish peer-to-peer connections to download and share data they are interested in. Each downloaded piece is verified against its hash and then shared with other peers in the swarm. Modern clients also support trackerless operation via DHT (Distributed Hash Table, BEP-5), removing the need for a central server. BitTorrent v2 (BEP-52) upgrades piece hashing from SHA-1 to SHA-256. As an alternative to .torrent files, magnet links encode the info hash directly in a URI and have become widely used.

Security & safety

RISK: MEDIUM

The .torrent file itself is plain bencoded text and cannot contain a virus or run code, so the file is safe to open and inspect. The risk lies in what you download with it: torrented content can be malware-laden, mislabelled, or copyrighted. Legality is about content, not the format - downloading a Linux ISO is fine; downloading copyrighted films/software is illegal in most countries. Practical advice: use a reputable open-source client (qBittorrent, Transmission), avoid clients with bundled adware (older Vuze, uTorrent installer offers, BitLord), scan downloaded executables, and be aware your IP is visible to other peers.

Format details

in a nutshell
FULL NAMEBitTorrent Metainfo File
DEVELOPERBitTorrent (originally Bram Cohen / BitTorrent, Inc.)since 2001 (BitTorrent protocol; BEP-3 metainfo specification)
CATEGORYMisc Files
MIME TYPEapplication/x-bittorrent
TYPEBencoded text metadata (no executable content)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102030405060708090a
HEX
64383A616E6E6F756E6365
ASCII
d8:announce
A .torrent has no formal magic number. It is a bencoded dictionary, which always begins with the byte 'd' (0x64). The first key is usually "announce" (the tracker URL), so files commonly start with the literal "d8:announce" (d, then 8:announce). Trackerless (DHT) torrents may instead start with "d7:comment", "d10:created by", "d4:info" etc., so detect by 'd' + valid bencode structure, not a fixed string.

Programs that open TORRENT files

Windows4 apps
uTorrent Freemium Historically the most popular client, but the free version shows ads and the installer has bundled adware/offers - prefer qBittorrent.
BitComet Freemium Long-standing Windows client; double-click to add. Works, but bundles extra prompts during install.
qBittorrent Open-source Install qBittorrent, then double-click the .torrent - it adds the download. Free, open-source, no ads (recommended).
Transmission Open-source Lightweight, ad-free client; double-click the .torrent to add it.
macOS2 apps
qBittorrent Open-source Free, open-source, ad-free; double-click to add the download.
Transmission Open-source The standard lightweight Mac client; double-click the .torrent to add it. Free and ad-free.
Linux3 apps
qBittorrent Open-source Install from your distro's repo; double-click the .torrent to add it.
KTorrent Open-source KDE's BitTorrent client; double-click the .torrent to add it.
Transmission Open-source Default client on GNOME-based distros; double-click to add.
Android1 app
LibreTorrent Open-source Free, open-source, ad-free Android client; open the .torrent to add the download.

Technical details

deep spec
Encoding formatBencode - dictionaries wrapped in `d...e`, integers as `iNe`, byte strings as `length:data`, lists as `l...e`
MIME type`application/x-bittorrent`
File signatureNo formal magic bytes; files begin with `d` (0x64); tracker torrents typically open with the literal `d8:announce`
Piece integrity hash (v1)SHA-1 - 20-byte hashes for every piece concatenated in the `pieces` field of the `info` dictionary
Piece integrity hash (v2)SHA-256 per-file Merkle tree (BEP-52); 32-byte leaf hashes stored in `piece layers`
Typical piece size256 KB to 16 MB; always a power of two; fixed at torrent creation and stored in `piece length`
Info hash20-byte SHA-1 (v1) or 32-byte SHA-256 (v2) of the bencoded `info` dictionary; uniquely identifies the torrent
Tracker announcement`announce` holds a single tracker URL; `announce-list` (BEP-12) extends this to a tiered multi-tracker fallback list
Trackerless (DHT) support`nodes` field lists DHT bootstrap node addresses (BEP-5), enabling download without any central tracker server
Private torrent flagOptional `private` key set to `1` inside `info` disables DHT and Peer Exchange (PEX) for that torrent
Multi-file layoutSingle-file mode uses a top-level `length` key; multi-file mode replaces it with a `files` list of `{path, length}` entries inside `info`
Suggested file name`name` key inside `info` sets the recommended filename (single-file) or top-level directory name (multi-file)
Optional metadata fields`comment`, `created by`, `creation date` (Unix timestamp), `encoding`, `url-list` (BEP-19 web seeding)
Swarm piece exchangePeers download pieces concurrently; each piece is SHA-verified on arrival before being offered to other leechers
Released2001 (BitTorrent protocol; BEP-3 metainfo specification)
Open standardYes · royalty-free
Specificationwww.bittorrent.org

TORRENT conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with TORRENT files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about TORRENT files.

Frequently asked questions

What program opens a .torrent file?
A BitTorrent client. qBittorrent (free, open-source, ad-free) is the top recommendation; Transmission is a great lightweight alternative. Double-click the .torrent to add the download.
Is a .torrent file itself a virus or dangerous?
No. The .torrent is plain text metadata and contains no executable code. The risk is in the content you download with it - scan files and use trusted sources.
Are .torrent files legal?
The format and the BitTorrent protocol are completely legal and used for Linux ISOs, the Internet Archive and more. Downloading copyrighted material via torrents is illegal - legality depends on the content, not the file.
What's the difference between a .torrent file and a magnet link?
A .torrent file stores the metadata locally; a magnet link is just a URL containing the content's hash, letting the client fetch that metadata from the network. Both end up downloading the same thing.
Should I use uTorrent or qBittorrent?
qBittorrent is recommended: it's free, open-source and ad-free. uTorrent's free version shows ads and its installer has offered bundled adware, so most guides now prefer qBittorrent.
Why won't my .torrent file open?
You likely have no BitTorrent client installed, or none is associated with the .torrent extension. Install qBittorrent or Transmission, then double-click the file again.

References

1BitTorrent.org - BEP-3 The BitTorrent Protocol Specificationwww.bittorrent.org
2qBittorrent - official sitewww.qbittorrent.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BCBitComet Incomplete Download File
3.PARTPartial Download File
4.CRDOWNLOADChrome Partial Download File
5.BINCD/DVD Disc Image (BIN/CUE)
6.MDMarkdown Document
7.EXEWindows Executable (Portable Executable)
8.NOMEDIAAndroid No-Media Marker File
9.RPMSGRestricted Permission Message
10.AVIFAV1 Image File Format (AVIF)

Related extensions

.MSOMicrosoft Office HTML/OLE Data Stream (oledata.mso)
.MD5MD5 Checksum File
.SHSShell Scrap Object File
.DDDAdobe Acrobat Distiller file
.DWLDrawing Lock File (CAD)
.THUMBDATA4--1967290299Android Gallery Thumbnail Cache (.thumbdata)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z