1

I want to copy the contents of a binary file as hex characters.

Notepad++ Plugin ASCII to Hex does not work, because the characters are not ASCII.

In TextPad 5.3, the hex mode does not have any copy option.

In some other tools, if I copy in hex mode and try to paste in another application, the plain text or original binary characters get pasted, instead of the hex characters.

Hannu
  • 10,568

1 Answers1

3

as an example, seeing the hex for the "binary file", i.e. the executable, c:\windows\system32\calc.exe (the windows calculator)

C:\>xxd -p c:\windows\system32\calc.exe >c:\crp\a.a

and here is the hex of calc.exe, in wordpad

enter image description here

And as for where you can get xxd, well, as I mention in my answer here (which answers a slightly related, but different question) Convert hex dump of file to binary (program) file on Windows? xxd comes packaged with vim7 for windows, so you can copy it from there. Or you can get it from cygwin

barlop
  • 25,198