Skip to content
FrAIFlow
English

Blog

Why converting a small PNG to JPEG can make the file larger

Written and maintained by FrAIFlowPublished Report an error

A form asks for JPG under a byte limit, but your source contains small text. Start with the receiving site's rules, then compare actual files at the same pixel dimensions. In our camera test WebP was smallest, while in the compact graphic every conversion grew. The smallest file is useful only if its format is accepted and its important detail survives.

Finish with the file you will actually send

  1. Create and compare candidates
  2. Remove supported metadata from the final JPEG or PNG · Create and check the final file
  3. Download final image · This saved file matches a checked final file.

Example conditions only, not an institution’s rules: JPG, at most 200 KB, at least 1200 × 1600 px. No customer information is included.

Confirm the submission conditionsAfter
JPEG · ≤ 200000 BJPEG · 198362 B
At least · 1200 × 1600 px1571 × 2222 px
Try the synthetic document · JPEG · 198362 B
Try the synthetic document

PNG · JPEG · 198362 B · Download final-file report · Download sources, saved results and reports · ZIP

The final file meets the settings shown above. Open the saved copy before sending it.

The final step checks the file after optional metadata cleanup. It checks your technical settings, not acceptance by another website. Visible faces and text stay in the image.

Prepare one final file and check its requirements

Download final-file report · JSON · Download final image · JPEG · 596453 B

Large files need a separate decision. The comparison now runs away from the page's main interaction work and keeps decoded dimensions instead of silently shrinking the test. The ceiling is 24 million pixels on wide screens, 12 million on narrow screens and 15 MiB per input. Clear results stops an active comparison. These are workflow limits, not a claim that every device has enough memory. The earlier fallback remains limited to 8 million pixels and 10 MiB.

Additional tests with a camera JPEG, a screen PNG and small text

We kept the original small-pattern test and added three different inputs: an unchanged 2048 × 1536 camera photograph, a generated 1280 × 800 interface PNG with transparent margins, and a generated 1280 × 900 document PNG with 12, 14, 16 and 20 px text. The same files are used in every language; these are not customer records.

Download sources, saved results and reports · ZIP · 10.1 MB

The useful output depended on the image

At a quality request of 80 and unchanged pixel dimensions, JPEG and WebP exports of the camera photograph were smaller than its source; PNG was much larger. That is the opposite of the first compact-pattern example, where every export grew. Choose using the actual file and the receiving site’s format rules, not a general claim that one format always compresses better.

The interface PNG has transparent margins. JPEG fills them with the selected white background; PNG and WebP outputs retain transparency capability. An output that is smaller but loses a required transparent edge is unsuitable. The table records actual downloaded bytes, not estimated savings.

Test inputBefore · BJPEG · BPNG · BWebP · B
Camera photograph6318524791905439572291596
Transparent screen PNG47814494098296021596
Small-text PNG929138348816817241822

Check the 12 px text at its original pixel size

We exported the same text sheet at requests 80 and 45. In the enlarged JPEG crop, 45 produced rougher character edges in this viewing check, although the text remained recognizable. Inspect the long identifier, 0/O and 1/I/l yourself. Do not decide that a document is safe to submit from its smaller byte count alone.

The PNG export preserved every decoded RGB pixel of this generated text sheet, but its file was larger than the source. JPEG and WebP changed pixels. Pixel equality is a narrow check on this fixture, not an OCR result or a readability score. The quality request is not an equal visual-quality scale across formats.

JPEG / WebP quality request (1–100)JPEG · BPNG · BWebP · B
808348816817241822
455503416817230982

Original-size crop from the actual saved file. On a narrow screen, scroll the image horizontally. The shared test text is in English.

Original · Small-text PNG
Original
JPEG · 80 · Small-text PNG
JPEG · 80
JPEG · 45 · Small-text PNG
JPEG · 45
WebP · 80 · Small-text PNG
WebP · 80
WebP · 45 · Small-text PNG
WebP · 45
PNG · Small-text PNG
PNG

These measurements describe the tested browser and these files. The photograph is a credited public-domain source; both PNGs are generated test assets. Re-encoding and metadata removal are different operations. No all-file, all-browser or readability certification is claimed.

Photo: Smack, Glacier Avalanche Lake, released into the public domain. The original download is unchanged; photo-web.jpg is a disclosed re-encoded derivative. Wikimedia Commons · Smack

Download test filesEarlier small-pattern test and saved evidence · 2026-11-27

We exported the same 256 × 160 generated graphic as JPEG, PNG and WebP. The source PNG was 1,385 bytes. In the browser used for this test, the saved JPEG was 9,607 bytes, PNG was 2,846 bytes and WebP was 2,944 bytes. Every candidate was larger than the original. Changing a format label was not a compression strategy for this file.

Compare actual JPEG, PNG and WebP exports
Diagram of the published test. Download the files to inspect the actual results.
FormatActual bytesActual pixels
PNG · Original1385256 × 160
JPEG9607256 × 160
PNG2846256 × 160
WebP2944256 × 160

Compare like-sized saved pictures

The format comparison workflow keeps the decoded pixel dimensions unchanged. That removes resizing as an explanation for the file-size difference. It encodes the candidates, checks their actual format signatures and reopens each result before reporting its dimensions and byte count. Download the set if you want to examine the files in your own viewer.

The test graphic has flat colours, a fine grid and a partly transparent region. It is not a representative photograph, and these sizes are not a benchmark for every image or browser. A different encoder, source pattern or quality request can change the result. Our source was already compact, which is precisely why keeping it was a reasonable option.

Transparency changes the comparison

The source contains 4,032 pixels whose alpha value is below 255. JPEG cannot carry that transparency, so the tool fills those pixels with the background colour you choose. PNG and the available WebP output can carry alpha. Inspect edges against the background on which the final image will appear; a small file is not useful if the edge looks wrong there.

The quality request applies to JPEG and WebP, while PNG ignores it. A value of 80 is not an equal visual-quality score across codecs. Do not conclude that the smallest candidate is automatically the best. Use the actual file, its dimensions, its transparency behaviour and the requirements of the receiving site together.

Keep the original when the conversion does not help

Large files need a separate decision. The comparison now runs away from the page's main interaction work and keeps decoded dimensions instead of silently shrinking the test. The ceiling is 24 million pixels on wide screens, 12 million on narrow screens and 15 MiB per input. Clear results stops an active comparison. These are workflow limits, not a claim that every device has enough memory. The earlier fallback remains limited to 8 million pixels and 10 MiB.

For a file-size limit, first check whether the original is already accepted. If it is too large, try a format comparison or the target-size tool, then reopen the chosen result and inspect small details. If all candidates are worse, keep the source and change a justified parameter such as pixel dimensions. The example download includes the actual saved candidates and hashes; it does not promise that your next photo will produce these same numbers.

Method and sources

How we checked it and useful sources

Start with a specific failure, keep the original, change one relevant condition, and reopen the output. We distinguish our controlled tests from other people's reports and from instructions based on documentation.

How these guides are made

Reuse these settings

Save settings for the next file, apply them, check the requirements again and then run. The original file and the current result are not stored in a preset.

Reuse these settings

Download final image · image-small-text.png
Download final image · image-image.jpg
Download final image · image-image.json

Did this help you solve your problem?

We send your selected answers and page information, never your files or input contents. Feedback is kept for up to 30 days. Privacy

Did this help you solve your problem?