Skip to content
PictureToLink logoPictureToLink
Menu

Cm to pixels converter

A 3.5 × 4.5 cm photo is 413 × 531 pixels at 300 DPI, 6 × 3 cm is 709 × 354 pixels, and 1 cm is 37.8 pixels on a 96 PPI screen. Type any size in centimeters or millimeters, pick the resolution and get the pixel dimensions to resize or scan to.

Change any value and the result updates as you type.

Use the DPI the form, printer or scanner specifies. Photo prints are usually 300 DPI; CSS treats 1 cm as 37.8 px (96 PPI).

Pixel size

413 × 531 px

Exact: 413.39 × 531.5 px, rounded to whole pixels

Total pixels
219,303
Same size in inches
1.378 × 1.772 in
Resolution used
300 PPI
3.5 × 4.5 cm at other resolutions
ResolutionPixel size
72 PPI99 × 128 px
96 PPI132 × 170 px
150 PPI207 × 266 px
300 PPI413 × 531 px
600 PPI827 × 1,063 px

Calculated in your browser; nothing you type is sent or stored. Spotted a wrong result? Tell us.

By Ahsan Khowaja (CEO) · Updated 10 November 2026

On this page

How to use the cm to pixel converter

  1. Keep photo or document size selected to enter a width and height, or choose single length for one measurement.
  2. Type the size and pick cm or mm next to each box. Photo requirements are often written in millimeters (35 × 45 mm) and paper sizes in centimeters (21 × 29.7 cm). Both work.
  3. Set the resolution to the DPI the form, printer or scanner asks for. 300 DPI is the usual figure for photo prints and most upload portals, a few government portals ask for 200 DPI, and 96 PPI is what CSS uses when a web page says 1cm.
  4. Read the pixel size. It's rounded to whole pixels, with the exact unrounded value underneath, the total pixel count and the same size in inches. The table shows the pixels needed at every other resolution.

Then resize your image to those pixel dimensions. Resize, don't just change the DPI number in the file: a portal that checks pixels ignores the DPI tag entirely. Our image resizer crops or fits to an exact pixel size in the browser. If the portal also sets a file-size limit, the KB reducer handles that step.

Not every site gives you a size to convert. Reddit's help center doesn't publish one table of image file-size limits or accepted formats, so for a post there the safest choice is a JPG, PNG or GIF (how to post images on Reddit).

Centimeters to pixels formula

One formula converts cm to pixels:

pixels = cm ÷ 2.54 × PPI

PPI is the resolution you need. Dividing by 2.54 turns centimeters into inches, because an inch is exactly 2.54 cm. Millimeters? Divide by 25.4. Try a 3.5 × 4.5 cm passport photo at 300 DPI. It works out as 3.5 ÷ 2.54 × 300 = 413 pixels wide and 4.5 ÷ 2.54 × 300 = 531 pixels tall.

Three more results people look up:

  • 1 cm in pixels: 1 ÷ 2.54 × 96 = 37.795, so 38 px on a 96 PPI screen. For a 300 DPI print it is 118 px.
  • 6 × 3 cm in pixels at 300 DPI: 6 ÷ 2.54 × 300 = 708.66 and 3 ÷ 2.54 × 300 = 354.33, so 709 × 354 px.
  • 200 cm to pixels: 200 ÷ 2.54 × 96 = 7,559 px at 96 PPI. For print it becomes 23,622 px, far more than most cameras capture along one side, which is why large banners are printed at 100 to 150 DPI.

Images hold only whole pixels. So round the result to the nearest pixel, and keep the unrounded figure in case you need to check it. For quick sums in cm to px, remember three multipliers: 300 DPI is 118.11 pixels per centimeter, 96 PPI is 37.795 and 72 PPI is 28.346. Multiply by the right one and round.

3.5 × 4.5 cm in pixels and other photo sizes at 300 DPI

Passport, visa and ID photos outside the US are usually specified in millimeters, and the application portal then wants a JPEG of a particular pixel size. The converter does the arithmetic, but it can't tell you the rules. Those come from the issuing authority, so check its page for the exact size, head position and file limits before you upload. Right pixels with the head at the wrong height still get rejected.

Photo sizeSame size in mmPixels at 300 DPIPixels at 600 DPI
2.5 × 3.5 cm25 × 35 mm295 × 413 px591 × 827 px
3 × 4 cm30 × 40 mm354 × 472 px709 × 945 px
3.5 × 4.5 cm35 × 45 mm413 × 531 px827 × 1,063 px
3.5 × 5 cm35 × 50 mm413 × 591 px827 × 1,181 px
4 × 6 cm40 × 60 mm472 × 709 px945 × 1,417 px
5 × 5 cm50 × 50 mm591 × 591 px1,181 × 1,181 px
5 × 7 cm50 × 70 mm591 × 827 px1,181 × 1,654 px
6 × 3 cm60 × 30 mm709 × 354 px1,417 × 709 px

Some forms use a lower resolution. Read the form first. Protean's PAN card application in India lists the photo as 3.5 × 2.5 cm at 200 DPI, which is 3.5 ÷ 2.54 × 200 = 276 px by 2.5 ÷ 2.54 × 200 = 197 px, so 197 wide × 276 tall. Pick 200 DPI in the converter for forms like that. Our PAN card photo size guide walks through that upload step by step, including the 20 KB file limit.

A4 size in pixels and other paper sizes

Paper is the other place centimeters meet pixels. Think of scanning, or a flyer. ISO paper sizes are defined in millimeters (A4 is 210 × 297 mm), so the pixel sizes below are rounded.

