Using the Centimeters to Pixels Converter
The centimeters to pixels converter turns a length and a DPI into a pixel count. Centimeters starts at 2.54. DPI starts at 96. Choose Convert to pixels. The label above the headline reads Pixels. The headline is 96. The DPI line is 96. The pixels line is 96, matching the headline. The sentence says 2.54 cm at 96 DPI is 96 pixels. The page does not resize an image. It uses the centimeters and the DPI you type.
Pixels are centimeters divided by 2.54, times the DPI. For the sample, 2.54 divided by 2.54 is 1, and 1 times 96 is 96. The steps under the result say to divide the centimeters by 2.54, multiply by the DPI, and show that pixel count. The same two inputs always rebuild 96. Convert 2.54 cm at 96 DPI again and the headline stays 96. One centimeter at the same 96 DPI is 37.795275590551, because 1 divided by 2.54, times 96, is that longer figure. The sample stays 96 only while the centimeters stay 2.54.
Centimeters must be greater than 0 and at most 1000. DPI must be a whole number from 1 to 1200. A centimeters value of 0 says Centimeters must be greater than 0 and at most 1000. A DPI of 0 says DPI must be a whole number from 1 to 1200. A blank centimeters field says Centimeters is required. A word in the centimeters field uses that same required message. The lines are cleared when a field fails, and the headline shows the message.
96 in the DPI field is the number you typed. The page does not detect a screen and substitute another DPI. 2.54 cm is the length that divides evenly by 2.54, so the sample is 1 times 96, which is 96. The same centimeters at DPI 300 are 300 pixels, because 2.54 divided by 2.54 is still 1, and 1 times 300 is 300. 300 is a whole number inside 1 to 1200, so the field accepts it. The headline is then 300, and the sentence names 2.54 cm, 300 DPI, and 300 pixels. That run still does not resize an image. Restore DPI 96 if you want the starting headline 96.
The page does not open an image, read a file width, or change a picture on a page. The pixel count is the number from the formula. If you needed 96 pixels for a length of 2.54 cm at 96 DPI, the headline is that count. It is not a resized file. Copy result copies the sentence, which names the centimeters, the DPI, the pixel count, and the statement that the page does not resize an image.
Reset returns the fields to 2.54 and 96, and the headline to Enter centimeters and DPI. Copy the sentence before you reset. Change the DPI and the pixels line changes with the formula. Restore 96, with centimeters still 2.54, and the headline returns to 96. The DPI line then reads 96 again.
What the Pixel Count Is
The pixel count is the centimeters divided by 2.54, then multiplied by the DPI you typed. For 2.54 cm at 96 DPI, the headline is 96. The label above it reads Pixels. The DPI line is 96. The pixels line is 96. The sentence names both inputs and the count, and it says the page does not resize an image. 2.54 divided by 2.54 is 1 inch of length in the formula, and 1 times 96 is 96 pixels. The headline is that product.
The count is not a new image and not a width plus a height. One successful run shows one pixel count for one length. Change the centimeters to 1 and keep 96 DPI, and the headline becomes 37.795275590551. Restore 2.54 and the headline returns to 96. Read both fields before you treat 96 as every result at 96 DPI. The DPI line tells you which DPI produced the pixels line. A DPI of 300 with centimeters left at 2.54 produces 300, not 96. The formula did not change. Only the DPI you typed changed. Write down both fields with the headline so a later note does not treat 96 and 300 as the same run.
How 2.54 cm at 96 DPI Becomes 96 Pixels
Divide the centimeters by 2.54. For 2.54, that quotient is 1. Multiply by the DPI. For 96, the product is 96. The headline is 96. The pixels line is 96. The DPI line repeats the DPI you typed, which is 96 in the sample. The steps under the result follow the division and the multiplication. The page does not round 96 to a nearby count, because 96 is already the exact product of this sample. The same division and multiplication produce 37.795275590551 when the centimeters are 1 and the DPI is still 96.
An inch length uses a multiplication of its own. The Inches to Pixels converter multiplies inches by the pixels per inch you type. 8 inches at 300 PPI is 2400 pixels. That page does not resize an image file. Use it when the length is already in inches and the field is PPI. Use this page when the length is in centimeters and the field is DPI. 2.54 cm at 96 DPI is 96 pixels. 2400 pixels is the inches sample, with different inputs.
What the Count Does Not Resize
The page does not resize an image. It does not open a file, read a pixel width from a picture, or write a new picture. You type centimeters and a DPI. The headline is the count from those two numbers. If a layout note says a length of 2.54 cm should be drawn at 96 DPI, you type 2.54 and 96, and the headline is 96. The sentence repeats that the page does not resize an image, so the count stays a number rather than a file operation.
There is no width field and no height field. A single centimeters value is one length. A second length would be a second run. The DPI is a whole number from 1 to 1200, not a fraction and not a named screen. 96 in the sample is the whole number 96. The page will not look up a device and substitute another DPI. Type the DPI you mean, or the field is rejected.
2.54 cm at 96 DPI, Then 1 cm
Leave the centimeters at 2.54 and the DPI at 96. Choose Convert to pixels. The headline is 96. The DPI line is 96. The pixels line is 96. The sentence says 2.54 cm at 96 DPI is 96 pixels and that the page does not resize an image. Convert again. The figures match. Change the centimeters to 1. The headline is 37.795275590551, and the DPI line stays 96. Restore 2.54. The headline returns to 96.
A width and a height reduce to a ratio on another page. The Image Aspect Ratio Calculator reduces a pixel width and height to a ratio. 1920 by 1080 is 16:9. That page does not open an image file. Use it when you already have a width and a height in pixels. Use this page when you have centimeters and a DPI and you want a pixel count. 16:9 is a ratio. 96 is the sample pixel count. Those are different results.
Bounds on Centimeters and DPI
Centimeters must be greater than 0 and at most 1000. DPI must be a whole number from 1 to 1200. A centimeters value of 0 says Centimeters must be greater than 0 and at most 1000. A centimeters value above 1000 uses that same range message. A DPI of 0, a DPI of 1201, or a decimal DPI says DPI must be a whole number from 1 to 1200. A blank centimeters field says Centimeters is required. The lines are cleared when a field fails, and the headline is the message rather than a pixel count.
A word, a comma, or a minus sign in the centimeters field fails before the range check and says Centimeters is required. A decimal centimeter value is allowed. The page keeps the decimals the formula produces, as it does for 37.795275590551 when 1 cm is converted at 96 DPI. The sample 2.54 cm at 96 DPI stays the whole number 96. The page does not round that 1 cm result to 38.
Counts People Reach Without Dividing by 2.54
A common miss is to multiply 2.54 by 96 and call the product the pixel count. 2.54 times 96 is not 96. The formula divides by 2.54 first. 2.54 divided by 2.54 is 1, and 1 times 96 is 96. Another miss is to treat 1 cm at 96 DPI as 96 pixels. That run is 37.795275590551. Another miss is to type 96.5 in the DPI field. DPI must be a whole number from 1 to 1200. Another miss is to expect the page to resize an image. The sentence says the page does not resize an image.
A binary place-value conversion is a different number. The Binary to Decimal Converter converts a binary number to decimal. 1010 is 10. Each digit doubles the place of the digit on its right. That page does not convert other bases. Use it when the input is binary digits. Use this page when the inputs are centimeters and a DPI. 10 is the binary sample. 96 is the pixel sample. A pixel count is not a binary place value.
The Sample, 1 cm, and a Rejected DPI
Enter centimeters 2.54 and DPI 96. Convert to pixels. The headline is 96 and the pixels line is 96. Enter centimeters 1. The headline is 37.795275590551 and the DPI line is 96. Enter centimeters 2.54 again and confirm 96 returns. Enter DPI 0. The headline reads DPI must be a whole number from 1 to 1200. Restore 96 and confirm the sample returns.
Enter centimeters 0. The headline reads Centimeters must be greater than 0 and at most 1000. Restore 2.54. Enter a word in the centimeters field and convert again. The headline reads Centimeters is required. Type 2.54 if that is the length you meant. Enter DPI 1201. The headline reads DPI must be a whole number from 1 to 1200. Restore 96. Confirm the sentence again says 2.54 cm at 96 DPI is 96 pixels, and that the page does not resize an image.
Keeping Centimeters, DPI, and the Pixel Count
Copy the sentence. It already holds the centimeters, the DPI, the pixel count, and the statement that the page does not resize an image. For the sample it says 2.54 cm at 96 DPI is 96 pixels. Write the 1 cm result beside it only if that was the run you made. 1 cm at 96 DPI is 37.795275590551, and its sentence names 1 cm. A note that says only 96 can be the sample or a different DPI you forgot to copy. Keep the sentence that matches the fields you used. The page does not store the run, and it does not resize an image to store it.
A whole number written as binary is a different record. The Decimal to Binary Converter converts a whole number to binary. 10 is 1010. 0 is 0. That page does not use a fraction. Use it when you want the binary digits of a whole number. Use this page when you want pixels from centimeters and a DPI. 1010 is binary for 10. It is not the pixel count 96, and it is not 37.795275590551.
A Pixel Count From the Two Fields You Typed
The headline answers how many pixels the formula gives for the centimeters and the DPI you typed. 2.54 cm at 96 DPI is 96 pixels. The count is centimeters divided by 2.54, times the DPI. 1 cm at 96 DPI is 37.795275590551. Those figures come from the fields. They do not come from an image file, a resized picture, or a device lookup. The sentence says the page does not resize an image.
Checking the Division Against the Pixels Line
Divide the centimeters by 2.54. Multiply by the DPI. Compare that product with the headline and with the pixels line. For 2.54 and 96, the check is 96. For 1 and 96, the check is 37.795275590551. Compare the DPI line with the DPI you typed. An error headline means the count was not calculated. Fix the field the message names. Centimeters must be greater than 0 and at most 1000. DPI must be a whole number from 1 to 1200. The label above a successful headline reads Pixels. The sentence should still say the page does not resize an image.
A split of minutes into hours is a different conversion. The Minutes to Hours Converter splits whole minutes into hours and leftover minutes, and it shows the decimal hours. 90 minutes is 1 hour, 30 minutes, and 1.5 decimal hours. Use it when the input is whole minutes. Use this page when the inputs are centimeters and a DPI. 1.5 decimal hours is not the pixel count 96.