Client-side sandboxNo uploadsBulk mode

CM to PX Online — Convert Centimeters to Pixels Free

Type a size in centimeters, pick the DPI, and get the exact pixel size instantly — for web graphics, print layouts, and online-form photo specs. Bulk batch mode, reverse PX → CM, printable size tables. 100% in your browser — no upload, no signup. A cm to px conversion always needs a DPI — without one, the same measurement can mean 38 pixels or 118 — so pick 96 for screens, 150 for drafts, or 300 for print, then check the answer against the size table below; a passport photo at 3.5 × 4.5 cm, for example, is 132 × 170 px at 96 DPI but 413 × 531 px at 300 DPI, and getting that choice right is what keeps an upload portal from rejecting your photo.

× cm

DPI (resolution):

Or a custom DPI:

DPI

How this works: pixels = cm × DPI ÷ 2.54, rounded to whole pixels. Nothing leaves your device.

How to convert cm to px in 3 steps

  1. Enter the centimeters — a width and height in cm, or just one number. Leave the second box at 0 to convert a single side.
  2. Pick the DPI that matches your use: 96 for screens, 150 for drafts, 300 for print. The answer depends on this number — there is no cm-to-px conversion without a DPI.
  3. Click Convert to Pixels and read the pixel size. Use the Bulk tab for whole lists, or the Reverse tab to go back from pixels to cm.

What DPI should you choose?

DPI (dots per inch) is the resolution the pixel count is measured against, and it is the whole reason cm-to-px answers differ across the web. For anything that lives on a screen — website graphics, slide decks, social media images — 96 DPI is the standard; CSS pixels on the web are defined at 96 DPI. For drafts and internal prints, 150 DPI is usually enough, and for anything going to a professional printer or a government portal, use 300 DPI. Here is what the same A4 sheet (21 × 29.7 cm) becomes at each: 794 × 1123 px at 96 DPI, 1240 × 1754 px at 150 DPI, and 2480 × 3508 px at 300 DPI. Exam and recruitment portals that publish photo specs in cm are almost always designed around 150 or 300 DPI, so if they only say "3.5 × 4.5 cm", convert at 300 DPI and double-check the result against their sample image.

Common paper and photo sizes in pixels

The table below saves you a lookup — exact pixel sizes for the paper and photo sizes people convert most, at the three DPI values that matter. Every number uses the same formula this tool applies: cm × DPI ÷ 2.54, rounded to whole pixels.

Size cm (w × h) 96 DPI (screens) 150 DPI (drafts) 300 DPI (print)
A421 × 29.7794 × 1123 px1240 × 1754 px2480 × 3508 px
A514.8 × 21559 × 794 px874 × 1240 px1748 × 2480 px
A329.7 × 421123 × 1587 px1754 × 2480 px3508 × 4961 px
US Letter21.59 × 27.94816 × 1056 px1275 × 1650 px2550 × 3300 px
Photo 10 × 1510 × 15378 × 567 px591 × 886 px1181 × 1772 px
Passport 3.5 × 4.53.5 × 4.5132 × 170 px207 × 266 px413 × 531 px

The CM to PX formula, explained

The math is one line: px = cm × DPI ÷ 2.54. The 2.54 is because one inch is exactly 2.54 centimeters — DPI means "dots per inch", so the formula converts your centimeters to inches first (÷ 2.54), then to pixels (× DPI). Worked example: A4 width is 21 cm. At 96 DPI: 21 × 96 ÷ 2.54 = 793.7, rounded to 794 px. At 300 DPI: 21 × 300 ÷ 2.54 = 2480.3, rounded to 2480 px. Pixel dimensions are always whole numbers, so every answer is rounded to the nearest pixel — rounding changes the size by less than half a pixel and never matters for print or screens. The reverse is cm = px × 2.54 ÷ DPI: a 2480 px wide image at 300 DPI is 2480 × 2.54 ÷ 300 = 21.0 cm. This is also why converting cm to px is a different job from resizing a photo to a file size — this tool answers "how many pixels?", and if you need "how many kilobytes?", our image resizer to KB answers that.

Related tools

Once you know the pixel size, you still need the photo to actually be that size. Resize any image to exact pixels and KB with our image resizer to KB — the bulk variant handles multiple images in one pass. For document photos, use the passport photo maker and PAN card photo resizer; for documents themselves, our ZIP to PDF tool bundles scans into a PDF.

Honest limits of this tool

This tool computes pixel dimensions — it does not change any image. A cm measurement on its own does not determine pixel count, so a converter that does not ask for DPI is making one up; this page always shows the DPI behind every answer. Rounding to whole pixels can shift the size by up to half a pixel; that is how every real conversion works and is invisible on screen and in print. Custom DPI accepts 1–2400 and values up to 500 cm per side — extreme inputs (e.g. 500 cm at 2400 DPI) produce huge pixel numbers, which is the mathematically correct answer, not a limit of the tool. The tool runs entirely in your browser, so it works offline once loaded and never sees your data.

Frequently asked questions

How do I convert cm to px?

Multiply your centimeters by the DPI and divide by 2.54. For example, 21 cm at 96 DPI is 21 × 96 ÷ 2.54 = 794 px. This page's converter does the same math instantly, with DPI presets and a bulk mode for converting whole lists at once.

How many pixels is 1 cm?

It depends on the DPI. 1 cm is 38 px at 96 DPI, 59 px at 150 DPI, and 118 px at 300 DPI. Without a DPI value the question has no single answer — always convert at the DPI your screen, printer, or upload portal expects.

What DPI should I use for cm to px conversion?

Use 96 DPI for screens (web graphics, CSS), 150 DPI for drafts, and 300 DPI for print-quality output. Exam and form portals that give cm specs are usually built around 150 or 300 DPI — check their instruction PDF if they publish only the cm size.

Can I convert px to cm here too?

Yes. Switch to the PX → CM tab, enter your pixel width and height, pick the DPI, and the tool returns the size in centimeters to two decimal places. The reverse formula is cm = px × 2.54 ÷ DPI.

Can I convert many cm sizes at once?

Yes — the Bulk tab converts a long list in one click. Paste one value per line (plain cm, or width,height pairs like 21,29.7) to get a table of pixel widths at 72, 96, 150 and 300 DPI, downloadable as a CSV file.

Why do different websites give different px answers for the same cm?

Because they use different DPI values. 10 cm is 283 px at 72 DPI but 1181 px at 300 DPI — same centimeters, four-times different pixels. Any converter that hides its DPI is guessing; this tool always shows which DPI each answer was computed at.