Free tool · Image tools
Resize image in cm
To resize an image in cm, type the width and height you want on paper and a DPI. The page works out the pixels (cm ÷ 2.54 × DPI), crops or fits your photo to that shape and saves the DPI inside the file.
- Free
- No sign-up
- Runs in your browser
- DPI tag set to 300
- Cropped to fill
- Same format as your photo
- Pixel size
- 1,772 x 1,181 px
- Prints at
- 15 x 10 cm (5.91 x 3.94 in)
- Sharpness
- Enlarged: the photo only has about 203 pixels per inch at this size, so the 300 DPI file is upscaled and may look soft.
- Original
- 1,200 x 800 px
- Crop
- nothing cut away
- File size
- shown for your photo
How to use the Resize Image in CM
- Choose your picture under Photo.
- Pick Centimeters or Inches, then type the Width and Height on paper. Leave one empty to keep the shape.
- Type the DPI; 300 is filled in as an example.
- If the shapes differ, choose Crop to fill, Fit the whole photo or Stretch, then press Download.
How do I resize an image in cm?
Type the size you want on paper and the DPI, and the page builds a file with exactly the right number of pixels. A picture has no size in centimeters by itself; it only has pixels. The print size comes from how many of those pixels you spread over each inch, which is what DPI, dots per inch, means.
The sum behind it is short. The W3C defines 1 inch as exactly 2.54 centimeters, so pixels = centimeters ÷ 2.54 × DPI. The page rounds the answer to whole pixels, draws your photo at that size and then writes the DPI into the file: the JFIF header of a JPG or the pHYs block of a PNG. Print and layout programs read that number and open the file at your size.
A worked example with the test photo for this page, 1,200 x 800 px. Asking for 15 x 10 cm at 300 DPI gives 1,772 x 1,181 px, because 15 ÷ 2.54 × 300 is 1,772 and 10 ÷ 2.54 × 300 is 1,181. The file is named after the size, for example photo-15x10cm-300dpi.jpg, so you can tell several copies apart.
Prefer inches? Switch the unit and the numbers in the boxes are converted for you, so the paper size stays the same. To convert a single length without a photo, the inches to pixels converter does the same sum for centimeters, millimeters and inches.
What if my photo is a different shape from the size I need?
Pick what should give way: the edges, the exact size or the proportions. Most photos are wider than they are tall, while many print sizes are upright, so the shapes rarely match on their own.
Take a 3.5 x 4.5 cm print from the landscape test photo at 300 DPI. Crop to fill keeps the exact size, 413 x 531 px, and trims the sides evenly: 48% of the photo trimmed from the edges. Fit the whole photo keeps every part of the picture, so it comes out 413 x 275 px, shorter than the box. Stretch fills the box too, but pulls the picture out of shape.
| Choice | Pixels | Printed size | What you see |
|---|---|---|---|
| Crop to fill | 413 x 531 px | 3.5 x 4.5 cm | Exact size, edges trimmed |
| Fit the whole photo | 413 x 275 px | 3.5 x 2.33 cm | Whole photo, one side shorter |
| Stretch | 413 x 531 px | 3.5 x 4.5 cm | Exact size, people look squeezed |
Crop to fill always cuts around the center. If the face or object you care about sits near one edge, crop the photo yourself first, then come back and resize it here. The Crop line in the result says how much of the picture was trimmed, so you notice before you print.
Leaving the height or the width box empty skips the question entirely: the page uses the one size you gave and lets the photo keep its own shape.
Will my photo look sharp at that size?
Only if the photo already has enough pixels. A resize can add pixels, but it cannot add detail, so a small photo stretched over a large print looks soft. The Sharpness line tells you how many of your photo's own pixels land on each inch of paper.
In the worked example, the 1,200 x 800 px photo printed at 15 x 10 cm has only about 203 of its own pixels per inch. The file still has 300 DPI, but the page had to enlarge the picture to get there, and the result card says so. At 300 DPI the largest print that photo gives without enlarging is 10.1 x 6.7 cm.
The table works this out for a few pixel sizes, so you can see what a photo can print at before you choose a size on paper.
| Photo | At 150 DPI | At 300 DPI |
|---|---|---|
| 1,200 x 800 px | 20.3 x 13.5 cm | 10.1 x 6.7 cm |
| 1,920 x 1,080 px | 32.5 x 18.2 cm | 16.2 x 9.1 cm |
| 3,000 x 2,000 px | 50.8 x 33.8 cm | 25.4 x 16.9 cm |
| 4,000 x 3,000 px | 67.7 x 50.8 cm | 33.8 x 25.4 cm |
| 6,000 x 4,000 px | 101.6 x 67.7 cm | 50.8 x 33.8 cm |
Viewed at arm's length, a print made from fewer pixels per inch can still look fine; held close, it shows. If your photo falls short, choose a smaller size on paper, or lower the DPI and accept a softer print. The change DPI tool helps when the pixels are already right and only the DPI number in the file is wrong.
Does the file keep its quality, and is it uploaded?
A JPG photo is saved again as a JPG at quality 92, and a PNG stays a PNG, which is lossless. Other formats, such as WebP, come out as JPG. Camera data such as the location is not copied into the new file. A phone photo that is stored sideways is turned upright first, so the width and height match what you see.
When you print the file, pick actual size or 100% scale in the print window rather than an option that fills the page. A fill option rescales the picture to the sheet, and the centimeters you typed here are lost. For a sheet with several small prints, place the file in a layout program that reads its DPI.
Very large requests are refused with a message instead of freezing the tab: a side longer than 16,384 pixels is more than many browsers can draw. Lower the DPI or the size if you see that note.
Nothing is uploaded. The photo is read, resized and saved in your browser on this device. To resize to a pixel size instead of a paper size, use the image resizer.
Use it with
- Resize Image to KB: hit an exact file size like 50 KB.
- Change Image DPI: set DPI for print without resampling.
- Crop Image: crop with preset ratios.
Questions
How many pixels is 15 x 10 cm?
At 300 DPI, 15 x 10 cm is 1,772 x 1,181 px: 15 ÷ 2.54 × 300 and 10 ÷ 2.54 × 300, rounded to whole pixels.
How do I resize a photo to 3.5 x 4.5 cm?
Type 3.5 and 4.5 with Centimeters selected and a DPI of 300. You get 413 x 531 px. Use Crop to fill to keep the exact size.
What does DPI do when I resize in cm?
DPI sets how many pixels go into each inch of paper. More DPI means more pixels for the same size on paper, and a sharper print if the photo has the detail.
Can I resize an image in cm without losing quality?
Shrinking keeps it sharp. Making it bigger than its own pixels allow cannot add detail; the Sharpness line warns you when that happens.
Why does my photo print at the wrong size?
Some programs ignore the DPI in the file and use their own. Set the size in the print dialog too, or use a program that reads the DPI tag.
Is my photo uploaded?
No. The photo is resized and saved in your browser, on your device.
Sources
The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.