Skip to content

A modern, high-performance HexDump (xxd) alternative with colorized output. Lightweight and memory-efficient CLI tool written in C.

License

Notifications You must be signed in to change notification settings

selimozturk13/hexcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HexCat(hc) - Hex Viewer & Dumper

HexCat(hc) is a lightweight and fast command-line tool to display binary files in hexadecimal format


Features

  • Display binary files in hexadecimal.
  • Optional ASCII column (canonical mode).
  • Verbose mode for debugging.
  • Skip bytes from start of file.
  • Limit displayed bytes.
  • Group bytes for better readability.
  • Output hex dump to a file.
  • Optional colorful display.

Installation

Compile the program using make:

git clone https://github.com/selimozturk13/hexcat.git 
cd hexcat
make && make install

Usage

hc [options] <file>

Short Long Description
-h --help Show this help message and exit
-V --version Show version information
-v --verbose Enable verbose mode
-r --row-size Number of bytes per row (default: 16)
-C --dis-canonical Disable canonical (ASCII) mode
-c --dis-colourful Disable coloring
-s --skip Skip bytes from start of file
-l --length Limit display to specified number of bytes
--only-hex Display only hex, no ASCII column
-g --group Group bytes
-o --output Write hex dump to a file

Examples

  • Display file with default settings:

    hc test.bin

  • Display only hex (no ASCII):

    hc test.bin --only-hex

  • Skip first 32 bytes and show 64 bytes:

    hc test.bin -s 32 -l 64

  • Group bytes by 4 and write output to a file:

    hc test.bin -g 4 -o dump.txt

  • Enable verbose mode:

    hc test.bin -v


Notes

  • It works on Unix, Linux, macOS etc.
  • Hex colors: blue = 0x00, red = 0xFF, yellow = printable ASCII, gray = non-printable ASCII.
  • Binary files are read in binary mode, so it supports any file type.

License

This project is licensed under the GNU General Public License v3.0 or later.
See the LICENSE file for the full text.

About

A modern, high-performance HexDump (xxd) alternative with colorized output. Lightweight and memory-efficient CLI tool written in C.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published