Social media growth services from EthicalSMM

Pixelate Image

Turn a photo into big square pixels for a retro pixel-art look or to hide detail, with an adjustable block size.

Lower quality gives a smaller file.

Bigger values give larger blocks and hide more detail.

Your file is ready

Download result
Original image
Original
Processed image Your result will appear here Base64 text is ready to download
Result

Was this tool helpful?

Thanks for the feedback!

This tool turns a photo into a grid of flat square blocks, for a retro pixel-art look, a mosaic background or a playful profile picture. One slider sets the block size, and it scales with the photo so a given setting always gives roughly the same number of blocks. Processing happens in your browser and nothing is uploaded.

The Block size slider

The slider is labelled Block size, runs from 3 to 80 and starts at 12. Bigger values give larger blocks and hide more detail. Set the value and press Process image; the result does not change while you drag, so press Process image again after each change. The download keeps the original width and height. It is a JPG at 92% quality when your source is a JPEG, and a PNG otherwise.

How the blocks are made

First the tool works out the size of one block in pixels:

block = round(setting × longer side ÷ 1000), with a minimum of 2 px.

It then shrinks the photo to a tiny version that is one pixel per block: the width and height are each divided by the block size and rounded up. The browser blends the original pixels as it shrinks, so each tiny pixel takes a colour from its area of the photo. Finally that tiny image is enlarged back with smoothing switched off, so every tiny pixel becomes a hard-edged square.

Because the setting is measured against the longer side, the number of blocks along that side is roughly 1000 divided by the setting. At 12 you get 84 blocks across the long side whether the photo is 1080, 1920 or 4000 px wide.

Because the block size is a fixed share of the picture, a setting you like on one photo gives the same blocky feel on the next, even if one came from a phone and the other is a small web image.

The grid starts from the top-left corner. When the photo size is not an exact multiple of the block size, the grid is slightly bigger than the photo, so the last column and the last row of blocks are cut short.

Worked example

Photo sizeSettingBlock sizeGridTotal blocks
4000 × 30001248 px84 × 635,292
1920 × 108036 px320 × 18057,600
1920 × 10801223 px84 × 473,948
1920 × 108080154 px13 × 8104

For the 4000 × 3000 photo at the default 12, the 84 × 63 grid of 48 px blocks measures 4032 × 3024, which is larger than the photo. The canvas stays 4000 × 3000, so the right-hand column shows only 16 px of its block and the bottom row only 24 px. At setting 3 on a Full HD screenshot the 6 px blocks fit exactly, and faces stay recognisable. At 80 the same screenshot becomes 104 big tiles of colour.

Tips and limits

  • The whole image is pixelated. To pixelate one area, you need an editor that works on a selection.
  • Pixelation is not a safe way to hide text, faces or numbers before sharing. Small blocks over large text can sometimes be guessed. For an Aadhaar or bank number, cover it with a solid box instead.
  • A JPEG source is saved back as a JPG, and JPEG compression slightly softens the hard block edges. For crisp pixel art, convert the photo first with the JPG to PNG converter, so the result is saved as a PNG.
  • For a stronger retro poster look, follow this tool with posterize image to cut each block down to a few flat colour levels.
  • If you want a smooth, soft effect rather than squares, use blur image.
  • For a pixel-art avatar, start with a square photo and a high setting such as 40 or more, so the face reads as a handful of bold blocks. Lower settings suit a subtle mosaic background.

Frequently asked questions

How do I pixelate a photo online?
Add the photo, choose a Block size (the default is 12), press Process image and download the result. The picture keeps its original width and height.
What block size should I choose?
The number of blocks across the long side is roughly 1000 divided by the setting. So 12 gives about 84 blocks across, 3 keeps faces recognisable on a large photo, and 80 leaves only about 13 big blocks across.
How big is each block in pixels?
Each block is the setting times the longer side divided by 1000, rounded, with a minimum of 2 px. On a 4000 × 3000 photo the default setting of 12 gives 48 px blocks.
Why are the blocks at the right and bottom edges smaller?
The grid starts at the top-left corner and the photo is rarely an exact multiple of the block size. On a 4000 × 3000 photo with 48 px blocks, the last column shows 16 px and the last row 24 px.
Can a pixelated image be turned back into the original?
The fine detail is replaced by one colour per block, so it cannot be restored. Still, small blocks over large text can sometimes be guessed, so do not rely on pixelation to hide sensitive information.
Can I pixelate just a face or one part of the photo?
No. This tool pixelates the entire image with the same block size. Use an editor that supports selections if you only need part of the picture covered.

Related guides

Related tools

People also used

Embed this tool on your site

Paste it into any blog or website. Free, with a credit link.