A magnet link is a URI scheme used by peer-to-peer (P2P) file-sharing networks, particularly BitTorrent. Instead of pointing to a file hosted on a server, a magnet link encodes everything needed to locate and download a torrent directly: the info hash (a unique cryptographic identifier of the content), optional tracker URLs, and a display name. Because no central file is required, magnet links are resilient and compact.

Traditional .torrent files store the same information but as binary metadata files. Some BitTorrent clients, download managers, or automation scripts work better with .torrent files than with raw magnet URIs, making conversion between the two formats occasionally necessary.

Tool description

This tool converts a magnet link into a downloadable .torrent file. Paste a magnet URI into the input field, click Convert, and the tool parses the link to extract the info hash, display name, and tracker list. The resulting .torrent file can then be downloaded and opened in any compatible BitTorrent client.

Features

  • Magnet link parsing: Extracts the info hash, torrent name, and announce trackers from the URI.
  • Torrent file generation: Produces a valid .torrent binary file ready for use in any BitTorrent client.
  • One-click download: Downloads the generated file directly to your device with a meaningful filename.
  • Validation: Detects and reports invalid or malformed magnet links before attempting conversion.
  • Tracker list display: Shows all tracker URLs embedded in the magnet link.

How it works

A magnet link encodes the info hash (xt=urn:btih:...) and optional parameters such as the display name (dn=) and trackers (tr=). This tool parses those parameters and uses them to construct a minimal .torrent metadata file containing the same information. The resulting file is compatible with any standard BitTorrent client.

Note that because magnet links do not include the full piece-hash tree, the generated .torrent file is a stub — it is sufficient for most clients to begin downloading, but it does not contain the detailed file metadata that a full .torrent file downloaded from a tracker would have.

Use cases

  • Client compatibility: Use .torrent files with download managers or older BitTorrent clients that do not support magnet links natively.
  • Automation: Convert magnet links to files for batch processing or integration with torrent automation tools that expect .torrent file inputs.
  • Archiving: Store torrent metadata as a file for later use without needing to re-fetch the magnet link.