How can I copy binary data in Windows (preferably with Notepad++)?
I want to duplicate some binary data. The normal Ctrl+C command doesn't work in my editor (Notepad++), it copies data only up to the first NUL
char. Is there any workaround?
In the Edit
menu of Notepad++ (I'm using v5.9.2) under Paste Special
there are actions to Copy, Cut, and Paste Binary Content.
The Notepad++ MIME Tools plugin and Base64 Encode/Decode feature can be used to copy small binary files (typically small jar or zip files) between remote systems using the clipboard.
- Open the Binary file binary1.bin in Notepad++
- Edit -> Select All (Ctrl+A)
- Plugins -> MIME Tools -> Base64 Encode
- Edit -> Select All (Ctrl+A)
- Edit -> Copy (Ctrl+C)
- Edit -> Undo (Ctrl+Z)
- Move focus to a new Notepad++ tab
- Edit -> Paste (Ctrl+v)
- Edit -> Select All (Ctrl+A)
- Plugins -> MIME Tools -> Base64 Decode
- File -> Save As... binary2.bin