Developer Tools

Bencode Parser for BitTorrent and DHT Data

Decode Bencode strings used in torrent files and DHT messages (i..e, d..e boundaries) into readable JSON structures in the browser.

EncodeParserP2P
Quick switch:JSON Formatter

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Debug raw DHT handshake payloads from crawlers
  • Inspect torrent metadata structures

How to use

  1. Paste a Bencode string such as d4:info...
  2. Review JSON or tree output on the right

Example input and output

Bencode

d3:bar4:spam3:fooi42ee

JSON

{"bar": "spam", "foo": 42}

FAQ

What about binary data?

The tool targets UTF-8/ASCII text; binary garbage may break field parsing.

Tools

Related tools

Continue with another translated tool for a nearby task.

JSON Formatter

JSON Formatter and Validator Online

Available

Format, minify, sort, and validate JSON in your browser. Parsing errors include location details, and your data never leaves the page.

JSON Formatter Developer