PDF Compression, Size Reduction

Compress PDF Files and Reduce Size via API

Reduce PDF file size programmatically with configurable quality levels. Get compression statistics in response headers: original size, compressed size, and compression ratio. Perfect for storage optimization.

cURLPythonNode.jsn8n
# Compress a PDF file
curl -X POST \
  https://api.convertfilefast.com/v2/pdf/compress \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@document.pdf" \
  -F "quality=medium" \
  -F "remove_metadata=true" \
  -D headers.txt \
  --output compressed.pdf

# HTTP 200 OK — Headers include compression stats:
# X-Original-Size, X-Compressed-Size, X-Compression-Ratio
Conversion completed in <2s

Advantages

Why use our API?

Complete and reliable solution for integration in any tech stack.

Quality Levels

Choose from low, medium, and high quality levels to balance file size reduction vs output quality.

Compression Stats

Response headers include X-Original-Size, X-Compressed-Size, and X-Compression-Ratio for each request.

Metadata Removal

Optionally strip PDF metadata (author, creation date, software) to further reduce file size.

Significant Reduction

Achieve up to 70% size reduction on image-heavy PDFs while maintaining acceptable visual quality.

Automation Ready

Integrate into file upload pipelines, storage workflows, or email attachment processors with n8n.

Zero Storage

PDFs are compressed in memory and deleted immediately after processing. Complete privacy guaranteed.

Start Compressing PDFs via API

Get your API key and compress PDF files in seconds. Free plan includes 10 conversions per month.

No credit card. 10 free conversions on Free plan.