# How to Open and Play a Magnet Link on Windows, Mac, Linux

Canonical URL: https://torrentplayer.io/blog/how-to-play-magnet-link/ · Published 2026-10-20 · Updated 2026-10-22 · By the TorrentPlayer team

> **Short answer:** A magnet link is not a file, it is an address for a torrent, so you need a torrent app to open it. Copy the link and paste it into a torrent client or a torrent streaming player, or set that app as your system's handler for magnet links so clicking one opens it directly. To watch instead of waiting for the whole download, use a player that streams or a client with sequential download.

The quickest way to open any magnet link, on any system, is copy and paste. Right-click the link in your browser, choose to copy the link address, then paste it into your torrent app. Every BitTorrent client and streaming player accepts pasted magnet links, and you avoid all the default-app plumbing. The rest of this guide covers what the link actually is, how to make a click open it, how to play it straight away, and what to do when it will not budge.

## What a magnet link is

A magnet link is a short piece of text that identifies a torrent by its fingerprint instead of pointing to a file on a server. Here is the magnet link for Sintel, Blender's open movie (licensed CC BY 3.0), from WebTorrent's [free torrents page](https://webtorrent.io/free-torrents), shortened to one of its trackers:

```
magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337
```

It has a few parts, defined in the BitTorrent specification [BEP 9](https://www.bittorrent.org/beps/bep_0009.html):

| Part | Name | What it does |
| --- | --- | --- |
| `xt=urn:btih:…` | Exact topic | The info hash: 40 hex characters that identify the torrent. The only required part. |
| `dn=` | Display name | A name your app can show while it waits. |
| `tr=` | Tracker | A server that lists peers. Optional, and there can be several. |
| `x.pe=` | Peer address | A specific peer to ask first. Optional and rare. |

Newer torrents may use `xt=urn:btmh:` instead, which carries a version 2 info hash. Some links carry extra parameters too; the full Sintel link, for example, lists eight trackers and adds a web seed (`ws=`), a web server that holds the same file.

### What happens when you open one

A magnet link does not contain the list of files, their sizes, or the hashes of each piece. That information, the torrent's metadata, has to come from other people. So your app:

1. **Finds peers.** It asks the trackers in the link, if there are any, and looks up the info hash in the DHT, a distributed table that BitTorrent clients share among themselves. BEP 9 says a client with no trackers should use the DHT.
2. **Downloads the metadata from those peers.** Peers that support the metadata extension send it in 16 KiB blocks.
3. **Checks it.** The app hashes the metadata it received and compares the result with the info hash in the link. If they match, nobody tampered with it.
4. **Starts the normal download.** From here, a magnet link behaves exactly like a `.torrent` file.

This is why a magnet link can sit on "downloading metadata" for a while: step 2 needs at least one peer that has the torrent. A `.torrent` file skips straight to step 4, because the metadata is already inside it.

## How to open a magnet link in your app

Each app has its own place for this. A few examples:

- **qBittorrent:** choose **File → Add Torrent Link...**, paste the link into the box (one link per line; magnet links, HTTP links, and bare info hashes all work), and confirm.
- **[TorrentPlayer](https://torrentplayer.io/):** paste the link into the search box, which also accepts magnet links and links to `.torrent` files.
- **WebTorrent in the browser** ([Instant.io](https://instant.io)): paste the link into the field labelled **Download from a magnet link or info hash**.
## Make magnet links open when you click them

When you click a magnet link in a browser, the browser hands it to whichever app your operating system has registered for `magnet:` links. If nothing is registered, nothing happens. Installers often register the app as able to handle magnet links (qBittorrent's Windows installer does), but if you have several apps, or the setting got lost, you can choose yourself.

### Windows 10 and 11

1. Open **Settings → Apps → Default apps**. A shortcut: press Windows+R, type `ms-settings:defaultapps`, and press Enter.
2. Under **Set a default for a file type or link type**, type `magnet` in the search box.
3. Select the magnet result and choose the app you want from the list.

If your app is missing from the list, it has not registered itself for magnet links. qBittorrent's options include a shortcut to the same page: **Tools → Options → Behavior**, under **File association**, there is a button labelled **Open Windows Default Apps settings page**.

### macOS

On a Mac, you normally set this inside the torrent app:

- **qBittorrent:** open its settings, go to **Behavior**, and under **File association** tick **Use qBittorrent for magnet links**.
- **Transmission:** open its settings, go to the **General** pane, and next to **Accept magnet links** click **Set Default Application**.

For `.torrent` files, as opposed to links, macOS has its own method: select a `.torrent` file in the Finder, choose **File → Get Info**, open the **Open with** section, pick an app, and click **Change All**.

### Linux

Most desktops follow the freedesktop.org standard, where a link type is a pseudo-MIME type called `x-scheme-handler/magnet`. Check the current handler from a terminal:

```
xdg-mime query default x-scheme-handler/magnet
```

Set a new one by naming the app's `.desktop` file:

```
xdg-mime default org.qbittorrent.qBittorrent.desktop x-scheme-handler/magnet
```

The file name varies by app and by how you installed it; look in `/usr/share/applications` or `~/.local/share/applications` for the right one. The app's `.desktop` file must list `x-scheme-handler/magnet` in its `MimeType` line (qBittorrent's does). Run the command as your normal user, not with `sudo`. `xdg-settings set default-url-scheme-handler magnet <app>.desktop` does the same job.

### In the browser

Browsers add one more step. Chrome, Edge, and other Chromium-based browsers ask for confirmation before handing a link to an outside app, and the prompt can include a checkbox to always allow that site to open links of this type. Firefox keeps the choice in its settings: open **Settings**, find the **Applications** section (typing `magnet` in the settings search box gets you there), and set the **Action** for magnet links to **Always ask**, your system's default application, or **Use other…** to pick an app.

## How to play a magnet link instead of downloading it all

Opening a magnet link in a regular client downloads the whole torrent, in no particular order, before you can watch anything. To start watching within seconds, you have three options, each covered step by step in [how to stream a torrent without downloading it first](https://torrentplayer.io/blog/stream-torrent-without-downloading/):

- **A streaming player.** TorrentPlayer fetches the part you are watching first and, when you skip, fetches that exact spot next. It is free, open source, and runs on Windows, macOS, and Linux. It is also an early preview with unsigned installers, so your system will warn you on install, and it plays the Dolby or DTS audio some films use by converting it to stereo AAC. It does not register itself as the system's magnet handler, so paste the link in. Since version 0.2.0, magnet links stream through TorrentPlayer's own engine too (an embedded librqbit only fetches their metadata).
- **A client with sequential download, plus VLC or mpv.** In qBittorrent, tick **Download in sequential order** and **Download first and last pieces first** (in the add-torrent window or the torrent's right-click menu), wait for a few percent, then open the file in your player. Skipping ahead past the downloaded part will not work. [Sequential download explained](https://torrentplayer.io/blog/sequential-download-explained/) covers how this works and what it costs the swarm.
- **WebTorrent in a browser.** Paste the link into Instant.io and play the file in the page. It can only connect to peers that support WebRTC, so many ordinary torrents find no peers there, and it fully supports only MP4-family files.

For Sintel, any of the three works. The torrent is a 129 MB MP4 with subtitle files, small enough to test with.

## Troubleshooting

### Nothing happens when you click a magnet link

No app is registered for magnet links, or the browser blocked the hand-off.

- Copy the link and paste it into your app. If that works, the problem is only the default-app setting; fix it with the steps for your system above.
- Check whether the browser showed a prompt you dismissed. In Firefox, look at the magnet entry under **Applications**; if it is set to an app you uninstalled, change it.
- On Windows, if your app is not in the list for MAGNET, reinstall it or use its own setting (qBittorrent's button above).
- On Linux, run the `xdg-mime query` command. If it prints nothing, or a `.desktop` file that no longer exists, set it again.

### Stuck on "downloading metadata"

qBittorrent shows this status as **Downloading metadata**; other apps call it retrieving or fetching metadata. It means your app has not yet found a peer willing to send the torrent's metadata.

- **Give it a minute or two.** DHT lookups for an uncommon torrent can take a while.
- **Check that the DHT is on.** A magnet link with no `tr=` trackers depends on the DHT to find its first peers. In qBittorrent it is under **Tools → Options → BitTorrent**, labelled **Enable DHT (decentralized network) to find more peers**.
- **Look at your connection setup.** A firewall, a VPN that blocks peer-to-peer traffic, or a proxy can stop both trackers and the DHT from answering. Some apps also turn the DHT off in protected modes. TorrentPlayer runs it inside its built-in WireGuard tunnel, but behind a SOCKS5 proxy that cannot carry UDP it has no DHT, so a magnet link without trackers has nothing to find peers with there.
- **Try the `.torrent` file instead.** If the site offers one, it contains the metadata, so this step disappears.
- **Accept that the torrent may be dead.** If nobody who has it is online, no setting will help.

### Metadata arrives, but there are no peers or it will not start

Once the file list appears, the problem is the swarm or your connection, not the link.

- Look at the seed and peer counts. Zero seeds and a handful of peers usually means the torrent is too old or too obscure; there is not much you can do but wait.
- Check that your client's listening port is open and not blocked by a firewall or router, and that your VPN, if you use one, allows peer-to-peer traffic. [Why a torrent is slow or stuck](https://torrentplayer.io/blog/torrent-slow-or-stuck/) goes through each cause in order.
### The link opens in the wrong app

Two apps both registered themselves, and the wrong one won. Set the default again using the steps for your system. On a Mac, use the setting in the app you do want, so it takes the link type back.

### Is it safe to open a magnet link?

The link itself is plain text and cannot run anything. What it downloads can. A video torrent should contain video files and perhaps subtitles; if it contains a `.exe`, `.scr`, or `.lnk` file, or an archive with a password, delete it. And while a magnet link is downloading, your IP address is visible to everyone in the swarm. That is fine for open movies, Linux ISOs, and public-domain films; for copyrighted material shared without permission it usually is not. [Is torrenting legal?](https://torrentplayer.io/blog/is-torrenting-legal/) explains the general principles; it is not legal advice.

## Sources

- [BEP 9: Extension for Peers to Send Metadata Files (magnet URI format)](https://www.bittorrent.org/beps/bep_0009.html)
- [Microsoft Support: Change default apps in Windows](https://support.microsoft.com/en-us/windows/change-default-apps-in-windows-e5d82cad-17d1-c53b-3505-f10a32e1894d)
- [Apple Support: Choose an app to open a file on Mac](https://support.apple.com/guide/mac-help/choose-an-app-to-open-a-file-on-mac-mh35597/mac)
- [freedesktop.org: xdg-mime](https://portland.freedesktop.org/doc/xdg-mime.html) and [xdg-settings](https://portland.freedesktop.org/doc/xdg-settings.html)
- [qBittorrent 5.3.0 source: options](https://github.com/qbittorrent/qBittorrent/blob/release-5.3.0/src/gui/optionsdialog.ui) and [their per-platform behaviour](https://github.com/qbittorrent/qBittorrent/blob/release-5.3.0/src/gui/optionsdialog.cpp), [main menu](https://github.com/qbittorrent/qBittorrent/blob/release-5.3.0/src/gui/mainwindow.ui), [Add torrent links dialog](https://github.com/qbittorrent/qBittorrent/blob/release-5.3.0/src/gui/downloadfromurldialog.ui), [torrent states](https://github.com/qbittorrent/qBittorrent/blob/release-5.3.0/src/gui/transferlistmodel.cpp), and [desktop file](https://github.com/qbittorrent/qBittorrent/blob/release-5.3.0/dist/unix/org.qbittorrent.qBittorrent.desktop)
- [Transmission source: macOS settings window](https://github.com/transmission/transmission/blob/main/macosx/Base.lproj/PrefsWindow.xib)
- [Firefox source: settings strings for Applications](https://github.com/mozilla-firefox/firefox/blob/main/browser/locales/en-US/browser/preferences/preferences.ftl)
- [Microsoft Edge policy: ExternalProtocolDialogShowAlwaysOpenCheckbox](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-browser-policies/externalprotocoldialogshowalwaysopencheckbox) and [Eric Lawrence: Bypassing AppProtocol Prompts](https://textslashplain.com/2020/02/20/bypassing-appprotocol-prompts/)
- [qBittorrent 5.3.0 Windows installer script](https://github.com/qbittorrent/qBittorrent/blob/release-5.3.0/dist/windows/installer.nsh)
- [WebTorrent FAQ](https://webtorrent.io/faq) and [free torrents](https://webtorrent.io/free-torrents)
- [Instant.io source](https://github.com/webtorrent/instant.io)
- [Sintel: About (licence)](https://durian.blender.org/about/)
- [TorrentPlayer on GitHub](https://github.com/torrentplayer/torrentplayer)

Checked on 22 October 2026.
