hexyl
modern hex viewer for the terminal
TLDR
View file in hex
$ hexyl [file]
Show specific length$ hexyl -n [100] [file]
Skip bytes$ hexyl --skip [50] [file]
Show in plain style$ hexyl --plain [file]
Read from stdin$ cat [file] | hexyl
No character panel$ hexyl --no-characters [file]
SYNOPSIS
hexyl [options] [file]
DESCRIPTION
hexyl is a modern hex viewer for the terminal. It displays file contents with colored output distinguishing different byte types.The tool uses colors to highlight ASCII, non-ASCII, null bytes, and whitespace. It provides a clean, readable hex dump with offset and character views.
PARAMETERS
FILE
File to display (use - for stdin).-n, --length N
Number of bytes to read (supports k, M, G suffixes and hex).-c, --bytes N
Alias for --length.-s, --skip N
Skip first N bytes (negative values seek from end).-o, --display-offset N
Add N bytes to the displayed file offset.--block-size SIZE
Size of the block unit (default: 512).-v, --no-squeezing
Display all data; don't collapse identical lines with an asterisk.--color WHEN
Color output: always (default), auto, never.-p, --plain
Plain output (shorthand for --no-characters --no-position --border=none --color=never).--no-characters
Hide the character panel.--no-position
Hide the position offset column.--border STYLE
Border style: unicode (default), ascii, none.--panels N
Number of hex data panels (or 'auto').--group-size N
Bytes per group: 1 (default), 2, 4, or 8.--endianness ENDIAN
Byte ordering within groups: little or big.-h, --help
Display help information.-V, --version
Display version information.
CAVEATS
Requires color terminal. Large files may be slow. Written in Rust.
HISTORY
hexyl was created as a modern, colorful alternative to traditional hex dump tools like xxd and hexdump.
