What an image file size checker actually measures
An image file size checker answers a deceptively simple question: how many bytes does this picture occupy? That number decides whether a photo is accepted by a passport portal, whether an email will send, whether a page loads quickly on a phone, and how many files fit on a memory card. It is also one of the most misread numbers in everyday computing, because three completely different measurements get called "image size" and they behave nothing alike.
The first is pixel dimensions — width and height in pixels, such as 4032 × 3024. This describes how much detail the picture holds. The second is file size — how many bytes the encoded file occupies, such as 3.4 MB. This describes storage and bandwidth. The third is physical or print size — how large the picture appears when printed at a given dots-per-inch value. This checker reports all three and shows how they relate, because confusing them is the root cause of almost every "my photo won't upload" problem.
It also shows something most online checkers skip entirely: the same file size expressed in both decimal units (KB, MB) and binary units (KiB, MiB). That single addition resolves the most common upload failure of all — a file that Windows reports as "1.00 MB" but that a web form rejects for exceeding a 1 MB limit, because the two are measuring with different rulers.
How to use the checker
- Add your images. Drag files onto the drop zone, click to browse, or copy an image anywhere (a screenshot, a website, a chat) and press
Ctrl+V/⌘+V. Multiple files are processed together. - Pick the active file. If you added several, use the chips above the results to switch between them. Each file keeps its own preview, statistics and analysis.
- Read the headline size. The big number is the exact byte count, with the human-readable KB/MB and KiB/MiB directly underneath.
- Compare against a limit. Choose a preset from the dropdown — Gmail, LinkedIn, a US visa photo, a 100 KB form cap — or type any custom value. The gauge shows immediately whether the file fits and by how much.
- Run the format comparison. This re-encodes your image as JPEG and WebP inside the browser and reports the actual measured output size, so you know what a conversion would save before you do it.
- Export what you need. Copy the full report, download a CSV of every analysed file, or copy just the sizes.
Image size vs file size — the distinction that matters
Two photographs can have identical dimensions and differ in file size by a factor of fifty. A 1920 × 1080 screenshot saved as PNG might be 2.8 MB; the same 1920 × 1080 frame exported from a video as JPEG might be 180 KB. Nothing about the pixel count changed. What changed is how efficiently the data could be encoded.
Four factors determine the file size of an image:
- Pixel count. More pixels means more data to store. Doubling both dimensions quadruples the raw data — a 2000 × 2000 image holds four times the information of a 1000 × 1000 image.
- Format and compression type. Lossless formats preserve every pixel exactly and therefore cannot compress photographic detail much. Lossy formats discard detail the eye is less likely to notice, and can shrink a photo by an order of magnitude.
- Compression quality setting. A JPEG saved at quality 95 can be three to five times larger than the same image at quality 75, with very little visible difference on screen.
- Embedded metadata. EXIF, ICC colour profiles, embedded thumbnails, GPS coordinates and IPTC captions all add bytes. Published measurements have found metadata accounting for roughly 8–16% of a typical web JPEG's total size, and proportionally more on small images where the metadata is a fixed overhead.
KB vs KiB — the 4.86% trap that breaks uploads
There are two systems for counting bytes above a thousand, and both are in daily use.
| Unit | Symbol | Bytes | System |
|---|---|---|---|
| Kilobyte | KB | 1,000 | Decimal (SI) |
| Kibibyte | KiB | 1,024 | Binary (IEC 80000-13) |
| Megabyte | MB | 1,000,000 | Decimal (SI) |
| Mebibyte | MiB | 1,048,576 | Binary (IEC 80000-13) |
Windows File Explorer has historically labelled binary sizes with the decimal names. A file that Explorer calls "1.00 MB" is actually 1,048,576 bytes. An upload form enforcing "1 MB maximum" almost certainly means 1,000,000 bytes. That is a gap of 48,576 bytes — 4.86% — and it is enough to get a file rejected that looks perfectly compliant on your own machine.
This checker displays both readings side by side on every file, and flags the specific case where a file sits between 1,000,000 and 1,048,576 bytes, because that is exactly where the confusion bites.
⚠ Practical rule. When a limit is stated in MB by a website, treat 1 MB as 1,000,000 bytes. If you want a safety margin, aim for at least 5% under the stated limit.
Image formats and what they cost in bytes
| Format | Compression | Typical size | Best for | Transparency |
|---|---|---|---|---|
| JPEG | Lossy | Small–medium | Photographs, complex imagery | No |
| PNG | Lossless | Large for photos | Screenshots, logos, flat colour, transparency | Yes |
| WebP | Lossy or lossless | 25–34% smaller than JPEG | Web images where support is broad enough | Yes |
| AVIF | Lossy or lossless | 30–50% smaller than JPEG | Modern web delivery, high-detail photos | Yes |
| GIF | Lossless, 256 colours | Small for flat art, large for photos | Simple animation, tiny icons | 1-bit only |
| BMP | None | Very large | Legacy Windows bitmap workflows | Yes |
| TIFF | Lossless or none | Very large | Print production, archiving, scanning | Yes |
| HEIC | Lossy (HEVC) | Roughly half of JPEG | iPhone camera default storage | Yes |
| SVG | Vector, text-based | Tiny to small | Icons, logos, anything that scales | Yes |
Converting a photographic PNG to JPEG or WebP is the single highest-leverage change most people can make: it routinely cuts file size by 60–90% on photographs with no perceptible difference on screen. Converting a screenshot or a logo the other way — from JPEG back to PNG — usually makes the file larger and adds compression artefacts, so it is rarely worth doing.
How image compression actually works
Knowing what happens inside the encoder makes every file-size decision easier — why one photo stays under 200 KB while another identical in dimensions balloons past 4 MB, why re-saving a JPEG repeatedly degrades it, and why the quality slider behaves non-linearly.
JPEG — discrete cosine transform and quantisation
JPEG compression runs in four stages, and one of them is the step that makes it lossy:
- Block splitting. The image is divided into 8 × 8 pixel blocks. Each block is processed independently, which is why JPEG shows blocky artefacts at very low quality rather than blurring the whole picture.
- Discrete cosine transform (DCT). Each 8 × 8 block is converted from a spatial grid of pixel values into 64 frequency coefficients — one low-frequency "average brightness" coefficient plus progressively higher-frequency detail coefficients. Most photographic blocks have lots of energy in the low frequencies and almost nothing at the highest frequencies.
- Quantisation. Each coefficient is divided by a value from a quantisation table and rounded to the nearest integer. Low-frequency coefficients are divided by small numbers and survive intact; high-frequency coefficients are divided by large numbers and typically round to zero. This is the lossy step, and it is where the compression happens — the encoder is literally discarding detail you cannot easily see.
- Entropy coding. The surviving quantised coefficients are run-length encoded (many zeroes become a single token) and then Huffman coded. This stage is lossless.
JPEG also stores brightness and colour separately, in a Y′CbCr colour space. Because human vision resolves brightness detail far more finely than colour detail, most encoders apply chroma subsampling: the two colour channels are stored at reduced resolution. The three standard modes are:
- 4:4:4 — no subsampling, all colour data preserved.
- 4:2:2 — colour halved horizontally, 33% smaller chroma data.
- 4:2:0 — colour halved in both directions, 50% smaller chroma data.
Nearly all camera JPEGs default to 4:2:0 because it is visually transparent on photographs. Combined with a quality setting near 80, 4:2:0 gives an enormous size reduction for essentially no perceptible loss on a screen, which is why the trial encode on this page uses quality 82.
PNG — predictive filters and DEFLATE
PNG is lossless: every pixel is preserved exactly. Its compression comes from two clever stages.
First, each scanline is passed through one of five predictive filters — None, Sub, Up, Average, and Paeth — that predict each pixel from its neighbours and store only the difference. Large flat areas become runs of zeroes; gradients become small values. Second, the filtered data is compressed with DEFLATE, which is itself a combination of LZ77 (repeated byte sequences become back-references) and Huffman coding.
The result is that screenshots, logos, and diagrams with large uniform regions compress beautifully in PNG — often to 10–20% of their raw size — while photographs with continuous tone do not compress well at all, because there are few repeating byte patterns and few large flat regions. That is precisely why a photographic PNG can be 5 to 20 times larger than the same image as JPEG.
WebP and AVIF — modern codecs
WebP is built on Google's VP8 video codec for its lossy mode and on a WebP-specific encoder for its lossless mode. In practice it produces files 25–34% smaller than JPEG at matched quality on photographic content, and 26% smaller than PNG at matched quality on lossless content — the figures Google reported when it published the format. Support is now universal in every browser released since roughly 2020.
AVIF is built on the AV1 video codec and pushes compression further, typically 30–50% below JPEG at matched quality on photos. It is noticeably slower to encode and, in the earliest years of its availability, was also slower to decode. Support is now broad in modern browsers but not universal, so it is normally served with a JPEG or WebP fallback through the HTML <picture> element.
WebP vs AVIF vs JPEG — which should you actually use?
The three formats overlap heavily but each has a clear sweet spot. Choosing between them comes down to three factors: what the image is, where it will be viewed, and how much time you want to spend.
| Format | Typical saving vs JPEG | Encoder speed | Decode speed | Browser support | Best for |
|---|---|---|---|---|---|
| JPEG | baseline | fast | fast | universal | Maximum compatibility, email attachments, print, legacy |
| WebP | 25–34% | fast | fast | universal | Default web choice — same visual quality at notably smaller size |
| AVIF | 30–50% | slow | moderate | broad | High-quality photographs where you can serve a fallback |
| PNG | often larger | moderate | fast | universal | Screenshots, icons, logos, transparency, anything flat-colour |
| SVG | dramatically smaller | n/a | fast | universal | Icons, logos, and anything that must scale without pixelation |
A simple decision tree works for almost every web image: is it a photograph? Use WebP (serving AVIF as a bonus where your build tooling supports it). Is it a screenshot, logo, icon or anything with flat colour and hard edges? Use PNG or SVG. Is it going to a printer or into an email where compatibility matters most? Use JPEG. Nobody's workflow gets meaningfully better from agonising over which one; the biggest gains come from choosing one of the modern formats at all and resizing the file down to its display dimensions.
How to check image file size without an online tool
Every operating system shows file size natively. This is useful when you are offline or handling a file you would rather not open in a browser at all.
- Windows. Right-click the file and choose Properties. The General tab shows Size (the actual byte count) and Size on disk (the space allocated, which is usually slightly larger). The Details tab shows pixel dimensions, DPI, colour depth and EXIF fields. In File Explorer's Details view you can add a Dimensions column that displays width × height for every file in a folder at once.
- macOS. Select the file and press
⌘I, or right-click and choose Get Info. The General section shows size; More Info shows dimensions. Opening the image in Preview and choosing Tools → Show Inspector gives dimensions, DPI, colour model and the embedded colour profile in one panel. - iPhone. Open the photo in the Photos app and swipe up (or tap the info button). The caption shows the date, location, filename, file size and dimensions.
- Android. Open the photo in Google Photos, tap the three-dot menu and choose Details, or open it in a file manager and view Properties.
What none of these do is compare the file against a real upload limit, show a byte-composition breakdown, or measure what a re-encode would produce — which is what this page adds.
Common upload limits you are likely to hit
| Destination | Limit | Notes |
|---|---|---|
| Gmail | 25 MB | Total message including all attachments, not per file |
| Outlook.com | 20 MB | Combined message size |
| Default Exchange account | 10 MB | Administrators can raise this |
| Microsoft 365 | 25–35 MB | Set by the tenant administrator |
| Yahoo Mail | 25 MB | Per message |
| iCloud Mail | 20 MB | Per message |
| LinkedIn image post | 5 MB | Per image |
| Facebook / Instagram | 8 MB | Per image; platforms recompress on upload |
| X (Twitter) static image | 5 MB | 15 MB for animated GIF |
| US DS-160 visa photo | 240 KB | Square JPEG, 600 × 600 to 1200 × 1200 px |
| UK passport (online) | 50 KB – 10 MB | Minimum 600 × 750 px |
| Typical government form | 20–100 KB | Common caps are 20, 50, 100 and 200 KB |
💡 Why platform limits matter even when you are under them. Instagram, WhatsApp and iMessage recompress every image you send. Tests have recorded a 2.6 MB photo arriving through WhatsApp at around 41 KB — a 98% reduction. Uploading a large file does not preserve quality on those platforms; it only wastes upload time. Checking the size first tells you whether resizing yourself would give you better control over the result.
Target file sizes by use case
Universal rules are easy to state but hard to apply. Below are the concrete numbers that best match what each context actually needs.
| Use case | Target file size | Suggested dimensions | Format |
|---|---|---|---|
| Blog article image | < 150 KB | 1200–1600 px wide | WebP |
| Hero / banner image | < 300 KB | 1920–2560 px wide | WebP or AVIF |
| Thumbnail / icon | < 30 KB | 150–400 px | WebP or SVG |
| E-commerce product photo | 100–250 KB | 1000–2000 px square | WebP or JPEG |
| Etsy listing image | < 1 MB | 2000 px on shortest side | JPEG |
| Amazon product main | under 10 MB, ideally < 500 KB | ≥ 1000 px on longest side | JPEG |
| WordPress upload (default) | < 2 MB | Resize to display width | WebP |
| Email attachment | < 5 MB (whole message < 20–25 MB) | Resize to 1600 px | JPEG |
| Email signature logo | < 20 KB | ≤ 200 px wide | PNG or SVG |
| Instagram feed post | 100–500 KB after downscale | 1080 × 1080 | JPEG |
| Passport / visa (US) | ≤ 240 KB | 600 × 600 to 1200 × 1200 | JPEG |
| Print (300 DPI) | 1–6 MB depending on size | 300 DPI × target inches | TIFF or high-quality JPEG |
| Favicon | < 5 KB | 32 × 32 or 512 × 512 | ICO or PNG |
| Slide deck image | 150–400 KB | 1400–2000 px wide | JPEG or PNG |
These are targets, not ceilings. A hero image that is 280 KB instead of 300 KB is not a failure — the point is to keep the file inside a size band that gives the user the intended experience without wasting bandwidth. The gauge on this page turns amber at 80% of the target for that reason: it is a warning that you are close to the ceiling, not a hard fail.
How to reduce an image file size
There are three levers, and applying them in this order gives the best quality for the smallest file.
- Resize first. An image displayed at 800 pixels wide does not need to be 4000 pixels wide. Halving each dimension cuts pixel count by 75%, and file size usually falls by a similar proportion. Most web images are exported at several times the size they are ever displayed.
- Then convert the format. A photographic PNG is often five to twenty times larger than the same image as JPEG or WebP. For photographs, WebP at quality 80 typically lands 25–34% below JPEG at equivalent quality, and AVIF can go 30–50% below JPEG.
- Then lower the quality setting. JPEG quality is not linear. Going from 100 to 90 cuts size sharply with almost no visible change; going from 90 to 80 cuts it again. Below roughly 60 the artefacts become visible on gradients and fine detail. The quality-versus-size chart in this tool exists precisely so you can see where the curve flattens for your specific image rather than guessing.
Stripping EXIF metadata is a useful fourth lever that costs nothing visually. It also removes GPS coordinates, which is often desirable for privacy when posting a photo publicly.
Image optimization workflow — the order that actually works
Applying the three levers in the wrong order wastes quality. The sequence that gives the best result, and that you can apply to any image with this page open, is below.
- Start from the largest, most original file you have. Never optimize a version that has already been recompressed. Every additional JPEG save discards more detail; a photo passed through three different tools ends up visibly worse than a photo optimized once from the original.
- Read the current file size here. Note the actual byte count and confirm the format with the checker. A "PNG" that is really a renamed JPEG cannot be trusted, and the format sniffing on this page catches that.
- Resize to the actual display dimensions. If the image will appear at 800 pixels wide on a 2× retina display, the maximum useful size is 1600 pixels wide. Anything larger is wasted bytes. Use the image-resizer or downscaler to handle the pixel dimensions precisely.
- Choose the format based on content type. Photograph → WebP or AVIF. Screenshot, logo, icon, anything with flat colour → PNG or SVG. Print or email attachment → JPEG.
- Run the trial encode here first. The Measure now panel re-encodes the image in your browser and shows real output sizes for JPEG and WebP without committing to any change. Use it to sanity-check the quality-versus-size curve before you save.
- Compare against your target. If the trial output is already under the limit you need, save it. If it is close, apply metadata stripping. If it is well over, go back to step 3 and reduce the display dimensions further — resizing is far cheaper in quality than over-compressing.
- Verify with the gauge. Drop the final file into the checker once more. The gauge should be green. If it is amber (above 80%), consider resizing once more or dropping quality a notch. If it is red, the file did not shrink as much as expected — check whether you saved in the format you intended.
The workflow can be done entirely in browser tools. The two most common avoidable mistakes are resizing after compressing (which throws away detail you already paid to keep) and trusting a viewer's "quality" preview instead of the actual byte count.
Image file size and page speed
Images typically account for the majority of a web page's total download weight, and the largest image on a page is frequently the Largest Contentful Paint element — the metric that most often determines whether a page passes Core Web Vitals. A single unoptimised 1.5 MB hero photograph can push mobile LCP past several seconds on a mid-range connection. Re-encoding that same image at its actual display size and serving it as WebP or AVIF commonly takes it below 50 KB.
The practical budget most performance guidance converges on: roughly 100–200 KB per content photograph, under 50 KB for icons and small graphics, and under 300 KB for hero images. Anything substantially above those figures on a page with several images is worth investigating. Google's own PageSpeed Insights, WebPageTest, and the Network panel in browser DevTools all surface the byte cost of every image on a page — the numbers they report will match the byte counts this checker gives you, because both read the same underlying file size.
Serve modern formats with an HTML <picture> element and fallbacks, set width and height attributes to prevent layout shift, and use loading="lazy" for anything below the fold. Those are the three highest-leverage page-level changes and they only work well if the underlying images are already reasonably sized.
Common mistakes
- Confusing MB with MiB. Covered above — a 1.00 MB reading in Windows can exceed a 1 MB web limit.
- Compressing an already-compressed JPEG repeatedly. Every re-save of a JPEG discards more detail. Generational loss is real, and after several rounds the image visibly degrades. Compress once from the original.
- Assuming a lower quality setting always means a smaller file. It usually does, but not always — for certain images, particularly ones with unusual high-frequency detail, a slightly different quantisation table can produce a larger file. The measured trial encode in this tool avoids the guesswork.
- Believing DPI changes file size. Changing the DPI field alone does not add or remove pixels, so it barely changes the byte count. DPI only tells a printer how densely to place the existing pixels.
- Assuming a bigger file means a better image. A 6 MB PNG can look worse on screen than a well-encoded 200 KB WebP, because the PNG is storing noise and metadata rather than useful detail.
- Ignoring the message-size limit. Email caps apply to the whole message. A 24 MB image plus a signature, quoted thread and a second attachment will exceed a 25 MB cap even though the image alone fits.
- Optimising before resizing. Compressing a 4000-pixel-wide image down to 400 KB and only then resizing it to 800 pixels wastes the compression pass entirely. Resize first, then compress.
Limitations
- Pixel dimensions, DPI and the trial re-encodes require the browser to decode the file. That works for JPEG, PNG, GIF, WebP, BMP, AVIF and SVG in modern browsers. HEIC can only be decoded by Safari; in other browsers this tool still reports the exact file size and format but notes that dimensions were unavailable.
- The byte-composition breakdown reads the JPEG APPn marker segments and PNG chunk headers directly. It is accurate for those two formats and is not shown for others.
- The trial re-encodes use the browser's own canvas encoder, which is not identical to libjpeg-turbo, libwebp or libavif. Results are realistic and directionally accurate, but a dedicated encoder may produce slightly different byte counts.
- AVIF encoding via canvas is supported in some browsers but not all. When it is unavailable the tool simply omits that row rather than showing an estimate.
- DPI is reported only when the file actually stores it. Many exporters omit it, and its absence is not an error.
Glossary
- Byte
- Eight bits — the smallest unit of storage most systems address. Every file size in this tool is ultimately a count of bytes.
- KB / MB / GB
- Decimal units — 1,000, 1,000,000 and 1,000,000,000 bytes. Defined by the International System of Units.
- KiB / MiB / GiB
- Binary units — 1,024, 1,048,576 and 1,073,741,824 bytes. Defined by IEC 80000-13.
- Pixel
- A single point of colour in an image. The full image is a grid of pixels; the grid size is its dimensions.
- Resolution
- Loosely used for both pixel dimensions and DPI. In this tool, "dimensions" always means pixels; "DPI" always means print density.
- DPI
- Dots per inch — how many pixels fit in one linear inch of a printed image. Only meaningful when printing.
- Megapixel (MP)
- One million pixels. A 4000 × 3000 image is 12 MP.
- Aspect ratio
- The proportional relationship between width and height, expressed as W:H. Common ones are 16:9, 4:3 and 1:1.
- Lossless compression
- Compression that preserves every pixel exactly. PNG is lossless; so is WebP in its lossless mode.
- Lossy compression
- Compression that discards detail to save space. JPEG, WebP lossy, AVIF and HEIC are all lossy.
- Quality setting
- A number (usually 0–100) that tells a lossy encoder how much detail to discard. Higher means larger and better; lower means smaller and worse.
- Chroma subsampling
- Reducing colour resolution relative to brightness. 4:2:0 halves chroma in both directions — the standard trade-off in camera JPEGs.
- EXIF
- Metadata embedded by cameras and phones — capture time, device model, exposure, sometimes GPS coordinates.
- ICC profile
- A small embedded file describing how the image's colours map to a physical device. Adds a few kilobytes and is often optional for web use.
- Colour depth
- Bits per pixel. Standard images are 24-bit (8 bits each for red, green, blue = 16.7 million colours). Higher depths mean larger files.
- Uncompressed size
- Width × height × bytes per pixel — the byte count the raw pixel data would occupy with no compression at all.
- Compression ratio
- How many times smaller the actual file is than its uncompressed size. A 10:1 ratio means the format saved 90%.
- Magic bytes
- The first few bytes of a file that identify its true format, regardless of filename extension. Used by this tool to detect the real format.
Frequently asked questions
How do I check the file size of an image?
Drop it onto this page and the exact byte count appears immediately, alongside KB, MB, KiB and MiB. Offline: on Windows, right-click → Properties → General for size and Details for dimensions; on macOS, select the file and press ⌘I or open in Preview → Tools → Show Inspector; on iPhone, open the photo and swipe up; on Android, open it in Google Photos → menu → Details.
What is the difference between image size and file size?
Image size is pixel dimensions (1920 × 1080) — how much detail the picture holds. File size is bytes on disk (350 KB) — how much storage or bandwidth it needs. Two images with identical dimensions can differ in file size by fifty times or more depending on format, compression quality and metadata.
Is 1 MB 1000 KB or 1024 KB?
Both, in different systems. Decimal SI: 1 MB = 1,000 KB = 1,000,000 bytes. Binary: 1 MiB = 1,024 KiB = 1,048,576 bytes. Windows labels binary sizes as KB and MB, which is why a file reading "1.00 MB" there can exceed a 1,000,000-byte web limit by 4.86%. This checker shows both.
Why is my PNG so much bigger than a JPEG of the same photo?
PNG is lossless — it stores every pixel exactly, so photographic detail cannot compress much. JPEG discards detail the eye is less sensitive to and typically produces files 5–20 times smaller for photographs. PNG is the right choice for screenshots, logos and transparency; JPEG and WebP are right for photos.
How many bytes is a 4 MB photo?
At decimal 4 MB it is 4,000,000 bytes (about 3.81 MiB). At binary 4 MiB it is 4,194,304 bytes (about 4.19 MB). When a form says "4 MB maximum" it almost always means decimal, so the safe ceiling is 4,000,000 bytes.
What is a good image file size for a website?
Roughly 100–200 KB per content photograph, under 50 KB for icons and small graphics, and under 300 KB for hero images. Images are often the Largest Contentful Paint element, so oversized images are one of the most common causes of slow mobile pages. WebP and AVIF typically cut size 25–50% versus JPEG at comparable quality.
What file size is too big to email?
Gmail 25 MB, Outlook.com 20 MB, default Exchange 10 MB, Yahoo 25 MB, iCloud 20 MB — all applying to the whole message, not per file. Anything above roughly 10 MB is better shared as a cloud link.
How big should a passport or visa photo file be?
US DS-160 visa: square JPEG, 600 × 600 to 1200 × 1200 px, maximum 240 KB. UK passport online: at least 600 × 750 px, between 50 KB and 10 MB. Indian portals often cap near 1 MB. Always confirm the specific portal's limits before submitting.
Does EXIF metadata make an image file bigger?
Yes. Camera and phone photos carry EXIF fields, ICC colour profiles, embedded thumbnails and sometimes GPS data. Published measurements put metadata at roughly 8–16% of a typical web JPEG's size, and proportionally more on small images. Stripping it is one of the cheapest ways to shrink a photo without touching visible quality.
How do I reduce an image to under 100 KB?
Resize first — an image displayed at 800 px wide does not need to be 4000 px wide, and halving each dimension cuts pixel count 75%. Then convert format: photographic PNG to JPEG or WebP can cut size 60–90%. Then lower quality: JPEG 70–80 is usually indistinguishable from 90–95 at a fraction of the size. That sequence gets almost any photo under 100 KB.
What is the difference between KB and KiB?
KB is the decimal kilobyte (1,000 bytes, SI). KiB is the binary kibibyte (1,024 bytes, IEC 80000-13). The same split applies to MB/MiB and GB/GiB. Operating systems have historically used binary values while showing decimal labels, which is the root of most file-size confusion.
Can this tool tell me the image's DPI?
Yes, when the file records it — JPEG can carry it in the JFIF APP0 segment or EXIF resolution tags, and PNG can carry it in a pHYs chunk. If no DPI is stored the tool says so, which is normal because DPI only matters at print time. The tool also shows the print size the image would produce at 300 and 150 DPI, calculated from pixel dimensions.
Does the tool upload my images anywhere?
No. Files are read with the browser's File API and decoded locally with createImageBitmap. The trial re-encodes run through the browser's own canvas encoder. There is no server call, no account and no logging. Open your browser's network panel while using it and you will see no requests after the page has loaded.
Which formats does the checker support?
File size, format identification and MIME type are reported for every file because they only need the file length and its first few bytes. Pixel dimensions, megapixels, aspect ratio and trial re-encodes require browser decoding, which works for JPEG, PNG, GIF, WebP, BMP, AVIF and SVG. HEIC decodes only in Safari; elsewhere the size and format are still reported with a clear note.
What is the uncompressed size of an image?
It is the bytes the pixel data alone would occupy with no compression: width × height × bytes per pixel. A standard 8-bit RGB image uses 3 bytes per pixel, so a 4000 × 3000 photo occupies 36,000,000 bytes uncompressed. The checker shows this and the compression ratio, which makes clear how much work the format is doing.
How does JPEG compression actually reduce file size?
JPEG compresses in four stages. The image is split into 8 × 8 pixel blocks. Each block is transformed with a discrete cosine transform (DCT) that converts spatial detail into frequency coefficients. Those coefficients are divided by values in a quantisation table — high-frequency coefficients get divided by large numbers and are often rounded to zero, which is the lossy step. Finally the remaining coefficients are run-length and Huffman coded. Colour information is usually reduced too: 4:2:0 chroma subsampling averages colour over 2 × 2 blocks, cutting chroma data by 75% because human vision is more sensitive to brightness than colour.
What is chroma subsampling?
Chroma subsampling reduces stored colour information by exploiting the fact that human vision resolves brightness detail far more finely than colour detail. Common schemes are 4:4:4 (no subsampling), 4:2:2 (chroma halved horizontally, 33% smaller chroma data) and 4:2:0 (chroma halved in both directions, 50% smaller chroma data). Nearly all camera JPEGs default to 4:2:0 and it is visually transparent on photographs, which is why it is the standard trade-off between quality and file size.
What file size should product images be for e-commerce?
Shopify, WooCommerce and most storefronts recommend product images roughly 1,000–2,000 pixels square and under 200–300 KB per image. Amazon requires at least 1,000 pixels on the longest side and accepts up to 10 MB but optimises anyway. Etsy recommends 2,000 pixels on the shortest side and prefers files under 1 MB. The universal rule: use the smallest file that still shows the product detail the shopper needs. Multiple high-resolution angles stacked on one product page add up quickly, so a 4-image gallery at 300 KB each is 1.2 MB — worth halving if you can.
Sources & methodology
- International Electrotechnical Commission, IEC 80000-13:2008 — definitions of the binary prefixes kibi-, mebi-, gibi- (1 KiB = 1,024 bytes).
- International Bureau of Weights and Measures (BIPM), SI Brochure, 9th edition — decimal prefix definitions (1 kB = 1,000 bytes).
- Google support documentation — Gmail attachment limit of 25 MB per message. Microsoft support documentation — Outlook.com 20 MB and default Exchange 10 MB limits.
- US Department of State, DS-160 nonimmigrant visa photo requirements — 600 × 600 to 1200 × 1200 px, ≤240 KB, JPEG. GOV.UK passport photo rules — minimum 600 × 750 px, 50 KB to 10 MB.
- Dexecure / KeyCDN image metadata research — metadata averaged 15.8% of total file size across surveyed web images; ShortPixel measurements found an 8.5% average reduction when EXIF and ICC profiles are stripped.
- Google WebP studies — lossless WebP 26% smaller than PNG, lossy WebP 25–34% smaller than JPEG at equivalent quality. AVIF benchmarks showing roughly 30–50% reduction versus JPEG.
- ITU-T T.81 — JPEG specification (DCT, quantisation, Huffman coding). ISO/IEC 15948 — PNG specification (five scanline filters, DEFLATE). ITU-T H.264 / H.265 / AV1 reference documentation for the modern codecs.
- Published compression-curve analyses (EWWW Image Optimizer, Flickr engineering) confirming the non-linear relationship between JPEG quality setting and resulting file size.