PaperSize in cm96 PPI (screen)150 DPI300 DPI (print)
A610.5 × 14.8 cm397 × 559 px620 × 874 px1,240 × 1,748 px
A514.8 × 21 cm559 × 794 px874 × 1,240 px1,748 × 2,480 px
A421 × 29.7 cm794 × 1,123 px1,240 × 1,754 px2,480 × 3,508 px
A329.7 × 42 cm1,123 × 1,587 px1,754 × 2,480 px3,508 × 4,961 px
A242 × 59.4 cm1,587 × 2,245 px2,480 × 3,508 px4,961 × 7,016 px
Business card8.5 × 5.5 cm321 × 208 px502 × 325 px1,004 × 650 px
10 × 15 cm photo10 × 15 cm378 × 567 px591 × 886 px1,181 × 1,772 px
13 × 18 cm photo13 × 18 cm491 × 680 px768 × 1,063 px1,535 × 2,126 px
20 × 30 cm photo20 × 30 cm756 × 1,134 px1,181 × 1,772 px2,362 × 3,543 px

A4 size in pixels at 300 DPI is 2,480 × 3,508 px, the figure most print templates use. Each A size has half the area of the one above, so two steps down halves both sides. Hence a match in the table: A2 at 150 DPI and A4 at 300 DPI both come to 2,480 × 3,508 px, because halving the sides and doubling the resolution cancel out.

For full 300 DPI quality, a 10 × 15 cm photo print needs 1,181 × 1,772 px, about 2.1 megapixels. Double it to 20 × 30 cm and you need 2,362 × 3,543 px (8.4 MP). Any 12 MP phone photo (around 4032 × 3024 px) covers both. Want to know how far a given photo stretches? The print size calculator and the dpi calculator tell you.

Cm to pixels lookup table

Single lengths at the common resolutions, rounded to whole pixels:

Length72 PPI96 PPI (CSS)150 DPI300 DPI
1 mm3 px4 px6 px12 px
5 mm14 px19 px30 px59 px
1 cm28 px38 px59 px118 px
2 cm57 px76 px118 px236 px
2.54 cm (1 in)72 px96 px150 px300 px
3 cm85 px113 px177 px354 px
5 cm142 px189 px295 px591 px
10 cm283 px378 px591 px1,181 px
15 cm425 px567 px886 px1,772 px
20 cm567 px756 px1,181 px2,362 px
30 cm850 px1,134 px1,772 px3,543 px
50 cm1,417 px1,890 px2,953 px5,906 px
100 cm2,835 px3,780 px5,906 px11,811 px
200 cm5,669 px7,559 px11,811 px23,622 px

Mm to pixels: when the size is given in millimeters

Switch the unit next to the box to mm and type the millimeters as they are. It divides by 25.4 before it multiplies by the resolution. At 300 DPI, 35 mm is 413 px, 45 mm is 531 px, and 1 mm is 11.8 px (rounded to 12). At the CSS rate of 96 PPI, 1 mm is 3.78 px, which is also what a browser uses when a stylesheet says 1mm.

Cm to pixels on screen: the CSS case

Web pages use the same formula. Only the rate is fixed, at 96 PPI. W3C's CSS Values and Units specification defines 1in as 96px and the centimeter with the line 1cm = 96px/2.54, which gives 37.795 px. So a box set to 10cm in a stylesheet is 378 pixels wide on any screen.

Those are CSS pixels, though. Not screen pixels. Set width: 5cm and the box is drawn 189 CSS pixels wide on every device, whatever the screen's true density, so it measures a real 5 cm only on a 96 PPI monitor. To show something at its true size on a known screen, work out that screen's PPI with the PPI calculator or the screen size calculator and type it into the Custom box here.

Questions and answers

How many pixels is 1 cm?

38 pixels on a 96 PPI screen. That's 37.795 exactly, the rate CSS and Windows assume. For printing at 300 DPI, 1 cm is 118 pixels. Divide 1 by 2.54 and multiply by the resolution you are working at.

What is 6 × 3 cm in pixels?

709 × 354 pixels (708.66 × 354.33 before rounding) for a 300 DPI print. At 96 PPI it is 227 × 113 pixels, and at 600 DPI 1,417 × 709 pixels.

How many pixels is 200 cm?

200 cm is 7,559 pixels at 96 PPI and 23,622 pixels at 300 DPI. Nobody prints a 2 meter banner that sharp, though. At 100 DPI it needs 7,874 pixels and at 150 DPI 11,811, which is why large-format shops ask for lower resolutions.

How do I convert cm to pixels at 300 DPI?

Divide the centimeters by 2.54 and multiply by 300, then round. 10 cm is 10 ÷ 2.54 × 300 = 1,181 px, 3.5 × 4.5 cm is 413 × 531 px, and A4 (21 × 29.7 cm) is 2,480 × 3,508 px.

What is 3.5 × 4.5 cm in pixels?

413 × 531 pixels for a 300 DPI print, or 827 × 1,063 pixels at 600 DPI. That is the 35 × 45 mm photo size many countries use for passports and visas. Check the issuing authority's page for the pixel and file-size limits of its upload form.

How do I convert pixel dimensions back to cm?

Divide the pixels by the resolution and multiply by 2.54. At 300 DPI, a 1,181 px side is 1181 ÷ 300 × 2.54 = 10 cm. The pixels to cm converter runs the sum in that direction, including millimeters and inches.

All image, photo and design calculators