Converting Among ASCII, Hex, and Binary
I had a log file that was hundreds of megabytes containing hexadecimal characters.
01 23 45 67 89 AB CD EF
To analyze it I had to run it through a program that only accepts binary characters.
00000001 00100011 01000101 01100111 10001001 10101011 11001101 11101111
I decided to write a small set of programs to do this for me.
Click here for a zip file containing the source code, Win32 binaries, and Linux binaries.
Using the Software
First, save your file of data to be converted somewhere.
Then, click the file, ...
drag the file to the relevant converter binary, ...
and let go of the mouse button. A new file will appear in the same directory as the original file.
When you open the file, it should contain the converted data.
bin2*, white space is ignored.
*2bin add a space after each byte. It's recommended that you modify the output file to suit your needs. I usually do this with a regex.
I haven't rigorously tested these files; use them at your own risk.
UPDATE (April 28, 2011): There is a new version of the software posted here.