Compress PDF for Gemini API

The Gemini API supports PDF uploads up to 50MB per file. If your file exceeds the limit, compress it here before sending it to the API.

๐Ÿ”’ Files never leave your deviceโšก Instant processing in browser๐Ÿ’ธ 100% free โ€” no signup
๐Ÿ“„
Drop your PDF here to fix upload errors
or click to select file โ€” PDF only
Target size (optional)
targeting 50 MB

โšก Gemini API File Size Limits (Quick Fix)

๐Ÿ‘‰ Fix: Compress your file below 50 MB using the tool above.

About this tool

Inline base64-encoded requests to the Gemini API have a 100MB total request size limit. Keeping individual PDFs under 50MB ensures reliable document processing.

How to use this tool

๐Ÿ’ก Good to know

Related Tools

Compress PDF for Gemini
Reduce your PDF to under 100MB so it uploads to Gemini without errors.
Compress PDF for Vertex AI
Reduce your PDF to under 7MB for direct upload in the Vertex AI UI.
Compress PDF for Claude
Reduce your PDF to under 30MB so it uploads to Claude.ai without errors.
Compress PDF for ChatGPT | Fix Upload Failed, Size & Token Errors
PDF too large or upload failing in ChatGPT? Compress your PDF for ChatGPT instantly to fix errors and stay under size and token limits.

โ“ Frequently Asked Questions

What is the PDF size limit for the Gemini API?+

50MB per file for standard document understanding via the Gemini API and Vertex AI.Source: Google AI for Developers โ†—

What is the best way to upload a large PDF to the Gemini API?+

Use the Gemini Files API with Google Cloud Storage for files over 50MB. For document processing, keeping files under 50MB gives optimal performance.Source: Google AI for Developers โ†—

What does a 413 error mean in the Gemini API?+

It means your request exceeds the size limit. Compress the PDF to under 50MB or use the Files API for larger uploads.Source: Google AI for Developers โ†—

Does compressing a PDF affect what the Gemini API can read?+

No. The API reads the text layer of the PDF. Compressing image quality reduces file size without affecting the text content the API processes.Source: Google AI for Developers โ†—

๐Ÿ”’ Files stay on deviceยท๐Ÿ†“ Free foreverยท๐Ÿ“ต No signup required
โ† All Tools
๐Ÿ”’No signup required
๐Ÿ’ธFree forever
๐Ÿ“Files stay on your device