Skip to content

xxd Command Cheat Sheet

xxd creates a hex dump of a given file or converts a hex dump back to binary.


Create Hex Dump

xxd file.bin

Reverse Hex to Binary

xxd -r -p hex.txt > binary.out

Dump Only Bytes

xxd -p file.txt