Foremost review
A free, scriptable carving tool for recovering files from raw storage data.
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Foremost is a command-line file-carving utility for recovering files from disk images, directly accessed drives, and standard input. It searches storage data for configured headers, footers, and internal file structures, making it suited to forensic recovery work and scripted workflows. Linux and macOS users who need a free, open-source tool for extracting recognizable files from raw data will find its focus clear. It is not designed as a general-purpose recovery suite with a graphical workflow or broad platform coverage.
Configuration is the product’s defining strength. Its configuration file can specify searchable file types, extensions, size limits, headers, footers, and matching behavior. Users can also set input offsets, custom block sizes, output directories, and custom configuration files. Foremost includes extraction methods for common formats and supports JPEG, GIF, PNG, BMP, AVI, MPEG, MP4, WAV, WMV, MOV, PDF, OLE documents, Office XML files, ZIP, RAR, HTML, and C source files. Quick, verbose, quiet, and audit-only modes provide different operating styles, while indirect-block detection supports Unix file systems.
Foremost is available as free, open-source software, which makes it a practical choice when configurable carving matters more than guided recovery. The trade-off is a narrow scope: the product centers on signature-based extraction and does not provide verified preview or RAID recovery. Its console-based operation also favors users comfortable with command-line tools, configuration files, and storage inputs. Choose Foremost for scriptable recovery from supported file signatures on Linux or macOS. Choose an alternative when you need RAID recovery, verified previews, or a graphical recovery experience.
Foremost pros and cons
- Where it wins
- Free and open-source with configurable file signatures
- Scans disk images, raw drives, and standard input
- Supports many image, video, document, archive, and source formats
- Where it doesn't
- Command-line workflow may require technical familiarity
- No verified preview or RAID recovery
- Supported platforms are limited to Linux and macOS
Foremost fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. How we rank.
Last updated · How we research and update