.MAGNET

MAGNET File

Magnet Link File
Ask a question
QUICK ANSWER

A .magnet file is a tiny text file containing a magnet link - a URI that tells a BitTorrent client what to download using a SHA-1 or SHA-256 hash, without a .torrent file. Open it with qBittorrent or Transmission (both free, open-source). The file itself is plain text and harmless; the risk is in what you download with it.

Developer: Community specification (Gordon Mohr, 2002; Magnet URI scheme - no single owner) Category: Misc Files Open standard MIME: application/x-magnet
OPENS ON Windows macOS Linux Android
Related: .TORRENT · .MSO · .MD5 · .SHS

On this page

19k+ extensions indexed
Last reviewed Jul 3, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the MAGNET file format?

A .magnet file is a plain-text file containing a single magnet: URI - a content identifier used by BitTorrent clients to locate and download files without requiring a separate .torrent descriptor file.

The magnet URI is a query string beginning with magnet:? followed by parameters: xt (exact topic - the infohash URN, the core identifier), dn (display name, optional), tr (tracker URL, optional and repeatable), and xl (exact length, optional). The xt value carries the content's cryptographic fingerprint: urn:btih: followed by a 40-character SHA-1 hex infohash for BitTorrent v1, or urn:btmh: with a 68-character SHA-256 hex hash in BitTorrent v2 (introduced 2020). Hybrid torrents include both xt parameters.

In practice, magnet links are almost always activated as clickable hyperlinks in a browser, which hands the magnet: URI directly to the registered torrent client via the OS URI handler - no file is saved to disk. A .magnet file appears when a web server forces a file download instead of triggering the handler, or when a user manually saves a link. The client then uses DHT (Distributed Hash Table) and peer exchange to retrieve torrent metadata, making a centralized tracker optional.

The scheme was proposed by Gordon Mohr and Bitzi in 2002 and gained broad adoption around 2009 when The Pirate Bay switched to magnet-only links. Compatible clients include qBittorrent, uTorrent, Transmission, and LibreTorrent.

Security & safety

RISK: MEDIUM

A .magnet file itself is plain text containing only a URI - it cannot harm your system when opened in a text editor, and a torrent client can't install malware by reading the URI. The risk lies in what you download with it: torrented content may be malware-laden, mislabelled, or copyrighted material. As with .torrent files, your IP address is visible to other peers. Use a reputable open-source client (qBittorrent, Transmission), avoid ad-laden or bundleware clients, and scan downloaded executables.

Format details

in a nutshell
FULL NAMEMagnet Link Fileaka magnet URI file, magnet link shortcut
DEVELOPERCommunity specification (Gordon Mohr, 2002; Magnet URI scheme - no single owner)since 2002 (Gordon Mohr / Bitzi; BitTorrent adoption ~2008)
CATEGORYMisc Files
MIME TYPEapplication/x-magnet
TYPEPlain-text file containing a magnet: URI (peer-to-peer content pointer)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001020304050607
HEX
6D61676E65743A3F
ASCII
magnet:?
A .magnet file is a plain-text file whose content is a magnet URI beginning with "magnet:?". There is no binary magic number. The file format is essentially a one-line text file (or a URL shortcut) containing the URI. The URI itself begins with the literal ASCII string "magnet:?" followed by query-string parameters.

Programs that open MAGNET files

Windows5 apps
uTorrent Freemium Double-click the .magnet file - uTorrent picks up the link. Free version works but shows ads; prefer qBittorrent.
qBittorrent Open-source Install qBittorrent; double-click the .magnet file - qBittorrent opens it and adds the download. Free, open-source, ad-free (recommended).
Transmission Open-source Drag the .magnet file onto the Transmission window, or open it via File > Open to add the download.
BitTorrent (official client) Freemium Double-click to open; BitTorrent client adds the download from the magnet URI.
Notepad / any text editor Open-source Open the .magnet file in a text editor to copy the magnet: URI and paste it directly into any torrent client's 'Add magnet link' dialog.
macOS3 apps
uTorrent Freemium Double-click to open. Note: the macOS version has not been updated recently.
qBittorrent Open-source Double-click or drag the .magnet file onto qBittorrent.
Transmission Open-source Double-click the .magnet file; Transmission opens it and starts the download.
Linux2 apps
qBittorrent Open-source Install via package manager; open the .magnet file or pass the URI to qBittorrent.
Transmission Open-source Default client on many distros; drag or open the .magnet file to add the download.
Android1 app
LibreTorrent Open-source Open the .magnet file - LibreTorrent picks up the URI. Free, open-source, ad-free.

