A pixels to CM converter works by dividing the pixel count by the selected DPI to get inches, then multiplying by 2.54 to get centimetres.
A pixel is only a point in a digital image, so it has no fixed physical size. The DPI or PPI value supplies the resolution assumption needed to connect that digital count with a real measurement.
The Pixels to CM Converter applies this relationship to a typed value in pixels, centimetres, inches or millimetres and presents the corresponding measurements in one results table.

Why a pixel count has no fixed physical size
Digital pixels and physical centimetres measure different things. A pixel records part of an image on a screen, while a centimetre is a unit of physical distance. Without a resolution setting, there is no dependable way to say that one pixel equals a particular number of centimetres.
For this conversion, DPI and PPI are treated as the same numerical setting. Strictly speaking, DPI describes the ink dots a printer places on paper, while PPI describes the pixels on a display. The Pixels to CM Converter uses the selected value as the number of pixels that correspond to one inch.
That makes DPI a central part of the calculation rather than a minor setting. Two images with the same pixel width can produce different printed dimensions when their intended resolutions differ. Conversely, a fixed physical size can require more pixels when the target resolution is higher.
The formulas behind each conversion
The converter routes the calculation through inches because the relationship between pixels and an inch is direct. One inch is defined as exactly 2.54 centimetres, or 25.4 millimetres.
| Conversion | Formula |
|---|---|
| Pixels to inches | inches = pixels ÷ DPI |
| Pixels to centimetres | centimetres = (pixels ÷ DPI) × 2.54 |
| Pixels to millimetres | millimetres = (pixels ÷ DPI) × 25.4 |
| Centimetres to pixels | pixels = (centimetres ÷ 2.54) × DPI |
| Inches to pixels | pixels = inches × DPI |
| Millimetres to pixels | pixels = (millimetres ÷ 25.4) × DPI |
For a pixel-to-physical conversion, the first step produces inches. The converter then applies the exact inch-to-centimetre or inch-to-millimetre relationship. For the reverse direction, it first converts the physical length to inches and then multiplies by DPI to obtain the pixel count.
Convert a value with the tool
- Type a number and choose its starting unit: pixels, centimetres, inches or millimetres.
- Set the DPI. Use 96 for screens, 300 for print, or enter a custom value. Presets for 72, 96, 150 and 300 are also available, with 96 used as the default.
- Read the converted pixel, centimetre, inch and millimetre values instantly in the results table.
You can start with either a digital or physical measurement. Entering pixels answers the direct px-to-cm question, while entering centimetres or millimetres lets you work backwards to the pixel count needed for a particular resolution.
The displayed result is based on the DPI you supply. It does not change your typed value or silently substitute a different resolution, so the selected DPI should match the intended screen, printer or export setting.
A worked 96-DPI calculation
Formula: centimetres = (pixels ÷ DPI) × 2.54.
Substitution: centimetres = (96 ÷ 96) × 2.54.
Result: 2.54 centimetres, which is also one inch and 25.4 millimetres.
The same pixel count produces a different physical measurement when another DPI is selected. This is why an answer such as “100 pixels equals a set number of centimetres” is incomplete without a resolution assumption.
Selecting the DPI that matches your output
Use 96 DPI for typical web and screen calculations. The CSS specification defines the reference pixel as 1/96 of an inch, which is why 96 is the converter’s default and a practical choice for interface and browser measurements.
For high-quality print work, 300 DPI is the usual starting point. An image planned for the screen may cover a smaller physical area when exported for print at 300 DPI, so print dimensions should be checked before the file is produced.
Some older images and web graphics are tagged at 72 DPI, a legacy value associated with early desktop publishing. The 150 DPI preset is available for workflows that specify that resolution. A custom DPI should match the setting required by the relevant printer, export option or project specification.
| Use case | Suggested setting | Reason |
|---|---|---|
| Web or screen measurement | 96 DPI | Matches the CSS reference-pixel relationship. |
| High-quality print | 300 DPI | Provides more image pixels per printed inch. |
| Legacy file | 72 DPI | Matches the resolution commonly stored in older material. |
| Project-specific setting | 150 DPI or a custom value | Follow the printer or export setting specified by the project. |
Reversing the conversion from centimetres to pixels
To calculate pixels from a physical measurement, first turn that length into inches. A centimetre value is divided by 2.54, while a millimetre value is divided by 25.4. Multiply the resulting inch value by the selected DPI to get the pixel count.
- For centimetres, use pixels = (centimetres ÷ 2.54) × DPI.
- For millimetres, use pixels = (millimetres ÷ 25.4) × DPI.
- For inches, use pixels = inches × DPI.
In the converter, choose centimetres, inches or millimetres as the input unit, enter the physical length and set the intended DPI. The results table then provides the equivalent pixel measurement along with the other units.
A higher DPI means more pixels are needed to represent the same physical centimetre. This is useful when checking whether a design canvas can fill a required print width, but the conversion only describes the selected resolution assumption.
Turning a number into a practical screen or print size
Pixels-to-centimetre conversions are useful whenever a digital measurement must be translated into a physical specification. The same calculation supports screen design, print preparation and image-production checks.
- Web and interface design: translate a client’s physical dimensions into pixel values for the intended web context.
- Print artwork: translate a canvas width or height into the space it will occupy on paper.
- Photography: compare an image’s pixel dimensions with the physical size required for printing.
- Passport and ID photos: check how many pixels are needed for a photograph specified in centimetres.
The result helps with planning, but it does not by itself prove that an image is sharp enough for every print process. Image content, source quality, viewing distance and the printer’s requirements still matter. The conversion answers the dimensional question without changing the number of pixels in the original file.
Applying the result in a design application
For a design canvas in Canva, the step-by-step guide to changing pixels to cm in Canva shows how the converted measurement can be used within that application. For print-ready vector artwork, the Illustrator DPI guide connects the same resolution calculation with document setup.
In either workflow, convert the measurement first and then enter or compare the result in the design file. The DPI should come from the document, export or printer requirement rather than from an unrelated default.
What the converter does and does not determine
The supported workflow accepts a number, a unit and a DPI value. It calculates measurement equivalents; it does not inspect an image, detect its stored resolution or edit the file. The user remains responsible for supplying a meaningful DPI.
- For a pixel input, the selected DPI affects the converted physical measurements; for a centimetre, millimetre or inch input, it changes only the derived pixel count.
- A physical-to-pixel result describes the chosen resolution but does not add detail to an existing image.
- The conversion cannot guarantee print quality or replace the requirements supplied by a printer or production workflow.
Everything runs locally in your browser, with no image upload required. Once the number, unit and DPI are entered, the converter returns the equivalent measurements without a separate processing wait.
For the most reliable result, identify the intended output first, choose the matching DPI, and then use the converter to check the relationship between digital pixels and physical centimetres, inches or millimetres.