# How MarkItDown Handles Nested Conversions Within ZIP Files: Recursive Extraction Explained

> Learn how MarkItDown handles nested ZIP file conversions with recursive extraction. Discover its efficient pipeline for unlimited nesting depth.

- Repository: [Microsoft/markitdown](https://github.com/microsoft/markitdown)
- Tags: internals
- Published: 2026-04-11

---

**MarkItDown recursively processes nested ZIP files by treating each archive entry as a new stream that passes back through the full converter pipeline, enabling unlimited nesting depth without special-case handling.**

The `microsoft/markitdown` library treats ZIP archives as traversable containers rather than static blobs. When performing nested conversions within ZIP files, the built-in `ZipConverter` extracts each entry and feeds it back into the core engine via `convert_stream()`, automatically supporting arbitrarily deep hierarchies of archives within archives.

## ZIP Detection and Acceptance

Before extraction begins, `