Recipes
MarkItDown on AWS Lambda
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).
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, t23_lambda_size.sh
Package sizes
| 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 |
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.