How to Compress a File to an Exact Size in KB
To compress a file to a specific size, open Compress to an Exact Size, pick Compress PDF or Compress Image, and type the size you need, such as 137 KB. TypeorDrop lowers the quality only as far as needed to fit, and the result screen shows the new size before you download. It works for PDFs and images (JPG, PNG, WebP), not for Word, Excel or video files.
Why forms ask for an exact size
Upload forms for jobs, visas, exams and bank accounts often set a hard limit: "PDF under 200 KB", "photo between 20 and 50 KB". The form simply rejects anything bigger, so you need a file that is *under* the limit, and as sharp as the limit allows.
Presets help when your limit is 100 KB or 1 MB, but forms also ask for 87 KB or 3 MB. So TypeorDrop takes any number you type.
Presets or a custom size?
- Presets are fixed choices. Compress PDF has 100 KB, 200 KB, 500 KB and 1 MB. Compress Image has 50 KB, 100 KB, 200 KB and 500 KB. Each common size also has its own page with the target already set: 100 KB, 200 KB, 500 KB and images to 50 KB.
- Custom is any size you type. For a PDF, the allowed range is 20 KB to 50 MB, in KB or MB. For an image, it is 10 KB to 15 MB, typed in KB (15 MB is 15360 KB).
Both work the same way: the tool tries stronger settings step by step and stops at the first result that fits, so you keep as much quality as the target allows.
How to compress a file to an exact size
- Open Compress PDF or Compress Image, whichever matches your file.
- Choose your file. Free accounts can upload up to 25 MB per image and 50 MB per PDF.
- Under the size options, pick a preset or choose Custom and type your number.
- Click the compress button and wait for the result.
- Check the result screen: it shows the original size, the new size and whether your target was reached. Open the file and zoom in on small print before you send it.
What happens if the target is too small?
Sometimes a file cannot reach the size you ask for. TypeorDrop does not fail in that case, and it never makes the file bigger.
- PDF: the tool tries several resolutions and stops when one fits. If none does, you get the smallest version it could make, and the result screen says the target was not reached. If nothing is smaller than your original, you get the original back unchanged. A PDF that is already under your target is also returned as it is.
- Image: the tool first lowers the quality. If the quality would drop too far, it makes the picture smaller (fewer pixels) until it fits, down to a long side of 320 pixels. The result tells you the dimensions were reduced. PNG files are not turned into blurry JPEGs: they keep their format and use fewer colours. If your image still doesn't fit, you get the smallest result, and if nothing beats the original, the original comes back unchanged.
So a target that is too small costs you a "not reached" message, not a damaged or larger file. Then raise the target a little, or use the tips below.
Tips for PDFs
- Scans and photos shrink the most. The tool works on images inside the PDF.
- Text-only PDFs hardly shrink. Their size comes from text and fonts, not pictures.
- Many pages need more room. Every page needs a few kilobytes even at the lowest quality. With a tight limit, send only the pages you need: Split PDF can pull them out first.
- Password-protected PDFs: a PDF that needs a password to open can't be compressed. A PDF with only an owner password (print or edit restrictions) works.
For real test results on a 100 KB target, see How to Compress a PDF to 100 KB. This post doesn't repeat them.
Tips for images
- Photos fit best as JPG. PNG is lossless and stays large unless the picture has few colours.
- Crop first. Removing empty space lowers the size before any quality is lost.
- Keep the format the form asks for. The tool doesn't change a JPG into a PNG or the reverse. If the form wants a particular format, convert it first.
Troubleshooting
The result says the target was not reached. You got the smallest version possible. Try a larger target, or send fewer pages (PDF) or a smaller photo (image).
The file came back the same size. It was already small, already compressed, or mostly text. The tool never returns a bigger file than the one you uploaded.
"This PDF is password-protected." Open it with its password, save a copy without one, and upload that.
FAQ
Can I compress a file to exactly 100 KB?
You can set 100 KB as the target, and the result will be at or under it. The tool stops at the first setting that fits, so the file is usually a bit below the number, not exactly on it.
What if the form wants a size between two numbers, like 20 to 50 KB?
Set the larger number, 50 KB, as the target. The result is at or under it, and usually only a little below.
Will the quality drop?
A smaller file always loses some detail. TypeorDrop lowers it only as far as the size needs, so a 1 MB target keeps pictures sharp and a 50 KB target makes them softer.
Is it free?
Yes. You can run 2 jobs a day without an account and 10 a day with a free account. Pro removes the daily limit and ads and raises the upload size to 100 MB per file.
Are my files kept?
Uploaded files are deleted when the job is done, and results are kept for 7 days. If you are signed in, you can find the result again in History during that time.
Ready to try it? Open Compress to an Exact Size and type your number.
Related articles
- How to Compress a PDF to 100 KB (and When It Can't Be Done)
- Social Media Image Sizes: Instagram, Facebook, YouTube and More