I have a Torrent app running on my home server that has an outdated but pretty useful web interface. The one problem is that it doesn't take magnet links, only .torrent files. I'd like to continue using this and not have to bother with finding a different program.

Given that magnet links are just a pointer to download the torrent file from the swarm, I'm hoping there's a program out there that will take a magnet link and spit out a .torrent only. I know I could put it into µTorrent and grab the file from the app's directory, but that's a bit roundabout, and I'd like something that will do it semi-unattented. Preferably for OS X, but Linux (or a web app) would work too.


In order to do this, you would pretty much have to do it the roundabout way. A magnet link downloads the .torrent file by torrenting it from the peers, as you've said, so you would basically need a torrenting app to get this done. This could be avoided if there is a site that runs the magnet, downloads the torrent and then hosts it for downloading, but I don't know of any such site.

  • As noted in my answer, I did eventually find sites that do in fact cache torrents based off Magnet URIs. – robmathers Nov 14 '12 at 3:38

I solved this not the way I was expecting, but rather I came across sites that cache most publicly available torrents, and provide access to them via the Magnet URI hash. It's fairly easy to create a simple macro to generate a URL from one of these sites for any given torrent (in my experience they don't seem to have a 100% cache rate, but between two or three of them, you can find anything from The Pirate Bay).

The ones I've come across all use the open source Torrage code, and include Torrage.com, Torcache.net and Zoink.it.


Yes, for example torrent-infohash. Install Go, and go get github.com/anacrolix/torrent/cmd/magnet-metainfo. Then execute it:

"$GOBIN"/magnet-metainfo "$MAGNET_URI"

The torrent file is downloaded via DHT to the working directory.

  • It's unclear how to install it under windows. – Smit Johnth Apr 17 '18 at 20:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.