8
3
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?
From @fadelix: you can check this articles: http://indogeeks.com/how-to-convert-any-files-to-hex-with-script/
– fixer1234 – 2015-09-21T03:49:40.637@fixer1234, OP wanted hex-to-binary - not the other way round. Also, the scripts you linked to appear to only produce a hex dump of the binary file. That's OK if it's all you need, but a true hex file is usually in Motorola or Intel hex format, with framing and checksums added.
– rossmcm – 2015-11-17T22:57:21.143So the ge.tt link broke in my answer and I just fixed it. Why did you just change your accepted answer, to an answer that points to unxutils that many including you yourself even saw doesn't contain xxd? Even the author of that answer apologised for his link not having xxd. That is extremely irresponsible. Accepting answers you know are wrong while also not commenting when an issue occurs with an answer, is very irresponsible, I have downvoted you accordingly. If others had known you'd do that they would not have upvoted you. – barlop – 2018-11-06T09:14:53.580
I have attempted the similar once. I succeeded by turning the source into a javascript-escaped string with a regex and unescaping. – None – 2012-11-01T17:22:55.787