PDF Too Large for AnythingLLM? Fix CPU Errors Instantly
AnythingLLM crashing or returning 502 errors when processing your PDF?
Compress your PDF instantly using the tool below — reduces processing load and fixes upload errors.
⚡ AnythingLLM File Size Limits (Quick Fix)
•Docker deployments of AnythingLLM behind an NGINX reverse proxy default to a 1MB upload limit, which will silently drop larger files.
👉 Fix: Compress your file below the required limit using the tool above.
📄
Drop your PDF here
or click to upload — PDF only
Target size (optional)
or leave blank to compress as much as possible
How to use this tool
Select or drag and drop your file into the tool above.
Adjust the settings or target size as needed for your specific requirement.
Wait a moment while your file is processed directly in your browser.
Download the final file safely to your device.
About this tool
AnythingLLM's hosted Starter tier recommends under 10k words per file to avoid CPU exhaustion. Docker deployments behind NGINX default to a 1MB upload cap. Compressing your PDF reduces both file size and embedding processing time.
→AnythingLLM hosted Starter tier recommends a maximum of 10,000 words per PDF file to avoid CPU exhaustion and 502 errors.GitHub ↗
→AnythingLLM hosted Professional tier recommends a maximum of 50,000 words per PDF file.GitHub ↗
→Docker deployments of AnythingLLM behind an NGINX reverse proxy default to a 1MB upload limit, which will silently drop larger files.GitHub ↗
❓ Frequently Asked Questions
Why is AnythingLLM returning a 502 error on my PDF?+
502 errors are caused by CPU exhaustion when processing large PDFs on the hosted version. Compress your PDF or split it into smaller sections to reduce processing load.Source: GitHub ↗
What is the recommended PDF size for AnythingLLM?+
Under 10k words per file on the hosted Starter tier. Under 50k words on the Professional tier. Local/Docker installs have no enforced limit but can crash on very large files.Source: GitHub ↗
How do I fix AnythingLLM crashing on a large PDF?+
Compress the PDF to reduce its size, split it into chapters, or convert it to Markdown. For Docker deployments, also check your NGINX client_max_body_size setting.Source: GitHub ↗
Does compressing a PDF fix AnythingLLM 502 errors?+
It helps. Smaller PDFs require less CPU to embed, reducing the chance of timeout and 502 errors on the hosted version. Splitting into chapters is the most reliable fix for very large documents.Source: GitHub ↗