Skip to content
OSINTtools.io

Hachoir

Verified yesterday

Python library and tools that parse binary files field by field, including hachoir-metadata for extracting file metadata.

Python CLI · Library · Open source · Data analysis and case notes · hachoir.readthedocs.io

Takes
File
Pricing
Free, open source
Footprint
Passive · no contact with target
Account
Not needed
API
No public API
Last verified
Nov 27, 2026
Summary

Python library and tools that parse binary files field by field, including hachoir-metadata for extracting file metadata. It takes file. Read the cons before you build a workflow on it.

What it does

Hachoir is an open-source Python library that splits a binary file into a tree of fields, down to single bits, so you can browse and edit it. It ships with command-line programs built on its parsers, including hachoir-metadata to pull metadata from files, hachoir-strip to remove it, hachoir-grep to search binaries and hachoir-urwid and hachoir-wx to inspect files in text or graphical mode.

Investigators use hachoir-metadata to read metadata from many media, archive and executable formats that other tools miss, and the viewers to look inside unusual or damaged files during forensic work.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

Pros
  • +Free and open source
  • +Parses many formats, including executables and archives
  • +Runs offline
  • +Still maintained
Cons
  • −Command-line and library focus
  • −Output is technical
  • −Format coverage varies by parser

When to use it

  1. 01Use it when you need metadata from a file format that common metadata viewers do not read.
  2. 02Use it when you want to inspect the internal structure of a binary file.
Key featuresField-by-field binary parsinghachoir-metadata extractorhachoir-strip metadata removerhachoir-grep binary searchText and GUI file viewersPython library for developers

Next steps from this result

Suggested from the inputs Hachoir takes
  • Found a resultConfirm it with a second, independent source before you record it
  • Found a new identifierPivot on it only if your scope covers the new target
    Depends

Quick start

pip
pip install hachoir
hachoir-metadata file.mp4

Technical details

Listing verified by an editor on Nov 27, 2026
API
No public API
Account
Not needed
Footprint
Passive · no contact with target
Pricing
Free, open source
Platforms
Python CLI · Library
Repository
vstinner/hachoir 671 stars
Language
Python
Licence
GPL-2.0
Last commit
Nov 2026
Listed
Nov 27

Reviews

No reviews yet

Written by signed-in members. Each review appears here after an editor has read it.

Used Hachoir? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to Hachoir

Listed tools that take the same inputs, closest match first.

HachoirOpen source · verified yesterday
Visit hachoir.readthedocs.io (opens in new tab)