deftools.io Developer Tools

🧲 Torrent Decoder

Decode .torrent files — view file list with sizes, trackers, infohash, and creation date.

About this tool

A .torrent file is a metadata container used by BitTorrent clients. It uses bencode (pronounced "bee-encode") — a compact binary encoding with four types: strings, integers, lists, and dictionaries. The torrent file describes what to download (file names and sizes), where to find peers (trackers), and how to verify data integrity (piece hashes).

The InfoHash is the SHA-1 hash of the bencoded info dictionary. It uniquely identifies the torrent content across the entire BitTorrent network and is used in magnet links (magnet:?xt=urn:btih:...).

Paste a .torrent file or click the sample button to see a decoded example: file list with sizes, tracker URLs, creation date, piece size and count, and the magnet link.

FAQ

What is bencode?

Bencode is the encoding format used by BitTorrent for .torrent files, tracker responses, and peer communication. It supports four data types: byte strings (e.g. <code>4:spam</code>), integers (<code>i42e</code>), lists (<code>l...e</code>), and dictionaries (<code>d...e</code>). It is designed to be simple to parse and compact.

What is an InfoHash and why does it matter?

The InfoHash is a 40-character hex string — the SHA-1 digest of the bencoded <code>info</code> dictionary. It serves as the torrent's unique identifier across the BitTorrent DHT, trackers, and magnet links. Two .torrent files with the same InfoHash point to the same content.

Does this tool connect to any trackers or download anything?

No. The tool parses the .torrent file metadata entirely in your browser. It extracts trackers, file names, sizes, and piece information for inspection, but it never contacts any server or starts any download.

Why are there multiple tracker URLs?

Torrent files often include several trackers in <strong>tiers</strong> (announce-list). Within a tier, URLs are tried concurrently; tiers are tried sequentially. This provides redundancy — if one tracker is down, your client falls back to others.

More developer tools

Copied!