Super User Asked by Kevin on September 16, 2020
I have a hex file that I am attempting to convert to binary. I have performed this on Linux before using the command:
xxd -r -p mykey.hex > mykey.bin
But I cannot figure out how to do this same command on Windows. I have downloaded a few hex editor tools but not really sure how to use them to convert hex into a binary representation.
Is there a way to do this in Windows, or are there any similar tools out there that would allow me to do this?
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.
Correct answer by Greg Jandl on September 16, 2020
use powershell format-hex command:
PS C:pathpathDocumentsblah> format-hex Util3.class
Path: C:blahblahDocumentsblahUtil3.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...
Answered by mcgyver5 on September 16, 2020
WinHex is the best for you to kick off stupid DOS command.
Answered by Wucharinton Meephanlom on September 16, 2020
You can use the free Mcumall GQ4X programmer software without the programmer. Select the device and load the hex file. Save as a bin file and that is it.
Answered by Arnold van Os on September 16, 2020
Use this hex to bin converted: (works in browser, no software install necessary)
Answered by vouvoume on September 16, 2020
VIM 7.x contains xxd for Windows
https://ftp.nluug.nl/pub/vim/pc/gvim73_46_s.zip
C:Program Files (x86)Vimvim74>.xxd -v
xxd V1.10 27oct98 by Juergen Weigert (Win32)
C:Program Files (x86)Vimvim74>dir xxd.exe
10/08/2013 12:33 PM 70,144 xxd.exe
C:Program Files (x86)Vimvim74>file xxd.exe
xxd.exe; PE32 executable for MS Windows (console) Intel 80386 32-bit
Cygwin has one also
C:cygwinbin>.xxd.exe -v
xxd V1.10 27oct98 by Juergen Weigert
C:cygwinbin>dir xxd.exe
18/09/2015 05:44 AM 18,963 xxd.exe
C:cygwinbin>file xxd.exe
xxd.exe: PE32+ executable (console) x86-64, for MS Windows
Answered by barlop on September 16, 2020
If you are nuts, you could try processing the characters via input and then outputting the values 8 bits at a time using a programming language
Answered by Joe Plante on September 16, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP