01What is CM to Pixels Converter?
A print shop says your poster needs to be 21 cm wide at 300 DPI. Your editor wants a canvas size in pixels. This converter answers that one question: how many pixels does a length in centimeters cover at a given resolution? The math rests on one exact definition. Since the 1959 international yard and pound agreement, an inch is exactly 2.54 cm. The tool divides your centimeters by 2.54 to get inches, multiplies by the DPI, and rounds to the nearest whole pixel with Math.round. So 21 cm at 300 DPI is 8.2677 inches, which comes to 2480 pixels. Add the 29.7 cm height and you get 2480 x 3508, the familiar pixel size of an A4 page at 300 DPI. Screen work uses the same formula with a different number. The W3C CSS Values and Units spec fixes 1in at 96px and 1cm at 96/2.54px. Set DPI to 96 and the result is the CSS pixel value a browser uses for that cm length. One centimeter comes out at 38 px after rounding (the exact figure is about 37.8). Those are CSS pixels. On a high-density display the device paints more physical pixels for each one. You type any positive length and DPI, or tap a preset: Screen (72), Windows (96), Medium Print (150) or High Print (300). Higher values such as 600 can be typed in. The result card shows the pixel count large, with the same length in millimeters (one decimal) and inches (four decimals) underneath. Each value has its own copy button. The three examples load the A4 width, a 10 cm photo edge at 300 DPI and a 14.8 cm postcard edge at 150 DPI, which is the A6 short side. A few limits. It converts one dimension at a time, so run width and height separately. It only goes from centimeters to pixels. For the reverse, divide pixels by DPI and multiply by 2.54, or use the Print Size Calculator. Rounding means a 1 cm edge at 72 DPI shows 28 px, not 28.35, and over many tiles those fractions add up. Finally, DPI here is just the number you give it. The tool has no way to check if your printer or screen really works at that density. Your numbers are worked out in the page itself, so nothing you type is uploaded.
Designers and front-end developers who get sizes in centimeters from a print spec and need exact pixel dimensions for a canvas or stylesheet. The tool runs entirely in your browser, so your data never leaves your device.
02How to use CM to Pixels Converter
- Type the length in centimeters into the CM field, or load one of the examples
- Pick a DPI preset such as High Print (300) or type your own DPI value
- Read the pixel count in the result card
- Check the millimeter and inch values shown underneath
- Click the copy icon beside any value to put it on your clipboard
03Worked examples
- Input:
21 cm at 300 DPI - Result:
2480 px (8.2677 in, 210.0 mm) - A4 width. pixels = cm / 2.54 x DPI, rounded.
- Input:
29.7 cm at 300 DPI - Result:
3508 px (11.6929 in, 297.0 mm) - A4 height. With the width, that's a 2480 x 3508 page.
- Input:
10 cm at 300 DPI - Result:
1181 px (3.9370 in, 100.0 mm) - The tool's Photo 10cm example.
- Input:
14.8 cm at 150 DPI - Result:
874 px (5.8268 in, 148.0 mm) - The A6 short side, loaded by the Postcard example.
- Input:
1 cm at 96 DPI - Result:
38 px (0.3937 in, 10.0 mm) - The exact CSS value is 37.795 px. The tool rounds to whole pixels.
- Input:
1 cm at 72 DPI - Result:
28 px (0.3937 in, 10.0 mm) - The exact value is 28.35 px.
04Common use cases
- Sizing a canvas at 2480 x 3508 px before designing an A4 flyer for a 300 DPI print run
- Checking that a 10 cm square photo print needs at least 1181 px per side at 300 DPI
- Translating a width: 5cm rule in a print stylesheet into the CSS pixels the browser will lay out
- Working out the pixel size of a 14.8 cm postcard edge at 150 DPI for a quick proof
- Confirming a supplier's metric artwork spec against the pixel size of an existing logo export
- Converting a label or badge size from a metric datasheet into pixels for a print template
05Tips
- For a print canvas, round up rather than trusting the rounded figure if your artwork must cover the full edge. A missing pixel shows as a hairline at the trim.
- Add bleed before converting. With a common 3 mm bleed on each side, an A4 width becomes 21.6 cm, which is 2551 px at 300 DPI.
- At 96 DPI the result is in CSS pixels. Browsers do not promise that 1cm on screen measures one real centimeter with a ruler.
- Converting both edges of a metric paper size gives you the canvas in one go. Remember A-series sides keep a ratio of about 1 to 1.414.
06Related concepts
DPI, CSS pixel ratio, Print resolution, Device pixel ratio.
Frequently Asked Questions
What is CM to Pixels Converter?
CM to Pixels Converter is a free, browser-based developer tool on AIDToolStack. Convert centimeters to pixels based on DPI resolution. It requires no installation or sign-up and works entirely in your browser.
Is CM to Pixels Converter free to use?
Yes. No sign-up, no fees and no usage cap.
Does CM to Pixels Converter store my data?
No. It runs in your browser; nothing is uploaded.