The -c (columns) flag lets you define how many bytes of hex data are shown per line. The default is 16 bytes.
# Revert the hex dump file to its original form and save it xxd -r myFile.hex > restoredFile.txt xxd command not found
echo "Hello" | xxd
To output only the first 32 bytes:
sudo pacman -S vim