ZIP, TAR & GZIP Archive Extractor

tools/archives-zip-tar-gzipFormat Readers

Unpack ZIP, TAR, and GZIP archives into clean tables with strict byte limits.

Streams and unpacks .zip, .tar, .tar.gz, and .gz archives with explicit member path matching, automatic inner-format decoding, and strict byte-size safety limits against zip bombs.

Use in chatFetch gzipped listings.csv.gz files across 10 cities, unpack automatically, and build one combined housing table.

What ZIP, TAR & GZIP Archive Extractor does

ZIP, TAR & GZIP Archive Extractor automates ingestion from government and research portals that publish bulk releases inside compressed containers, such as SEC bulk submissions, EPA registries, and census dumps. Recipes select exact inner member filenames or glob patterns and stream them cleanly into downstream readers.

Every archive source enforces max_source_bytes caps against zip bombs and logs full member provenance. Extracted rows pass through DuckDB SQL and quality checks before serving via SQL, REST APIs, Parquet/CSV/JSON exports, and MCP.

Input & output example

Selects matching inner files under strict decompressed-byte limits.

Compressed archive bundle

quarterly_release_2026Q3.zip (184 MB)
  ├── readme.txt
  └── data/transactions_2026Q3.csv

Selected & unpacked table

tx_dateagency_codeamount_usd
2026-09-28DOT-421,240,000.00

How it works

  1. 1

    Inspect archive contents and pick member patterns

    Probe the .zip, .tar, .tgz, or .gz bundle to identify the exact inner data file or member path pattern.

  2. 2

    Configure archive reader and inner decoder

    Bind archive.zip, archive.tar, or archive.gzip with max_source_bytes bounds and specify the inner CSV/JSON/XML/Parquet format.

  3. 3

    Transform and publish clean tables

    Clean schemas in DuckDB SQL, run quality checks, and serve via Parquet export, REST API, and MCP.

Try with an agent

Pre-loads ZIP, TAR & GZIP in chat

Unpack InsideAirbnb gzipped CSVs

Fetch gzipped listings.csv.gz files across 10 cities, unpack automatically, and build one combined housing table.

Extract a specific CSV from a federal ZIP

Download the quarterly ZIP bundle, select the summary CSV member inside, and load it into a versioned table.

Common use cases

  • Bulk government data dumps shipped as ZIP bundles
  • Gzipped daily CSV or JSON log drops
  • Multi-file TAR archives from research repositories

Details

Identifier
archives-zip-tar-gzip
Inputs
.zip · .tar · .tgz · .gz
Outputs
Unpacked tabular rows
Dataset delivery
Parquet · CSV · JSON · SQL · REST API · MCP

Frequently asked questions

How are oversized archives handled?

Every source declares explicit max_source_bytes bounds to guard against archive bombs.

Can it extract a specific CSV file out of a multi-file ZIP archive?

Yes. Set the target member path or wildcard inside reader decode_options to extract only the files your table needs.

Does it work on .csv.gz or .jsonl.gz single-file gzip streams?

Yes. archive.gzip decompresses gzipped streams transparently into CSV, TSV, JSON, or NDJSON readers.

Related tools