bin2txt is a lightweight utility for converting between binary files (.bin) and human-readable text (.txt) in hexadecimal representation (16 bytes per line).
It also provides ASCII text → binary conversion for convenience.
- bin2txt: Convert binary file -> text file (hex dump, 16 bytes per line).
- txt2bin-hex: Convert hex text file -> binary file.
- txt2bin-ascii: Convert ASCII text -> binary file (UTF-8 encoded).
- Python 3.6+
- No external dependencies
Clone this repository and make the script executable:
git clone https://github.com/luongvantam/bin2txt.git
cd bin2txt
chmod +x main.pypython3 main.py bin2txt input.binpython3 main.py txt2bin-hex input.txtpython3 main.py txt2bin-ascii input.txt