Developer Tools
Magnet Link Decoder
Decode a magnet URI in your browser. Extract the BTIH or BTMH info hash, display name, trackers, web seeds, file size, and selection.
Paste a magnet URI to break it into its info hash, display name, trackers, web seeds, file size, and any selection or peer hints. Parsing runs in your browser.
Summary
- Display name
- ubuntu-24.04-desktop-amd64.iso
- File size
- 5.78 GB (6,203,355,136 bytes)
- Info hashes
- 1
- Trackers
- 3
Primary info hash
b415c913643e5ff49fe37d304bbb5e6e11ad5101
BitTorrent v1 info hash (SHA-1) (20 bytes)
xt: exact topic (1)
The URN that identifies the content. BitTorrent clients ignore a magnet link with no xt.
BitTorrent v1 info hash (SHA-1)
urn:btihAs written
urn:btih:b415c913643e5ff49fe37d304bbb5e6e11ad5101
Lowercase hex
b415c913643e5ff49fe37d304bbb5e6e11ad5101
Base32 (RFC 4648)
WQK4SE3EHZP7JH7DPUYEXO26NYI22UIB
tr: trackers (3)
Announce URLs the client should contact to find peers. UDP is the most common scheme; HTTP and WebSocket trackers appear too.
- udp
udp://tracker.opentrackr.org:1337/announce
Host tracker.opentrackr.org on port 1337, path /announce
- udp
udp://tracker.openbittorrent.com:6969/announce
Host tracker.openbittorrent.com on port 6969, path /announce
- https
https://torrent.ubuntu.com/announce
Host torrent.ubuntu.com on port 443, path /announce
Magnet URI parameter reference
Quick reference to every documented magnet URI parameter and what it means.
- xt
- exact topic. The URN that identifies the content. urn:btih (BitTorrent v1 SHA-1), urn:btmh (BitTorrent v2 multihash), urn:sha1, urn:ed2k, urn:tree:tiger, urn:aich, urn:md5.
- dn
- display name. URL-encoded UTF-8 filename for the client to show.
- tr
- tracker. Announce URL. Repeats once per tracker. udp, http(s), and ws(s) are the standard schemes.
- xl
- exact length. File size in bytes as a non-negative integer.
- xs
- exact source. A direct download URL that includes a hash check.
- as
- acceptable source. A fallback HTTP or FTP source for the same content.
- ws
- web seed. HTTP source for piece-level seeding (BEP-19).
- kt
- keyword topic. Plus-separated search terms for Gnutella-style magnet search.
- mt
- manifest topic. URI of a list of related magnet links.
- so
- select-only. Zero-based file indices to download, comma separated, with ranges allowed (BEP-53).
- x.pe
- direct peer address. host:port or [ipv6]:port for clients that want to contact peers without a tracker.
How to use
- Paste a magnet link into the input. The decoder runs as you type. Use the sample buttons to load common shapes: a plain BTIH v1 link, a v1 + v2 hybrid link, a link with web seeds and file selection, an old base32 BTIH, an ED2K example, and a keyword-only magnet.
- Read the summary card for the display name, file size, info hash count, and tracker count, plus the primary info hash in canonical lowercase hex.
- Open the xt section to inspect each URN. BTIH base32 values are converted to hex (and vice versa) so you can copy whichever form your tracker or indexer expects.
- Use the trackers list to copy a single tracker, copy all trackers at once, and confirm each scheme, host, and port. Web seed (ws), exact source (xs), and acceptable source (as) URLs appear in the Web sources panel.
- Watch the Notes panel for spec compliance warnings: missing xt, bad hash length, unknown URN namespaces, non-standard tracker schemes, or anything else that BitTorrent clients are likely to ignore.
About this tool
Magnet Link Decoder takes any magnet: URI and breaks it into the structured fields a BitTorrent (or eDonkey, or Gnutella) client uses to find and verify content. The decoder is fully spec-aware: it recognises every documented xt namespace (urn:btih for BitTorrent v1 SHA-1 info hashes, urn:btmh for BitTorrent v2 multihash info hashes, urn:sha1, urn:ed2k MD4, urn:tree:tiger TTH, urn:aich, urn:kzhash, urn:md5), and it normalises each hash to lowercase hex so the value you copy matches what tracker dashboards and torrent search engines expect. Older clients often publish the BTIH as 32 base32 characters; the decoder converts it back to the canonical 40 character hex form (and to base32 the other way, when you started from hex). The display name (dn), file size (xl with a human readable byte total), and tracker list (tr) are surfaced as separate copyable fields. Tracker URLs are inspected so the scheme (udp, http, https, ws, wss), host, port, and announce path are visible at a glance, with warnings for any non-standard tracker scheme. Web sources (ws web seeds, xs exact source URLs, as acceptable fallback sources) are grouped together, file selection lists (so) are expanded from BEP-53 ranges into a chip list of individual file indices, keyword topics (kt) are split on the plus separator, and direct peer addresses (x.pe) are surfaced one per line. Anything outside the standard vocabulary lands in an Other parameters section so you can see exactly what a non-spec client added without losing the values. A parameter reference at the bottom of the page documents every magnet URI field in one place. All parsing, hash normalisation, and URL splitting run in your browser; the magnet link you paste is not uploaded or transmitted anywhere.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
URL Parser
Break a URL into protocol, host, path, query params, and fragment with decoded values.
Open tool
DeveloperURL Encoder Decoder
Encode and decode percent-encoded URLs.
Open tool
DeveloperData URI Decoder
MIME, charset, bytes, and a preview for any data: URI.
Open tool
Securityotpauth URI Parser
Decode otpauth:// TOTP and HOTP setup URIs with live code preview and validation.
Open tool
DeveloperUUID Validator
Validate UUIDs, identify the version and variant, and decode v1, v6, and v7 timestamps.
Open tool