mypdf.space

Free · runs in your browser · the PDF is never uploaded

Compress a PDF to 5 MB

Short answer

Drop your PDF into the compressor below. It’s pre-set to 4,882 KB so the file stays under 5 MB by either kilobyte definition. Most text documents and many multi-page scans fit with little or no quality loss. Use this when a course portal or client asks for “under 5 MB”.

Loading compressor…

What fits in 5 MB

  • Comfortably: Most text PDFs unchanged, or a long scan of thirty-plus pages at good quality.
  • At the limit: Very large photo-heavy bundles at lower DPI if needed.

5 MB is a common assignment and LMS limit, and a practical target when emailing a multi-page pack without hitting Gmail’s much larger 25 MB ceiling.

If Keep text already lands under 5 MB, stop there — Target size is only needed when the file is still oversized.

“Good quality” here means around 100 DPI, which looks sharp on a screen. These are rough guides, not promises: a page of plain text compresses far better than a colour photo, so check the preview.

How to compress a PDF to 5 MB

  1. 1

    Drop your PDF into the compressor above, or tap it to choose a file. It’s already in Target size mode at 4882 KB.

  2. 2

    Press Compress. A lossless rebuild runs first. If the file is still too big, the pages are re-rendered at lower resolutions, from 150 DPI down to 50 DPI, until it fits.

  3. 3

    Check the preview of the first pages. Zoom in on the small print, such as dates, ID numbers and stamps, because that’s what blurs first.

  4. 4

    Download the file and check its size on your device before uploading. On Windows, right-click and choose Properties; on a Mac, use Get Info. Compare the size in bytes with the limit.

  5. 5

    Upload it. If the portal still says the file is too big, run the compressor again on the original with a slightly lower target.

Why the tool is set to 4882 KB, not 5 MB

Kilobytes are counted two ways. Some websites treat 1 KB as 1,000 bytes; others, and this compressor, treat it as 1,024. A file the compressor calls “5 MB” is 5,242,880 bytes, about 4.9% more than 5,000,000, and a strict portal will reject it.

4882 KB in the tool is 4,999,168 bytes, which is under 5 MB by either definition. You lose almost nothing in quality and avoid the most common “file too large” rejection.

If it won’t get down to 5 MB

The compressor stops at 50 DPI, because below that the text stops being readable. If even that pass is too big, you get the smallest readable file and a message saying so, instead of a file that technically fits but that nobody can read. These help:

  • Try Keep text first on the main Compress PDF tool if you are not sure you need Target size.
  • Split huge bundles with Split PDF when the portal allows multiple uploads.
  • Remove blank pages before compressing so you do not burn the budget on empty sheets.
  • Split the document if the portal has more than one upload field. Split PDF breaks it into parts you can compress separately.

Limits worth knowing

  • Re-rendered pages become images with an invisible text layer. Search and copy keep working, but accented and non-Latin characters can be dropped from that layer.
  • Large or image-heavy PDFs take a while, because each pass re-renders every page on your device.
  • Password-protected PDFs have to be unlocked first.
  • A portal can reject a file for reasons other than size, such as the file type or characters in the file name.

Frequently asked questions

  • How do I compress a PDF to under 5 MB?
    Use this page. The compressor is pre-set just under 5 MB, tries a lossless pass first, then lowers resolution only if needed.
  • Is 5 MB enough for email?
    Yes for most personal email. Gmail’s advertised cap is 25 MB; 5 MB is a safer everyday target when you want a smaller attachment.
  • Does this upload my assignment?
    No. Compression runs entirely in your browser.

Written by Sumit · Last reviewed 12 Oct 2026