# MarkItDown on AWS Lambda

> How big a MarkItDown 0.1.9 Lambda zip gets for each extra, built for Linux x86-64 and Python 3.12. We measured the packages; we did not run them on AWS.

Source: https://markitdown.dev/recipes/aws-lambda/ · Updated 2026-11-16·Upstream source ↗

A zip package for Lambda has a size ceiling, and MarkItDown with every extra is over it. We built the package for each extras combination and measured it. We did not deploy any of them, so we cannot say how they start or run on AWS.

> **Short answer**
>
> For a zip package (unzipped limit 250 MB, as AWS documents it), the bare package and `[docx]`, `[pdf]`, `[pdf,docx]` and `[pdf,pptx]` fit; `[all]` is 337 MB and does not. Use a container image for the larger sets ([Docker page](https://markitdown.dev/docker/)).

Tested with markitdown 0.1.9 · Python Packages built on a Linux lab machine with pip's cross-platform options (manylinux, Python 3.12, x86-64). NOT run on AWS: we had no account (T23) · 2026-11-16 · evidence: [lambda-sizes.csv](https://markitdown.dev/data/lambda-sizes.csv), [t23\_lambda\_size.sh](https://markitdown.dev/evidence/T23/t23_lambda_size.sh)

## Package sizes

Dependencies installed for Linux x86-64 and Python 3.12, bytecode removed, sizes in MB
| Package | Unzipped (MB) | Zipped (MB) | Under 250 MB unzipped | Under 50 MB zipped |
| --- | --- | --- | --- | --- |
| `markitdown[docx,pptx,xlsx]==0.1.9` | 253 | 84 | no | no |
| `markitdown[pdf,docx]==0.1.9` | 234 | 86 | yes | no |
| `markitdown[pdf,pptx]==0.1.9` | 236 | 86 | yes | no |
| `markitdown==0.1.9` | 169 | 59 | yes | no |
| `markitdown[docx]==0.1.9` | 181 | 64 | yes | no |
| `markitdown[pdf]==0.1.9` | 222 | 81 | yes | no |
| `markitdown[pdf,docx,pptx,xlsx]==0.1.9` | 286 | 99 | no | no |
| `markitdown[all]==0.1.9` | 337 | 132 | no | no |

*Dependencies installed for Linux x86-64 and Python 3.12, bytecode removed, sizes in MB Source: Test T23 · pip --target with --platform manylinux · 2026-11-16 · not run on AWS · lambda-sizes.csv · Download CSV*

No combination is under 50 MB zipped, so a direct zip upload is out; the zip has to go through a storage bucket or a layer. The limits are AWS's published ones as we know them: check them for your region before you plan around them.

## What we did not test

Running on Lambda (start-up time, memory, the writable `/tmp` folder), a container-image build, ARM (Graviton) packages, and trimming unneeded dependencies. The `[xlsx]` and `[pptx]` extras on their own were not measured.

## Related

- [Docker](https://markitdown.dev/docker/): Container images, the other deployment route.
- [Extras and install size](https://markitdown.dev/install/extras/): Which extra each file type needs.
- [Build a conversion API](https://markitdown.dev/recipes/api-server/): An HTTP service around MarkItDown.
- [Speed and memory](https://markitdown.dev/performance/): Speed and memory.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
