Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Converters

Torrent File Inspector

Open a BitTorrent metainfo file and see exactly what it describes: the announce and web-seed trackers, the torrent name, the piece length and piece count with the expected boundaries, the total size, and every file inside a multi-file torrent with its path and length. It computes the SHA-1 info-hash from the raw bencoded info dictionary — the same value a client derives — and shows it both as 40-character hex and as the 32-character base32 form used in magnet links, with a ready-to-copy magnet URI. It also validates the structure: piece hashes must be whole multiples of 20 bytes, lengths must be non-negative integers, and every required key must be present, so a malformed or truncated file is reported with the byte offset where decoding stopped. bencode is decoded on-device; nothing is uploaded and no tracker is contacted.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Drop a file here, or browse

Accepts: .torrent,application/x-bittorrent

Files stay on your device.

Ctrl+V to paste an image

    Options

    Drop a file above to begin

    Your file are processed on this device and never uploaded.

    How it works

    What it does

    Open a BitTorrent metainfo (.torrent) file and read exactly what it describes: the tracker announce URLs and web seeds, the torrent name, piece length and piece count, the total size, and — for a multi-file torrent — every file path and length. The info-hash is computed from the raw bencoded info dictionary with SHA-1, the same derivation a BitTorrent client performs, and is shown as hex and as the base32 form a magnet link embeds, with a ready-to-copy magnet URI.

    How the info-hash is derived

    The info-hash is not a hash of the file. It is the SHA-1 of the bencoded info dictionary verbatim, including its key ordering and every byte of nesting. That is why a torrent re-saved by a tool that rewrites bencoding gets a different hash even when the content is identical: the source of the hash is the exact encoded bytes, so the inspector hashes the decoded dictionary exactly as it appeared in the file rather than a re-serialised version.

    What the inspector validates

    A .torrent must be a bencoded dictionary whose info value carries name, piece length, a whole multiple of 20 raw piece-hash bytes, and either a length (single file) or a files list with non-negative lengths. Each check is reported with a reason and the byte offset where decoding stopped, so a truncated or re-combined file fails with a concrete message rather than a generic error.

    Privacy

    Everything runs in this tab. The file is decoded locally, the info-hash is computed locally, and no tracker, peer or other host is contacted: unlike opening the torrent in a client, this page makes no network requests at all.

    Questions

    Is the info-hash a hash of the files being shared?

    No. It is the SHA-1 of the torrent’s bencoded info dictionary — the metadata naming the file, its size and its piece boundaries. Two torrents of identical content but different piece sizes or directory names therefore have different hashes.

    Why does my magnet link use base32 while the hash column is hex?

    The raw info-hash is 20 bytes. The conventional display is 40 hex characters, but BitTorrent’s magnet URIs deliberately use 32 base32 characters because they are unambiguous case-insensitively. The inspector shows both so either form can be copied.

    What does "pieces not a whole multiple of 20" mean?

    Every piece hash is a SHA-1 digest, which is exactly 20 bytes. The concatenated pieces field must therefore be a multiple of 20; any remainder means the file is truncated or the piece length was misdeclared, and the torrent would fail piece-by-piece verification when downloaded.

    Can a tracker or a peer see that I inspected this?

    The page is fully client-side and makes no network requests. Opening a .torrent here never announces to a tracker, so nothing learns the file exists unless you choose to use the magnet link in a client.

    See category