Cm to pixels converter

Type a size in centimetres or millimetres, pick the resolution and get the pixel dimensions to resize or scan to. 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.

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 · Updated 27 October 2026

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 millimetres (35 × 45 mm) and paper sizes in centimetres (21 × 29.7 cm); both work.
  3. Set the resolution. Use the DPI the form, printer or scanner specifies. 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. The result is the pixel size, rounded to whole pixels, with the exact unrounded value shown underneath, plus 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. 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.

Centimeters to pixels formula

Pixels = cm ÷ 2.54 × PPI. Dividing by 2.54 turns centimetres into inches (an inch is exactly 2.54 cm), and multiplying by the pixels per inch gives the pixel count. For millimetres, divide by 25.4 instead. Because an image can only have whole pixels, the result is rounded.

  • 1 cm in pixels: 1 ÷ 2.54 × 96 = 37.795, so 38 px on a 96 PPI screen; 118 px for a 300 DPI print.
  • 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.

A useful shortcut: print resolution of 300 DPI gives 118.11 pixels per centimetre, 96 PPI gives 37.795, and 72 PPI gives 28.346. Multiply the centimetres by that figure 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 millimetres, and the application portal then wants a JPEG of a particular pixel size. The converter does the arithmetic; the official requirement itself comes from the issuing authority, so check its page for the exact size, head position and file limits before you upload.

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

A worked example from an Indian form: Protean's PAN card application 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. Our PAN card photo size guide walks through that upload step by step, including the 20 KB file limit. Pick 200 DPI in the converter for forms like that.

A4 size in pixels and other paper sizes

Paper sizes are the other place centimetres meet pixels: scanning, designing a flyer, or exporting a page as an image. ISO paper sizes are defined in millimetres (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. That is why A2 at 150 DPI and A4 at the higher resolution both come to 2,480 × 3,508 px: halving the sides and doubling the resolution cancel out.

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

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 millimetres

Switch the unit next to the box to mm and type the millimetres directly; the converter divides by 25.4 before multiplying by the resolution. With 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

Browsers follow the W3C's CSS Values and Units specification, which defines 1in as 96px and therefore 1cm as 37.795 px. A width: 5cm box is drawn 189 CSS pixels wide on every device, regardless of the screen's true density, so it only measures a real 5 cm on a 96 PPI monitor. If you want something to appear at a 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 (37.795 exactly) on a 96 PPI screen, which is what 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. A 2 metre wide banner is rarely printed that sharp; 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 centimetres 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; 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 used by many countries 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. A 1,181 px side at that resolution is 1181 ÷ 300 × 2.54 = 10 cm. The [pixels to cm converter](/converters/pixels-to-cm) does this in the other direction, including millimetres and inches.

All image, photo and design calculators