Centimeters to Pixels Converter

Convert metric centimeters (cm) into digital pixels across screen, web design, and commercial print densities

Interactive Centimeters to Pixels Converter

Formula: Pixels = (CM ÷ 2.54) × DPI (or CM × 37.795 at 96 DPI)
Switch to Pixels to CM
cm
Standard Presets:
→
Calculated At
DPI
Standard Resolutions:
Calculated Pixel Equivalent
378 px
width: 378px; /* 10cm @ 96dpi */
Millimeters: 100.0 mmInches: 3.94 inPoints: 283.7 pt

Bridging Metric Physical Dimensions and Digital Pixels

The International System of Units (SI) defines the centimeter as one-hundredth of a meter, forming the universal standard for physical packaging, document printing, signage, and architectural drafting across Europe, Asia, and Latin America. However, when transitioning physical designs into digital raster formats—such as designing posters in Adobe Photoshop, setting up e-commerce product imagery, or coding responsive invoice templates in CSS—developers must convert metric centimeters into electronic pixels.

Because a digital pixel is an abstract unit of color information with no fixed physical size, converting centimeters to pixels requires defining the resolution density of the reproduction device, expressed in Dots Per Inch (DPI) or Pixels Per Inch (PPI). Understanding how centimeters translate into pixel counts ensures that physical documents, international ISO paper sizes (such as A4 and A3), and product packaging render with pinpoint visual fidelity.

The Mathematical Conversion Formula: Centimeters to Pixels

Converting centimeters into digital pixels involves a two-step mathematical relationship. Because resolution standards are defined per imperial inch, and 1 international inch is legally defined as exactly 2.54 centimeters, the formula converts centimeters into inches before multiplying by the target DPI:

Pixels = (Centimeters ÷ 2.54) × DPI

Alternatively, you can precompute the pixel factor per single centimeter for your target resolution:

  • Standard CSS Screen Baseline (96 DPI): 96 ÷ 2.54 ≈ 37.79527559 px/cm. To convert 10 cm for web screens: 10 × 37.795 = 378 px.
  • Legacy Web Resolution (72 DPI): 72 ÷ 2.54 ≈ 28.3464567 px/cm. A 10 cm element calculates to: 10 × 28.346 = 283 px.
  • Draft Print Quality (150 DPI): 150 ÷ 2.54 ≈ 59.0551 px/cm. A 10 cm photo calculates to: 10 × 59.055 = 591 px.
  • High-Resolution Commercial Print (300 DPI): 300 ÷ 2.54 ≈ 118.1102 px/cm. A 10 cm print asset calculates to: 10 × 118.11 = 1181 px.
  • Fine Art & Gallery Print (600 DPI): 600 ÷ 2.54 ≈ 236.2205 px/cm. A 10 cm archival print calculates to: 10 × 236.22 = 2362 px.

Comprehensive Centimeters to Pixels Reference Matrix

The lookup table below outlines exact computed pixel dimensions for standard physical centimeter lengths across common digital screen and high-resolution commercial print baselines:

Physical Metric (CM)Equivalent InchesScreen (72 DPI)CSS Standard (96 DPI)Draft Print (150 DPI)Photo Print (300 DPI)
1 cm0.394 in28 px38 px59 px118 px
2.54 cm (1 inch)1.000 in72 px96 px150 px300 px
5 cm1.969 in142 px189 px295 px591 px
8.5 cm (ID / Credit Card)3.346 in241 px321 px502 px1004 px
10 cm3.937 in283 px378 px591 px1181 px
15 cm5.906 in425 px567 px886 px1772 px
21.0 cm (A4 Width)8.268 in595 px794 px1240 px2480 px
29.7 cm (A4 Height)11.693 in842 px1123 px1754 px3508 px
42.0 cm (A3 Height)16.535 in1191 px1587 px2480 px4961 px

ISO 216 Paper Sizes in Centimeters and Pixels

Throughout the world (outside North America), physical documents, invoices, posters, and flyers adhere strictly to the ISO 216 standard. Based on the golden aspect ratio of 1:√2 (approximately 1:1.4142), folding an ISO paper size in half yields the next size down (e.g. folding A3 in half creates A4).

ISO Paper FormatDimensions in CentimetersDimensions at 96 DPI (Web CSS)Dimensions at 300 DPI (Commercial Print)
A6 (Postcard / Flyer)10.5 × 14.8 cm397 × 560 px1240 × 1748 px
A5 (Notebook / Booklet)14.8 × 21.0 cm560 × 794 px1748 × 2480 px
A4 (Standard Document / Letter)21.0 × 29.7 cm794 × 1123 px2480 × 3508 px
A3 (Poster / Ledger)29.7 × 42.0 cm1123 × 1587 px3508 × 4961 px
A2 (Architectural Blueprint)42.0 × 59.4 cm1587 × 2245 px4961 × 7016 px

CSS Print Architecture: Using Physical Centimeters in Stylesheets

