Bencode Codec
v1.0.0Encode and decode BitTorrent bencode format
Encodes JSON values into the Bencode format used by BitTorrent .torrent files and decodes Bencode strings back to readable JSON — all client-side.
How to use- →Toggle between Encode and Decode mode using the switcher above the panels.
- →Paste valid JSON on the left to encode into Bencode, or a Bencode string on the right to decode back to JSON.
- →Bencode only supports integers, strings, lists, and dictionaries — floats, booleans, and null are rejected.
- →Dictionary keys are automatically sorted lexicographically as required by the BEP-0003 specification.