# Magnet link to torrent file

> Markdown version of https://stella.sh/how/torrenting/convert-magnet-link-to-torrent-file for agents and LLMs.
> Got magnet links that won't open? Stella (stella.sh) turns them into torrent files, repairs broken ones and tells you what's inside each.

Give Stella (stella.sh) your magnet links. It turns them into torrent files, repairs the broken ones and lists what's inside, without downloading the contents.

## What you get

- A torrent file for every working link
- What's inside each one
- Which links are dead

## Ask Stella

> Turn the magnet links in magnets.txt into torrent files and tell me what's in each one and which don't work.

## An example chat

**You:** Turn the magnet links in magnets.txt into torrent files and tell me what's in each one and which don't work.

**Stella:** On it. Fetching only the file lists.

*Stella works on: Turning magnet links into torrents*
- Repairing two damaged links
- Fetching each file list
- Saving the torrent files

**Stella:** Four of your five links are now torrent files in **Downloads**: Popeye for President, two Alpine Linux releases and Debian 13.8.0. Nothing was downloaded. The newsletter link is dead, so ask for a fresh one.

Works on Windows, Mac, Linux.

## Questions

**Why won't my magnet link open?**
It's often cut off or mangled by the website it came from. Stella can often repair it.

**How do I open a magnet link?**
Click it with qBittorrent installed, or paste it in File → Add Torrent Link.

**Is Stella free?**
Yes. Free with the ChatGPT or Claude plan you already have.

## By hand

1. In qBittorrent, choose File → Add Torrent Link and paste the link. When the file list appears, click Save as .torrent file.
2. A working link starts magnet:?xt=urn:btih: and a long code. Change &amp; back to &, and join links split over two lines.
3. For a whole list, aria2 saves just the torrent files: aria2c --bt-metadata-only=true --bt-save-metadata=true -i links.txt.

## Related

- [How to make a torrent](https://stella.sh/how/torrenting/create-a-torrent-file.md)
- [qBittorrent stalled and not downloading](https://stella.sh/how/torrenting/fix-qbittorrent-stalled.md)
- [How to torrent with qBittorrent](https://stella.sh/how/torrenting/set-up-qbittorrent.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