While modern responsive web design utilizes relative units like rem, vw, and % for browser screens, the W3C CSS Paged Media Module provides full native support for centimeter units inside print stylesheets. When preparing printable documents, certificates, and reports:

1. Define Physical Page Geometry

@media print {
  @page {
    size: A4 portrait; /* or size: 21cm 29.7cm; */
    margin: 2cm;
  }
}

2. Ensure Exact Physical Barcode and QR Sizing

Physical scanner hardware requires optical barcodes and QR codes to meet strict minimum physical dimensions (e.g. a logistics shipping label barcode must be at least 3.0 cm wide to guarantee reliable laser beam decode). Styling with width: 3cm; height: 1.5cm; ensures accurate physical output across all printer trays.

3. Avoid Screen-to-Ruler Assumptions

Holding a physical plastic ruler up to a laptop display will rarely measure exactly 10 cm for an element styled with width: 10cm. This occurs because operating system desktop scaling and physical display pixel density (e.g. 140 PPI vs 220 PPI) alter the physical rendering scale. CSS centimeters are strictly locked to 37.795 CSS pixels.

Medical and Industrial Imaging: DICOM Calibration Standards

In specialized fields such as radiology, clinical diagnostics, and industrial engineering, translating pixel data into physical metric centimeters is subject to rigorous regulatory standards. Medical imaging modalities—including Computed Tomography (CT), Magnetic Resonance Imaging (MRI), and Digital Radiography (X-ray)—store metadata in the standardized DICOM (Digital Imaging and Communications in Medicine) format.

Within a DICOM file header, the Pixel Spacing attribute specifies the physical distance in millimeters between the centers of adjacent pixels (such as 0.143 mm × 0.143 mm). Medical web viewers programmed with HTML5 Canvas utilize these spatial calibration constants to allow surgeons and oncologists to measure tumor diameters in exact centimeters directly on screen with sub-millimeter precision.

Step-by-Step Code Recipe: Printable Invoices with Exact Centimeter Margins

When building e-commerce billing platforms or enterprise ERP systems, generating physical paper receipts that fit neatly into double-window envelopes requires precision styling:

.invoice-page {
  /* Standard ISO A4 dimensions in CSS centimeters */
  width: 21cm;
  min-height: 29.7cm;
  padding: 2.5cm;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.address-window {
  /* Sized and positioned to show through envelope transparent pane */
  position: absolute;
  top: 4.5cm;
  left: 2.5cm;
  width: 9.0cm;
  height: 4.5cm;
}

This production technique guarantees that printed letters line up seamlessly with postal transparent envelope panes, saving corporate accounting departments hundreds of hours of manual folding and addressing labor.

Conclusion and Production Summary

Converting centimeters into digital pixels bridges the physical world of metric publishing and modern electronic raster canvases. By leveraging the interactive converter above, matching your DPI target to the output medium (96 DPI for web screens and 300 DPI for commercial print), and utilizing standard ISO paper sizes, you can ensure flawless visual presentation across every physical and digital format.

Frequently Asked Questions (FAQs)

A Centimeters to Pixels Converter is an online design and print utility that calculates digital pixel (px) dimensions from metric physical centimeters (cm) based on target resolution densities (DPI/PPI).

The formula is: Pixels = (Centimeters ÷ 2.54) × DPI. Because 1 inch equals 2.54 centimeters, you first convert centimeters to inches and then multiply by the resolution density. At standard 96 DPI CSS screen resolution, 1 cm equals approximately 37.795 pixels.

At 300 DPI (high-resolution print standard), 1 centimeter equals: (1 ÷ 2.54) × 300 ≈ 118.11 pixels.

Standard ISO A4 paper measures 21.0 × 29.7 cm. At 300 DPI print quality, this converts to 2480 × 3508 pixels. At 96 DPI screen resolution, it converts to 794 × 1123 pixels.

The W3C CSS specification includes physical units (cm, mm, in, pt, pc) primarily for print stylesheets (@media print). In web browsers, 1cm is hardcoded to evaluate to exactly 37.79527559 CSS pixels (96px ÷ 2.54).

For digital web graphics, user interfaces, and mobile screens, standard 96 DPI is the official CSS baseline. For high-resolution Apple Retina displays, assets are exported at 2x (192 DPI) or 3x (288 DPI).

Yes, you can write width: 5cm; in standard CSS. However, because modern screens have differing physical pixel densities, 5cm in CSS represents 188.98 logical pixels rather than exactly 5 physical centimeters measured with a plastic ruler on the glass.

Physical printing presses require high pixel counts to render smooth continuous ink halftones. Converting centimeter dimensions to 300 DPI ensures your digital canvas has enough raster data to prevent jagged pixelation on printed paper.

Explore Related Metric & Physical Converters

Easily convert between physical metric units, imperial measurements, and digital pixels:

Explore Related Tools

Hand-picked utilities and calculators related to this tool.

Pixels Converter