# gallery-dl

> Command-line downloader for images, videos and metadata from Instagram, Reddit, X, Pixiv and many other image hosts.

Source: https://osinttools.io/tools/gallery-dl/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** URL
- **Category:** Data capturing
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI · Windows executable
- **Website:** https://codeberg.org/mikf/gallery-dl
- **Docs:** https://gdl-org.github.io/docs/
- **Listed:** Nov 27
- **Last verified by an editor:** Nov 27, 2026

## What it does

gallery-dl is a cross-platform command-line program that downloads entire image galleries and collections from a long list of supported sites, including social networks, image boards and art communities. It has extensive configuration and file-naming options and can hand video downloads to yt-dlp. Active development moved from GitHub to Codeberg in 2026.

Investigators use it to preserve every image posted by an account or in a thread before it is deleted, keeping the original files rather than screenshots. Its option to write metadata files alongside each download keeps post dates, captions and IDs with the media, and browser cookies can be supplied for content that needs a login.

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.

## Features

- Bulk download from many supported sites
- Metadata files alongside downloads
- Custom file naming templates
- Cookie and login support
- Download archive to skip files already saved
- yt-dlp integration for video

## Pros

- Free, open source and very actively maintained
- Saves original media with its metadata
- Large and growing list of supported sites
- Standalone Windows executable available

## Cons

- Command line only
- Site extractors break when platforms change
- Some sites need cookies from a logged-in account

## When to use it

- Use it when you need to archive all the images posted by an account before they are taken down.
- Use it when you want original files plus post metadata rather than screenshots.

## Quick start

Install with pip:

```
python -m pip install -U gallery-dl
gallery-dl --write-metadata <gallery-url>
```

## Alternatives

- [Altia OSINT Investigator](https://osinttools.io/tools/altia-osint-investigator/): Commercial capture tool for police and corporate investigators that saves web content with hashing and an audit trail into case files. (Paid · URL · passive)
- [Archive Page](https://osinttools.io/tools/archive-page/): Open-source extension that sends the current page or a link to archive.today to be saved or looked up, from the toolbar or context menu. (Open source · URL · passive · 186 GitHub stars)
- [Archive-It](https://osinttools.io/tools/archive-it/): Internet Archive's subscription web archiving service; its curated collections from libraries and institutions are publicly searchable. (Freemium · URL · passive)
- [ArchiveBox](https://osinttools.io/tools/archivebox/): Open-source, self-hosted web archiver that saves pages as HTML, PDF, screenshots, WARC and media, with full-text search. (Open source · URL · active · 29,109 GitHub stars)
- [ArchiveWeb.page](https://osinttools.io/tools/archiveweb-page/): Webrecorder's open-source extension that records the pages you browse into high-fidelity web archives you can export as WARC or WACZ. (Open source · URL · passive · 1,635 GitHub stars)
- [Auto Archiver](https://osinttools.io/tools/auto-archiver/): Bellingcat's open-source Python tool that archives batches of URLs, media and metadata from a spreadsheet, CSV or the command line. (Open source · URL · active · 1,161 GitHub stars)

All alternatives to gallery-dl in one table: https://osinttools.io/tools/gallery-dl/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
