Recipes

MarkItDown on AWS Lambda

Updated 2026-11-16·Upstream source ↗
Markdown view

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

Dependencies installed for Linux x86-64 and Python 3.12, bytecode removed, sizes in MB
PackageUnzipped (MB)Zipped (MB)Under 250 MB unzippedUnder 50 MB zipped
markitdown[docx,pptx,xlsx]==0.1.925384nono
markitdown[pdf,docx]==0.1.923486yesno
markitdown[pdf,pptx]==0.1.923686yesno
markitdown==0.1.916959yesno
markitdown[docx]==0.1.918164yesno
markitdown[pdf]==0.1.922281yesno
markitdown[pdf,docx,pptx,xlsx]==0.1.928699nono
markitdown[all]==0.1.9337132nono
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.