Convert Bencode to XML instantly. Paste or upload Bencode, unwrap dictionaries and lists into clean XML, and export with live preview no upload required.
How to Use:
- Paste Bencode into the input box or use Choose File to upload
.txt
,.bencode
, or.torrent
- Toggle Wrap in root element to enclose output inside
<root>
tags - Enable Maximize output to enlarge the preview area
- Click Convert to generate the XML (auto-updates when input changes)
- Click Copy Output to copy the XML
- Click Export to File to download it as
.xml
- Use Clear All to reset input, output, and all options
What Convert Bencode to XML can do:
Convert Bencode to XML decodes bencoded data (used in torrent files and other binary-efficient formats) into a structured, readable XML format. It supports decoding dictionaries, lists, integers, and strings, then maps them into nested XML. Toggle a root wrapper to keep output compliant for external XML parsers. This tool is ideal for debugging .torrent files or converting lightweight binary configs into XML for other tools, editors, or web previews.
Example:
Input Bencode:
d4:name5:Alice3:agei30e5:hobbyl6:chess6:tennisee
Output XML:
<root>
<name>Alice</name>
<age>30</age>
<hobby>chess</hobby>
<hobby>tennis</hobby>
</root>
Common Use Cases:
Use Convert Bencode to XML to inspect torrent metadata, convert serialized data into readable form, migrate bencoded config into XML-based pipelines, or simply study how Bencode structures map to standard formats. Great for developers working with magnet links, p2p tooling, embedded Bencode, or test fixtures.
Useful Tools & Suggestions:
After converting Bencode, it’s smart to run Validate XML to catch any structural issues early. And if you want to make the result easier to explore, Prettify XML helps format everything cleanly for reading or editing.