How to Use Magnet Links
Learn how to use magnet links to download files using BitTorrent. Covers what magnet links are, how they work, which torrent client to use, troubleshooting slow downloads, and staying safe.
A magnet link is a short line of text that lets you download files through BitTorrent without needing a separate .torrent file. You have probably seen them before. They start with magnet:? and are followed by a long string of characters that looks like nonsense. That string is actually a unique fingerprint of the file you want to download, and it is all your torrent client needs to find the content and start pulling it in.
Magnet links were created in 2002 by Gordon Mohr as part of the Bitzi project. They were designed to identify files by their content rather than their location. Instead of pointing to a server where a file lives, a magnet link describes what the file is. As long as someone, somewhere on the internet has that file and is sharing it, your torrent client can find them and download it.
The technology became mainstream in 2012 when The Pirate Bay switched from hosting .torrent files to using magnet links exclusively. Today, magnet links are the standard way files are shared across BitTorrent. Linux distributions, the Internet Archive, academic research datasets, and open-source software projects all use them.
This guide walks you through exactly how magnet links work, how to set up a torrent client, and how to use magnet links safely. No technical background required.
Understand what a magnet link actually is
A magnet link is a URI (Uniform Resource Identifier) that identifies a file by its content, not its location. The core of every magnet link is a cryptographic hash, a unique fingerprint generated from the file's contents. Two identical files always produce the same hash, no matter where they are stored or who is sharing them. The hash is encoded in the xt parameter of the link. For BitTorrent, it looks like xt=urn:btih: followed by either a 40-character hexadecimal string or a 32-character Base32 string. Both formats represent the same 20-byte SHA-1 hash. A magnet link can also include a dn (display name) parameter so your client shows a human-readable filename, and one or more tr (tracker) parameters that point to servers that help your client find other people sharing the file. In practice, most magnet links you encounter contain just the hash, a display name, and a couple of tracker URLs. That is all your torrent client needs to locate the file across the entire BitTorrent network and start downloading.
Install a torrent client
You need a BitTorrent client to use magnet links. We recommend qBittorrent. It is free, open source, available on Windows, macOS, and Linux, and it does not contain ads or bundled software. Download it from the official qBittorrent website and install it like any other application. Two other solid options are Transmission (lightweight, popular on macOS and Linux) and Deluge (plugin-based, supports remote web management). All three handle magnet links well. Avoid torrent clients that bundle adware, cryptocurrency miners, or other unwanted software. If the installer tries to add toolbars, change your homepage, or install additional programs, cancel and pick a different client. During installation, make sure to check the box that says something like "Associate with magnet links" or "Register as magnet URI handler." This tells your operating system to open magnet links in your torrent client automatically when you click them in a browser.
Good to know: After installing, open your client's settings and enable DHT (Distributed Hash Table) and PEX (Peer Exchange). These are usually on by default, but double-check. DHT lets your client find peers without relying on tracker servers, and PEX lets peers share their lists of other peers with each other. Both are essential for magnet links to work reliably.
Open a magnet link
There are two ways to use a magnet link. The first is clicking it directly. When you click a magnet link on a website, your browser recognizes the magnet: protocol and asks which application to use. Select your torrent client. Some browsers remember this choice so you only have to pick once. Your client opens, fetches the file metadata from the network, shows you the file details, and starts downloading. The second method is copying and pasting. Right-click the magnet link and select "Copy link address." Then open your torrent client and paste it in. In qBittorrent, go to File and then Add Torrent Link, or press Ctrl+Shift+O on Windows or Cmd+Shift+O on Mac. Paste the link and click Download. In Transmission, press Ctrl+O, click Open URL, and paste. In Deluge, click the green plus icon and paste the link into the URL field. The copy-paste method is useful when a browser does not handle magnet links properly or when you want to review the link before opening it.
Wait for metadata and choose your files
After you open a magnet link, your client needs a moment to fetch the file metadata from other peers on the network. This is the main difference between magnet links and .torrent files. With a .torrent file, your client already has the full file list and piece information. With a magnet link, it has to discover that information first. You will see a status like "Fetching metadata" or "Downloading metadata" for anywhere from a few seconds to a couple of minutes, depending on how many people are sharing the file. Once the metadata arrives, your client shows the full file list. If the torrent contains multiple files, you can choose which ones to download and skip the rest. This is especially useful for large archives where you only need specific files. After you select your files and confirm, the actual download begins. Your client connects to multiple peers simultaneously and downloads different pieces of the file from each one, then assembles them in the correct order.
Heads up: If metadata fetching takes more than five minutes, the torrent may have very few active peers or may be dead entirely. Check the seed and peer counts in your client. If both show zero, nobody is currently sharing the file and the download cannot proceed.
Configure your client for faster downloads
Out of the box, most torrent clients work fine. But a few settings can significantly improve your download speeds. First, set up port forwarding. Your torrent client listens on a specific port for incoming connections from other peers. If your router blocks that port, you can still download but only from peers that you initiate connections to, which cuts your potential speed roughly in half. Log into your router's admin panel (usually 192.168.1.1 or 192.168.0.1 in a browser), find the port forwarding section, and forward your client's listening port (both TCP and UDP) to your computer's local IP address. Use a port in the 49160 to 65534 range. Some ISPs throttle traffic on the common BitTorrent ports in the 6880 to 6890 range. Alternatively, enable UPnP or NAT-PMP in your client's settings. These protocols ask your router to open the port automatically. They work on most modern routers without manual configuration. Second, check your firewall. On Windows, go to Windows Security, then Firewall and network protection, then Allow an app through firewall. Make sure your torrent client is allowed on both private and public networks. On macOS, go to System Settings, then Network, then Firewall, then Options, and allow incoming connections for your client.
Find magnet links from legitimate sources
Magnet links are just a delivery mechanism. The legality and safety of using one depends entirely on the content being shared. There are many large, legitimate sources. Most major Linux distributions provide official magnet links on their download pages. Ubuntu, Fedora, Debian, Arch Linux, and dozens of others offer torrents as a faster alternative to direct downloads. The Internet Archive has provided BitTorrent downloads since 2012 for over 1.3 million items, including public domain books, films, music, and historical software. Academic Torrents is a platform built by researchers for sharing massive datasets and academic papers. Open-source projects like LibreOffice and Blender distribute releases via torrent to reduce server load. FOSS Torrents is a dedicated service that provides magnet links specifically for free and open-source software distributions. When evaluating a magnet link from any source, check the seed count (more seeds means faster and more reliable downloads), read user comments if available, and verify that the file size matches what you expect. An unusually small or large file relative to what it claims to be is a red flag.
Good to know: When you finish downloading, leave your torrent client open and keep seeding. Seeding means you share the file with other people who are still downloading. The entire BitTorrent system depends on people seeding after they finish. A good ratio to aim for is 1.0, meaning you have uploaded as much as you downloaded.
Stay safe when using magnet links
The magnet link itself is harmless. It is just a text string containing a hash. The risk comes from what you download and where you get it. Always scan downloaded files with updated antivirus software before opening them, especially executable files like .exe, .msi, .dmg, or .sh. Use a reputable, open-source torrent client like qBittorrent that has been widely reviewed and does not bundle unwanted software. Enable protocol encryption in your client's connection settings. Most clients offer options like "prefer encryption" or "require encryption" for peer connections. This prevents your ISP from inspecting the contents of your torrent traffic. If privacy is a concern, consider using a VPN. A VPN encrypts your internet connection and hides your IP address from other peers in the swarm. Without a VPN, every peer you connect to can see your IP address. This is a privacy measure, not a security measure, but it is worth being aware of. Finally, stick to well-known sources and avoid downloading content that seems too good to be true. Files claiming to be premium software or paid content distributed for free are the most common vectors for malware.
Magnet links are one of those technologies that seem intimidating until you actually use them. The entire process is: install a torrent client, click a link, wait for the download. That is genuinely it. The underlying technology is elegant. A short string of text, containing nothing but a cryptographic hash, is enough to find and download any file from a decentralized network of millions of computers. No central server required. No single point of failure. The system has been running reliably for over two decades. Once your client is set up and your ports are configured, magnet links become as simple as clicking any other download link. The only difference is that you are downloading from other people instead of a single server, which often makes large downloads faster, not slower.
Questions we get asked about this
Answers from experience, not a textbook.
A .torrent file is a small binary file that contains the full metadata for a download, including the file list, piece sizes, piece hashes, and tracker URLs. Your client reads it and immediately knows what to download. A magnet link is a text string that contains only the content hash and optionally a display name and tracker URLs. Your client has to discover the rest of the metadata from other peers before the download can begin. The end result is the same. The only practical difference is a brief delay at the start while your client fetches metadata when using a magnet link.
Magnet links themselves are completely legal. They are just a text format for identifying files by their content hash. The legality depends entirely on what you download. Downloading Linux distributions, public domain content from the Internet Archive, academic datasets, and open-source software is perfectly legal. Downloading copyrighted content without permission is not. The technology is neutral. It is the same as asking whether web links are legal.
Your client needs to find at least one peer who has the metadata before it can start downloading. If this takes a long time, there may be very few people sharing the file, or your DHT might be disabled. Open your client's settings and make sure DHT and PEX are both enabled. Also check that your firewall is not blocking your client. If the torrent has zero seeds and zero peers, nobody is currently sharing it and the metadata cannot be fetched.
Magnet links do not expire in the traditional sense. The hash in the link is permanent and will always identify the same content. However, a magnet link becomes useless if nobody on the network is sharing the file anymore. If all seeds and peers go offline, the link still exists but there is nobody to download from. Popular files with many seeders stay available for years. Obscure files with one or two seeders can disappear when those people go offline.
Yes. Any torrent client can generate a magnet link from a .torrent file or from a torrent you are currently seeding. In qBittorrent, right-click a torrent and select Copy Magnet Link. You can share that text string with anyone. They paste it into their client and download the file from you and anyone else who is seeding. You can also create a new torrent from any file on your computer using your client's built-in torrent creator, then generate a magnet link from it.
Seeding means keeping your torrent client open after a download finishes so that other people can download pieces of the file from you. BitTorrent is a peer-to-peer system, which means there is no central server hosting the file. Every downloader also becomes an uploader. If everyone stopped seeding the moment their download finished, the file would become unavailable almost immediately. Aim for a share ratio of at least 1.0, meaning you have uploaded as much data as you downloaded.