What Is a Magnet Link?
A magnet link is a URI (Uniform Resource Identifier) that identifies a torrent by its cryptographic hash rather than by a URL. Instead of downloading a .torrent file from a web server, your BitTorrent client uses the hash to find peers on the distributed BitTorrent network who already have the file.
A typical magnet link looks like this:
magnet:?xt=urn:btih:INFOHASH&dn=Name+of+File&tr=udp://tracker.example.com:6969
Breaking Down the Magnet URI Format
magnet:— The URI scheme identifying this as a magnet linkxt=urn:btih:HASH— The exact topic: a BitTorrent info-hash (xt = exact topic, btih = BitTorrent Info Hash)dn=Name— Display name — a human-readable name for the torrent (optional)tr=— Tracker URLs — announce servers that help find peers (optional)xl=— Exact length in bytes (optional)
What Is the Info-Hash?
The info-hash is the SHA-1 (or SHA-256 for newer torrents) cryptographic hash of the torrent's info dictionary. It uniquely identifies every torrent on the BitTorrent network. No two different torrents share the same info-hash — changing even one byte of the files produces a completely different hash.
The info-hash is what your client uses to find peers. Anyone seeding that torrent is identified by the same hash, so clients can find each other without a central tracker.
How Does a Magnet Link Find Peers Without a File?
This is where DHT (Distributed Hash Table) comes in. DHT is a decentralised peer discovery network built into BitTorrent. When you open a magnet link:
- Your client queries the DHT network using the info-hash
- DHT nodes return IP addresses of other peers who have announced that info-hash
- Your client connects to those peers and downloads the torrent metadata (file list, sizes, piece hashes)
- Once it has the metadata, it begins downloading the actual files from available seeders
This is why magnet links can be slower to start than .torrent files — they need to find peers and fetch metadata first before downloading can begin.
Magnet Links vs .Torrent Files
| Feature | Magnet Link | .Torrent File |
|---|---|---|
| Size | ~100–300 bytes of text | Kilobytes to megabytes |
| Requires server | No — works via DHT | Yes — must be downloaded from a URL |
| File preview before download | Not possible | Yes — see all files and sizes |
| Start speed | Slower — must fetch metadata first | Faster — metadata already available |
| Tracker dependence | Works without trackers (DHT) | May need trackers if DHT disabled |
| Compatibility | Modern clients only | All clients |
When to Convert a Magnet Link to .Torrent
Some situations require a .torrent file instead of a magnet link:
- Older torrent clients that predate magnet link support
- Seedbox control panels that only accept .torrent file uploads
- Download managers like JDownloader that work with .torrent files
- Archiving — storing the torrent metadata locally
- Previewing the full file list before committing to download
Our free Magnet to Torrent converter fetches the metadata from the BitTorrent network and generates a standard .torrent file in seconds.
How to Convert a .Torrent File to a Magnet Link
If you have a .torrent file and need a magnet link, our Torrent to Magnet converter reads the file in your browser, computes the SHA-1 info-hash, and builds a complete magnet URI with all tracker URLs. The file is never uploaded — everything runs locally.
Why Some Magnet Links Stop Working
A magnet link itself never expires — the info-hash is permanent. However, downloads may fail if:
- No seeders remain on the network (the content is no longer being shared)
- The tracker URLs in the link are all offline and DHT is disabled in your client
- Your client has DHT blocked by a firewall
If trackers are the issue, our Torrent Editor can add fresh working public trackers to any .torrent file to revive stalled downloads.
Related Tools
- Magnet to Torrent — Convert magnet links to .torrent files
- Torrent to Magnet — Extract magnet links from .torrent files
- Torrent Editor — Fix dead trackers, edit metadata
- Pirate Bay Proxies — Find working TPB mirrors