Khoj PDF upload failing or indexing returning a 422 error?
Compress your PDF instantly using the tool below — fixes the 10MB per-file limit and frees up indexed storage.
⚡ File Size Limits (Quick Fix)
•Khoj limits PDF uploads to 10MB per file for document conversion and indexing.
•Khoj free tier allows up to 50MB of total indexed content.
•Khoj Premium tier allows up to 500MB of total indexed content.
•A 422 Unprocessable Entity error from Khoj with 'size larger than 10MB limit' confirms the file exceeds the per-file size limit.
👉 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
Khoj upload failures have two common causes: the 10MB per-file limit for document conversion, or the free tier's 50MB total indexed content cap being reached. A 422 error with 'size larger than 10MB limit' confirms the per-file issue. Compressing the PDF resolves both by reducing file size and indexed storage usage.
→Khoj limits PDF uploads to 10MB per file for document conversion and indexing.Khoj Docs ↗
→Khoj free tier allows up to 50MB of total indexed content.Khoj Docs ↗
→Khoj Premium tier allows up to 500MB of total indexed content.Khoj Docs ↗
→A 422 Unprocessable Entity error from Khoj with 'size larger than 10MB limit' confirms the file exceeds the per-file size limit.Khoj Docs ↗
→Words over 500 characters are automatically removed during Khoj processing — this typically only affects corrupted or malformed files.Khoj Docs ↗
❓ Frequently Asked Questions
Why is my Khoj PDF upload failing?+
Two common causes: (1) file exceeds the 10MB per-file limit — a 422 error confirms this; (2) free tier 50MB total indexed content cap reached. Compress the PDF to resolve both.Source: Khoj Docs ↗
What does a 422 error mean in Khoj?+
A 422 Unprocessable Entity error with 'size larger than 10MB limit' means your file exceeds Khoj's 10MB per-file limit. Compress the PDF below 10MB and retry.Source: Khoj Docs ↗
How do I fix a Khoj indexing error?+
Compress your PDF below 10MB using the tool above. If your free tier 50MB storage is full, delete older indexed files via the API or upgrade to Premium (500MB).Source: Khoj Docs ↗
How do I check my Khoj index size?+
Call GET /api/content/size with your API token. The response shows your current indexed_data_size_in_mb so you can monitor usage against the 50MB free or 500MB Premium limit.Source: Khoj Docs ↗
What is the best way to handle large PDFs in Khoj?+
Compress the PDF below 10MB, or split it into chapters and upload each part separately. Use PATCH instead of PUT when updating existing files to avoid reindexing everything.Source: Khoj Docs ↗