AnswerBun.com

Convert hex dump of file to binary (program) file on Windows?

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?

7 Answers

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.

  1. Open Hex file
  2. Edit>>Converter File
  3. In the dialog box, Select Intel Hex to Binary
  4. Hit OK button.
  5. Round up file Size? Click No.
  6. SAVE File as Bin.

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)

http://matrixstorm.com/avr/hextobin/ihexconverter.html

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

Add your own answers!

Related Questions

Can Brightness of Windows changed per App?

1  Asked on December 15, 2020 by akam

   

What is Special Permissions?

2  Asked on December 15, 2020 by old-geezer

         

How do I hide/mask my IP address from my home network?

1  Asked on December 15, 2020 by zoesmum

 

Explorer.exe making outbound TCP connection to Akamai

1  Asked on December 14, 2020 by john-hammond

         

Dell Inspiron E6430 bluetooth “skipping”

0  Asked on December 13, 2020 by steven-carline

       

Copy files except when destination modified in last x days

1  Asked on December 13, 2020 by mark-schultz

         

Problems installing and opening packages on Linux Lite

0  Asked on December 13, 2020 by jorgeserrano

 

What is “push route” used for in OpenVPN?

1  Asked on December 12, 2020 by dark_st0rm

       

xfreerdp ignores resolution parameter

2  Asked on December 12, 2020 by vitas

       

How to config the keystore of Nginx mutual SSL?

1  Asked on December 11, 2020 by jimmy-chu

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir