What Does KB Mean for Images? Pixels, DPI and File Size Explained
Quick summary
KB measures how much space a photo occupies, not how sharp it looks. Understand pixels, DPI and file size before you shrink an image.
An upload form rejects your photo and says “maximum 200 KB”. The picture looks perfect, so the problem feels arbitrary. It is not: KB describes how much space the file occupies on disk, and that number is governed by three separate things — how many pixels the image has, how efficiently those pixels are stored, and what format stores them. Once you understand which of the three the form cares about, hitting the limit becomes a mechanical task.
The quick answer
- KB (kilobyte) is a unit of file size: 1 KB = 1,024 bytes, 1 MB = 1,024 KB.
- Pixels are the dots the image is made of — they decide how much detail it can hold.
- DPI is a printing instruction written in the file header — it decides how large the pixels print, nothing more.
- Formats (JPG, PNG, WebP) decide how efficiently those pixels are packed.
- A typical phone photo weighs 3,000 KB or more; a form capping at 200 KB is asking you to cut the file roughly fifteenfold.
Most rejections happen because people conflate the first and second items: they resize the photo and expect the KB to follow proportionally, or they compress it and expect it to look worse. Neither has to be true.
What a KB actually counts
A byte is enough space to store one character of text. A kilobyte is 1,024 of those, a megabyte is 1,024 kilobytes. These are storage units, not quality units — the KB figure on a file tells you how many bytes it takes to write that image to disk, and nothing else.
The arithmetic trips people up because phone cameras work in megabytes while forms work in kilobytes. A 3 MB photo is not “a bit over” a 200 KB limit — it is about 3,000 KB, which is fifteen times the cap. That is why an unedited phone shot almost never passes an ID upload form as-is, and why the first useful thing you can do is read the file’s size in the same unit the form uses.
Pixels are not KB
This is the single most useful distinction on the page. Pixels are how many dots the image is made of: 600 × 600 means 360,000 dots. KB is how efficiently those dots are stored.
The same 600 × 600 photo can be 60 KB or 600 KB depending on two things:
- Content detail. A flat blue background compresses almost for free. Grass, hair, fabric and camera noise resist compression because every neighbouring pixel differs slightly. Two photos with identical pixel counts can differ by a factor of ten in file size purely because of what is in the frame.
- Format and quality. A lossy format discards detail the eye barely notices; a lossless format keeps everything. Saving the same image at high quality versus moderate quality can multiply the file size several times over.
So when a form rejects a small-looking photo for being “too many KB”, shrinking the pixel dimensions is only one lever. Changing the format or the quality setting is often the bigger one — and it is why the question “why is my photo too many KB” almost always has an answer about storage, not sharpness.
DPI lives in the header, not the pixels
DPI (dots per inch) is widely misunderstood. It is a number recorded inside the file that tells printing software how big to render the pixels on paper: 600 × 600 pixels at 300 DPI prints as a 2 × 2 inch photo, the same pixels at 72 DPI would print at about 8.3 inches. The pixels themselves do not change.
Two consequences:
- DPI has almost no effect on file size. It is a handful of bytes in the metadata. Changing it does not fix a KB problem.
- Upload forms almost never check DPI. They check the pixel dimensions and the file size in KB. DPI matters when a physical print is involved — the 2 × 2 inch passport photo rules are the classic case — but for a web form, ignore it.
Why portals cap KB, not pixels
Upload caps exist for the operator’s reasons, not yours:
- Bandwidth. Thousands of applicants pushing multi-megabyte files at once costs real money and slows the queue for everyone.
- Storage quota per applicant. Each submission is stored, often for years. A cap keeps the per-record footprint predictable.
- Uniform processing. Downstream systems resize, print or transmit every photo the same way. Capping the input keeps that pipeline sane.
This is why “compress my photo to the number on the form” is a distinct task from “make my photo smaller”. A generic shrink that leaves you at 230 KB against a 200 KB cap helps nobody. If your form’s cap is one of the common ones, the dedicated walkthroughs for how to compress an image to 100 KB and how to compress an image to 500 KB cover the exact steps.
Formats: the three you will actually meet
Per MDN’s overview of image file types:
- JPG is a lossy format built for photographs. It discards detail the eye barely registers, which makes photo files far smaller — but it does not support transparency, and heavy compression shows up as blocky artefacts around sharp edges.
- PNG is lossless: every pixel survives exactly. That makes it the right choice for logos, screenshots and any image that needs sharp edges or a transparent background — and the reason photographic content saved as PNG is needlessly heavy.
- WebP supports both lossy and lossless modes and typically produces smaller files than either JPG or PNG for the same visual result, which is why it has become the default for the web.
The practical takeaway: if you need to shed KB and transparency does not matter, JPG or WebP will get you there with far less quality loss than squeezing a PNG.
Why your photo has too many KB
Diagnose before you compress:
- It came straight off a phone. Sensors save 3,000+ KB by default. This is normal, not a fault.
- It is a PNG of a photo. Lossless storage of photographic detail produces enormous files. Convert to JPG or WebP.
- The quality was set too high. Above a certain point, extra quality costs kilobytes without adding anything visible.
- The content resists compression. Foliage, textures and noise cost more KB than smooth gradients at any setting. Reducing pixel dimensions helps more here.
- The file was already compressed and re-saved. Re-encoding an optimised file can add container overhead instead of removing it.
Choosing your target KB number
Read the cap on the form first — that number is the requirement, everything else is strategy.
If you are setting a quality slider by hand, aim 10–20% under the cap, because file sizes are not perfectly repeatable across attempts and a file that lands “just at” 200 KB can fail a stricter checker.
Or skip the guesswork: the compressor at /tools/image-compressor/ has a By target size mode with presets at 50 KB, 100 KB, 200 KB, 500 KB and 1 MB, plus a custom input in KB. Type your number, and it searches through quality levels — and, if needed, resolution — until the file lands at or under it. The result card tells you whether the target was met and whether pixels were downscaled, and a file that is already under your target is delivered unchanged rather than over-compressed. You also get a quality slider and PNG/JPG/WebP output for the cases where you would rather tune by eye, batch handling with a single ZIP download when the form wants several files, and everything runs locally in your browser — no image is ever uploaded to a server.
Glossary
| Term | Meaning |
|---|---|
| Byte | The base unit of digital storage; roughly one character of text. |
| KB | Kilobyte, 1,024 bytes. The unit upload forms usually quote. |
| MB | Megabyte, 1,024 KB. The unit phone cameras and email attachments quote. |
| Pixel | A single dot of the image; 600 × 600 means 360,000 of them. |
| DPI | Dots per inch — a header value controlling print size, not file size. |
| Lossy | Compression that permanently discards detail (JPG, WebP lossy). |
| Lossless | Compression that preserves every pixel exactly (PNG, WebP lossless). |