How to Resize Images for Social Media Without Distortion
Resize by aspect ratio instead of memorised pixel charts, and understand why fewer pixels does not reliably mean a smaller file.
Read guide →PNG is lossless, so heavy files often barely shrink. See what palette compression changes, when it helps, and when to resize or convert instead.
In this guide
A PNG barely shrinks because PNG is lossless: every pixel has to come back exactly as it went in, so the only savings on offer are the ones that cost nothing, and a photograph, a noisy gradient or a file that was already optimised has very few of those. The one lever that still moves the file size is the number of colours. Reducing an image to an indexed palette can cut a heavy PNG sharply, but it is lossy, and it suits some images far better than others.
This guide explains why PNG files resist compression, what palette (indexed-colour) compression changes, which images it suits and which it damages, and how to decide between compressing, resizing and converting when you need to reduce a PNG's file size. Statements about how FiloTool's PNG compressor behaves come from its source code or from tests we ran against it.
Complete this task using FiloTool's PNG Compressor directly from your browser.
Open PNG Compressor →The PNG specification describes the format as lossless, and that explains most stubborn files. A PNG stores every pixel's colour exactly, then packs the pixel rows with DEFLATE, a general-purpose compressor that saves space by reusing repeated patterns. A screenshot is full of repeats, such as long runs of one background colour. A photograph is the opposite: sensor noise, texture and soft lighting make neighbouring pixels similar but rarely identical, so there is little for DEFLATE to reuse and the file stays large.
Two other things stop a re-save from helping. If an optimising tool already wrote the file, the easy lossless savings are gone. And a browser cannot turn a quality dial: Canvas can write PNG, but only lossless PNG, and re-encoding the same pixels losslessly does not beat an already-optimised original. There is no PNG equivalent of the quality slider on a JPG or WebP.
So a tool that wants a meaningfully smaller PNG has to change the pixels or the pixel count. That is the choice the rest of this guide is about.
An indexed-colour PNG stores a palette, which is a short list of colours, and then one small index per pixel instead of a full colour value. The specification allows up to 256 palette entries, and a transparency chunk can attach an alpha value to each entry. Fewer bits per pixel means fewer bytes before DEFLATE even starts.
FiloTool's PNG Compressor works this way, and so does the PNG path of the Image Compressor. The three levels set the palette size: 256 colours for Quality, 128 for Smart and 48 for Extreme, with Smart as the default on the PNG Compressor. When an image has more colours than the level allows, a median-cut step chooses the palette and each pixel is mapped to its nearest entry. Floyd–Steinberg dithering then trades a few bytes for smoother-looking gradients. The output is a new PNG with the same pixel dimensions.
Two cases are worth keeping apart. If the image already uses no more colours than the level's palette size, the palette is built from its exact colours and no pixel changes. If it uses more, the result is an approximation that cannot be undone. In both cases FiloTool also keeps the ordinary lossless version as a candidate, uses whichever is smaller, and gives you your original file back if neither is smaller.
Screenshots, diagrams, charts, logos, icons and flat illustrations are the good cases because they use a small, repeated set of colours. When the whole image fits inside the palette, the conversion is exact: the same pixels in a smaller file. Flat areas also tend to survive cleanly. In a test with a flat blue panel next to photographic noise, the blue came through unchanged at all three levels.
Anti-aliased text is the catch. The soft grey edges around letters add many intermediate shades, so a screenshot can fit inside the 256 or 128 colour palettes exactly and still be approximated at Extreme, where the limit is 48. We saw exactly that with a synthetic image: Quality and Smart returned identical pixels, and Extreme did not.
Palette compression discards colour information, so it does the most damage where an image genuinely needs that information:
Photographs: thousands of distinct colours are squeezed into at most 256, 128 or 48. Expect banding in skies and skin tones, or grain where dithering takes over.
Smooth gradients: a gradient is a long run of nearly identical but different colours, which is exactly what a small palette cannot represent. At Extreme the output can contain no more than 48 of them.
Exact colours and masters: the pixel values are rewritten and cannot be restored, so keep the original for design masters, files you will edit again, or anything where a colour value has to match.
Soft transparency: alpha is stored per palette entry, so shadows and anti-aliased edges are approximated along with the colours. Fully transparent pixels stay fully transparent, but check the result over both a light and a dark background.
As one data point, we ran a single synthetic, photo-like PNG through the PNG Compressor on the live site. The file was 788 KB and 783 × 522 pixels. The three levels produced:
Quality (256 colours): 228,549 bytes
Smart (128 colours): 189,518 bytes
Extreme (48 colours): 140,977 bytes
What it shows is where the saving comes from. Even the gentlest level took the file to less than a third of its original size, and it did so by discarding colour detail rather than by packing the same pixels more cleverly. That is the trade you make with a photo-like image, and it is why you should look at the output before you keep it.
It does not show that your file will shrink by a similar amount. A simple graphic with few colours may shrink more and look identical, while an already small or already indexed PNG may not shrink at all.
These are three different levers, and they are not interchangeable. Palette compression reduces colours, resizing reduces pixels, and converting changes the format. Decide which constraint you actually have:
A screenshot, diagram or logo: compress. A small palette often fits exactly, so the file gets smaller and the image does not change.
A PNG far larger in pixels than the space it will be shown in: resize first with the Image Resizer. It carries pixels nobody sees, and you can still palette-compress afterwards.
A photograph that does not need transparency: convert with the Image Converter. JPG and WebP are built for photographic detail, and the image format comparison shows the size gap on a photograph. JPG cannot store transparency, so converting flattens it onto a background colour, while WebP can keep alpha.
A file that must stay PNG, or must keep exact pixels: compress only if the image is simple, otherwise resize it or leave it alone.
A smaller file in a format that the destination rejects is not a saving, so confirm what the upload form, platform or recipient accepts before converting. Lossy formats also have their own cost when a file is saved repeatedly; how JPEG compression works explains why, and JPG vs PNG vs WebP covers the wider format trade-offs.
Treat the first output as a candidate, not a final file.
Keep the original. Palette reduction cannot be undone, so work on a copy.
Compare at full size. The Image Compressor's before and after slider lays the compressed copy over the original on the same pixels, which makes banding and lost detail easy to spot. Look at gradients, text edges, faces and skies.
For transparent images, view the result over a dark background and a light one.
Read the numbers. The result panel shows the original size, the new size and the percentage saved. If it says Original Image Retained, the palette version was not smaller and the file you have is your original.
Confirm the pixel dimensions are what you expect, then test the file where it will be used.
FiloTool's palette writer is a single pass: it does not apply PNG row filtering or try several compression strategies. It is a colour-reduction tool that falls back to your original, not a lossless PNG optimiser, so a PNG that is already well optimised may come back unchanged.
Open the tool, upload your file and complete the task in a few simple steps.
Try It Now →Common questions
Clear answers to common questions about this topic and the related FiloTool tool.
If the palette version of your PNG is not smaller than the original, FiloTool returns the original file instead of a larger one. A PNG that is already indexed, very small or already well optimised may have nothing left to remove.
Only when the image uses no more colours than the level's palette size, which is 256 for Quality, 128 for Smart and 48 for Extreme. Above that, colours are approximated and the change cannot be reversed, so keep your original.
Fully transparent pixels stay fully transparent. Partly transparent pixels are stored as alpha values in the palette, so soft edges and shadows are approximated. Check the result over a light and a dark background before using it.
For a photograph that does not need transparency and goes somewhere that accepts the format, usually yes. Keep PNG for screenshots, logos and graphics, for files you will edit again, and wherever exact pixels matter.
Useful Tools
These workflows are selected for the next steps most closely related to this guide.
About the author
Software engineer, developer of FiloTool
Urvish Parmar is a software engineer and the developer of FiloTool. He builds and maintains the browser-local PDF and image tools published on this site, and writes the guides that document how they behave.
Because the same person implements a tool and documents it, these guides describe what the code actually does — including the formats it rejects, the limits it hits and the results it cannot promise.
Read how FiloTool tests and updates its content on the About page, or report an error through Contact.
An updated date is shown only when the article's instructions, evidence or material guidance changed.
Continue reading
Explore more practical PDF and image guides from FiloTool.
Resize by aspect ratio instead of memorised pixel charts, and understand why fewer pixels does not reliably mean a smaller file.
Read guide →Understand lossy JPEG encoding, visible artifacts, repeated re-encoding and when PNG or WebP is a better fit, with measured results from five test images.
Read guide →Decide whether WebP-to-JPG conversion is appropriate by checking compatibility, transparency, animation and re-encoding tradeoffs.
Read guide →