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.

šŸ“„
Drop your PDF here
or click to upload — PDF only
Target size (optional)
targeting 50 MB
šŸ’” Good to know
ā“ 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.

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.

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.

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.

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
Reduce your PDF to under 512MB so it uploads to ChatGPT without errors.
← All Tools
šŸ”’No signup required
šŸ’øFree forever
šŸ“Files stay on your device