Technical details

deep spec
ContentSingle `magnet:` URI (query-string format beginning with `magnet:?`)
EncodingASCII/UTF-8; non-ASCII characters are percent-encoded
ContainerPlain text - no binary structure
v1 infohashSHA-1, 40-character hex or 32-character Base32 - carried in `xt=urn:btih:` parameter
v2 infohashSHA-256, 68-character hex - carried in `xt=urn:btmh:` parameter (BitTorrent v2, 2020)
Optional parameters`dn` (display name), `tr` (tracker URL, repeatable), `xl` (exact length), `as` (acceptable source)
Tracker requirementOptional - client resolves peers via DHT and peer exchange without a tracker URL
Data integrityInfohash is the cryptographic fingerprint of content; client verifies all downloaded pieces against it
Typical file size100 bytes - 2 KB (a magnet URI is typically 100-500 characters)
MIME type`application/x-magnet`
Practical useUsually handled as a browser hyperlink via OS URI handler; `.magnet` files appear only when a server forces download of the URI
Released2002 (Gordon Mohr / Bitzi; BitTorrent adoption ~2008)
Latest versionBitTorrent v2 magnet (btmh: prefix with SHA-256, 2020)
Open standardYes · royalty-free
Specificationwww.bittorrent.org

MAGNET conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MAGNET files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about MAGNET files.

Frequently asked questions

What is a .magnet file?
A tiny text file containing a magnet link - a URI that tells a BitTorrent client what to download (identified by its SHA-1/SHA-256 hash) without needing a .torrent file.
How do I open a .magnet file?
Open it with a BitTorrent client: qBittorrent or Transmission (both free, open-source). Double-click the file and the client starts downloading. Alternatively, open in a text editor and paste the magnet: URI into your client.
What is the difference between a .magnet file and a magnet link?
A magnet link is a URI (magnet:?xt=...) embedded in a webpage - clicking it triggers your torrent client directly with no file saved. A .magnet file is that same URI saved as a file on disk. They are functionally identical.
What is the difference between a .magnet file and a .torrent file?
A .torrent file contains the torrent's full metadata (piece hashes, file list) stored locally. A .magnet file contains only a hash; the client fetches the metadata from the DHT network. Both result in the same download.
Is a .magnet file legal?
The magnet URI format and BitTorrent protocol are completely legal. Legality depends entirely on the content you download with it - legal for open-source software, Linux ISOs, and the Internet Archive; illegal for copyrighted films/music/software.
My magnet file won't open - what do I do?
You likely have no BitTorrent client registered for the magnet: URI scheme. Install qBittorrent or Transmission, then try again. You can also open the file in a text editor, copy the magnet: URI, and paste it into your client's 'Add magnet link' dialog.

References

1Magnet URI scheme - Wikipediaen.wikipedia.org
2BitTorrent BEP-9 - Extension for Peers to Send Metadata Fileswww.bittorrent.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.MDMarkdown Document
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.EXEWindows Executable (Portable Executable)
10.PRDXSoftMaker Presentations Document

Related extensions

.TORRENTBitTorrent Metainfo File
.MSOMicrosoft Office HTML/OLE Data Stream (oledata.mso)
.MD5MD5 Checksum File
.SHSShell Scrap Object File
.DDDAdobe Acrobat Distiller file
.DWLDrawing Lock File (CAD)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z