Convert hex dump of file to binary (program) file on Windows?
There is a native port of xxd to Win32.
See unxutils here for downloads.
Another source of Win32 ports of common GNU and/or *nix utilities is GnuWin32.
Added By Barlop
This answer is incorrect, see comments, xxd is not in unxutils, and not in gnuwin32 either.
VIM 7.x contains xxd for Windows
https://ftp.nluug.nl/pub/vim/pc/gvim73_46_s.zip
C:\Program Files (x86)\Vim\vim74>.\xxd -v
xxd V1.10 27oct98 by Juergen Weigert (Win32)
C:\Program Files (x86)\Vim\vim74>dir xxd.exe
10/08/2013 12:33 PM 70,144 xxd.exe
C:\Program Files (x86)\Vim\vim74>file xxd.exe
xxd.exe; PE32 executable for MS Windows (console) Intel 80386 32-bit
Cygwin has one also
C:\cygwin\bin>.\xxd.exe -v
xxd V1.10 27oct98 by Juergen Weigert
C:\cygwin\bin>dir xxd.exe
18/09/2015 05:44 AM 18,963 xxd.exe
C:\cygwin\bin>file xxd.exe
xxd.exe: PE32+ executable (console) x86-64, for MS Windows
added
xxd is available https://sourceforge.net/projects/xxd-for-windows/
xxd v1.11, 8 jun 2013 by Juergen Weigert et al. (Win32)
C:\Users\User>C:\xxd1p11\xxd-1.11_win32\xxd.exe -v
xxd v1.11, 8 jun 2013 by Juergen Weigert et al. (Win32)
C:\Users\User>
use powershell format-hex command:
PS C:\path\path\Documents\blah> format-hex Util3.class
Path: C:\blah\blah\Documents\blah\Util3.class
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 CA FE BA BE 00 00 00 34 00 1F 0A 00 07 00 10 09 Êþº¾...4........
etc...
WinHex is the best for you to kick off stupid DOS command.
- Open Hex file
- Edit>>Converter File
- In the dialog box, Select Intel Hex to Binary
- Hit OK button.
- Round up file Size? Click No.
- SAVE File as Bin.