bencode (as detailed on the wiki page) is the file format used by torrent files to store the tracking and piece data in a compact binary format.

This simple library lets you process torrent those torrent files, and present the information in JSON very simply.

The library is worth your attention because:

  • It has no dependancies, or external requirements
  • Is written in (very) simple JS; not Coffeescript or other variations
  • Has a working demo
  • It just works
I wrote it as an acadamic exercise, so have no plans beyond bug fixes, but I'm sure I'm invent new and wonderous things to add. However, the 'pure and simple' approach will remain.


Drag and drop a torrent (or other bencode'd) file here:

Or click for the live bencode demo.


The full source to bencode is available on Github!