To pixelate image files means to replace fine detail with large, single-coloured squares. The effect is used for retro looks, for hiding small details and for turning photos into mosaic art. Wikipedia describes pixelation as a bitmap's square picture elements becoming noticeable when it is enlarged until the squares show as blocks [1]. This tool does the same on purpose, across the whole picture, with a block size you choose.
How to pixelate image files
- Choose a JPG, PNG or WebP picture.
- Move the block size slider. The preview shows the mosaic straight away.
- Choose a size that suits your aim: 4 to 10 for a light effect, 16 to 40 for a clear mosaic, 100 or more for a very coarse look.
- Press Save pixelated picture to download a copy.
How block size works
- The block size is measured in pixels of the original picture, from 2 to 200.
- Each block shows roughly the average colour of the area it covers, so the overall look and colours are kept.
- The block size is capped at half of the longer side, so the picture always keeps at least two blocks.
- A larger picture needs a larger block to look as coarse as a small one.
How the effect is made
The tool first draws the picture on a very small canvas, one pixel for each block, letting the browser smooth and average the colours. It then draws that small canvas back at full size with smoothing turned off. When imageSmoothingEnabled is false, scaled images are drawn without smoothing, so each enlarged pixel stays a sharp square [2]. The result is a grid of even blocks. The finished canvas is saved with toBlob [3]. JPG stays JPG and PNG stays PNG.
Worked example
A 1200 × 800 pixel picture with a block size of 16 is reduced to 75 × 50 small pixels, because 1200 divided by 16 is 75 and 800 divided by 16 is 50. Those 3,750 colours are then enlarged back to 1200 × 800, so each colour fills a square of 16 pixels. If the block size does not divide the width exactly, the last column of blocks is cut at the edge. With a block of 100, the same picture becomes a grid of only 12 × 8 blocks.
| Block size | Grid on 1200 × 800 | Look |
|---|---|---|
| 4 | 300 × 200 | Light, detail kept |
| 16 | 75 × 50 | Clear mosaic |
| 40 | 30 × 20 | Chunky |
| 100 | 12 × 8 | Very coarse |
Important note about hiding information
Pixelation reduces detail, but it is not a safe way to hide private data such as a licence plate, a face or text. A light pixelation can sometimes be partly recovered, and short text in large blocks can still be guessed. If you need to hide something, cover it with a solid box or crop it out instead. This tool pixelates the whole picture, not a selected area.
Tips
- Pixelate a copy of a high-resolution photo, then reduce its size if you want a small pixel-art file.
- Try several block sizes. The right one depends on how big the picture is.
- Combine with the resize tool afterwards if you need an exact size.
Ways to use pixelation
Pixelation is popular for retro game artwork, social media profile effects, album covers and posters. Artists shrink a photo to a very small grid to find its basic shapes and colour blocks. Teachers use a coarse mosaic to show how digital pictures are built from pixels, and designers use it as a background texture. A pixelated version of a picture can also serve as a quick blurred placeholder while the full-sized version loads.
Pixelation compared with blur
Blur smooths detail across the picture with soft transitions, while pixelation keeps hard-edged squares of flat colour. Blur looks natural and calm, and pixelation looks digital and deliberate. If you want the soft look, use the blur tool instead. If you want the square mosaic, this tool is the right one.
Choosing the output
A JPG is saved as a JPG and a PNG as a PNG. Flat blocks of colour compress very well as PNG, and a heavily pixelated picture often makes a smaller PNG than the original photo. A lightly pixelated photo keeps its texture and is better as JPG. WebP pictures are saved as JPG.
Using the result
Once saved, the pixelated picture is an ordinary image that you can place in a document, a slide, a website or a social post. If you want a small pixel-art version, resize it after pixelating so each block becomes a single pixel, using a nearest neighbour or no-smoothing option in your editor, otherwise the edges will blur again. For printing, keep the original size and choose a block that is large enough to see from the viewing distance. A mosaic that looks coarse on a phone screen can look fine on a large poster.
Pixelating twice with different block sizes gives a layered, stepped look. For that, save the first result, add it again as a new picture and apply a second block size. Each pass works from the saved pixels, so the blocks of the first pass remain visible inside the larger ones.
Privacy and file limits
Everything happens inside your browser tab. The picture is read from your device, drawn on a canvas and saved back to your device, so nothing is sent to a server and nobody else sees it. Files up to 50 MB are accepted, and very large pictures are refused when they would be too big for your browser to handle. JPG, PNG and WebP are supported.
What next
Use this often? Add Pixelate Ima to your Home screen.
Frequently asked questions
How do I pixelate image files online?
Choose a picture, move the block size slider and save. The tool shrinks the picture to one pixel per block and enlarges it again without smoothing.
What block size should I use?
Try 4 to 10 for a light effect, 16 to 40 for a clear mosaic and 100 or more for a very coarse look. Larger pictures need larger blocks.
Can I pixelate only part of a picture?
No. This tool pixelates the whole picture. To hide a detail, cover it with a solid box or crop it out.
Is pixelation a safe way to hide a face or text?
Not reliably. Detail can sometimes be recovered or guessed, so use a solid box or crop it out when privacy matters.
Is my picture uploaded?
No. The effect is made in your browser and the file stays on your device.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.