How to use the pixel to inch converter
- Choose whether you are converting from pixels or from a physical unit using the dropdown.
- Enter your value in the number field.
- Pick a DPI preset (72, 96, 150, 300) or type a custom resolution.
- Read the converted result instantly below the form.
How the pixel to inch formula works
The relationship between pixels and physical size depends entirely on the display or print resolution, measured in dots per inch (DPI) or pixels per inch (PPI). The core formula is straightforward:
inches = pixels / DPI
For example, a 1920-pixel-wide image shown on a 96 PPI monitor spans exactly 20 inches (1920 divided by 96). To go the other direction, an inch to pixel converter uses the inverse: pixels = inches * DPI. At 300 PPI, one inch contains 300 pixels.
Metric conversions use the exact definition of an inch as 2.54 centimeters. So cm = (pixels / DPI) * 2.54 and mm = (pixels / DPI) * 25.4. When you enter centimeters or millimeters, the tool first converts them to inches, then multiplies by the DPI to get the pixel count.
Common DPI and PPI presets
Different devices and workflows use different resolutions. Here is a reference table showing how many pixels fit in one inch at each common setting:
| Preset | Typical use | Pixels per inch |
|---|---|---|
| 72 PPI | Classic Mac displays, legacy web graphics | 72 |
| 96 PPI | Windows default, CSS reference pixel | 96 |
| 150 PPI | High-resolution monitors, e-readers | 150 |
| 300 PPI | Standard print quality, magazines | 300 |
When preparing files for professional printing, always confirm the required resolution with your printer. A file that looks sharp at 96 PPI on screen may appear blurry when printed if it was not created with enough pixels.
Converting inches to pixels for design work
Web designers often need to translate a physical mockup into screen dimensions. An inch to pixel conversion requires knowing the target device resolution. If a client asks for a 3-inch-wide logo on a standard 96 PPI screen, you need 288 pixels (3 times 96).
For responsive design, CSS uses a reference pixel defined at 96 PPI regardless of the actual screen density. This means a CSS in unit always equals 96 CSS pixels. However, when exporting raster images from design tools like Photoshop or Figma, the export DPI determines the final pixel dimensions. Always check whether your tool exports at 72, 96 or another value.
Using this as a pixel inch to DPI converter
Sometimes you know both the pixel dimensions and the physical size, and you need to find the resolution. While this page focuses on converting between units at a known DPI, you can reverse the math manually. Divide the pixel count by the physical size in inches to get the effective PPI.
For instance, a smartphone screen that is 1080 pixels wide and measures 2.5 inches across has a density of 432 PPI (1080 divided by 2.5). For a dedicated tool that automates this reverse calculation, see the DPI calculator or the PPI calculator.
Pixels versus physical units in CSS and print
A common mistake is assuming that CSS pixels map directly to hardware pixels. Modern phones and laptops use device pixel ratios (DPR) of 2 or 3, meaning one CSS pixel might be rendered by four or nine physical pixels. This pixel to inch converter calculates based on the logical DPI you provide, which matches how most design software handles document setup.
In print workflows, the physical size is fixed. A business card must be 3.5 by 2 inches regardless of the printer. Therefore, you set the document to 300 PPI, and the software calculates that you need 1050 by 600 pixels. Understanding this relationship prevents blurry prints and incorrectly sized web assets.
Worked examples
| Example | Input | Result |
|---|---|---|
| 1920 px on a 96 PPI screen | Convert from: px; Value: 1920; DPI / PPI: 96; Quick preset: 96 | Inches: 20; Centimeters: 50.8; Millimeters: 508; Pixels: 1,920; DPI / PPI: 96 |
| 4 x 6 inch photo at 300 PPI | Convert from: in; Value: 4; DPI / PPI: 300; Quick preset: 300 | Pixels: 1,200; Centimeters: 10.16; Millimeters: 101.6; Inches: 4; DPI / PPI: 300 |
| 10 cm wide banner at 150 PPI | Convert from: cm; Value: 10; DPI / PPI: 150; Quick preset: 150 | Pixels: 591; Inches: 3.937008; Millimeters: 100; Centimeters: 10; DPI / PPI: 150 |
| 500 px at classic 72 PPI | Convert from: px; Value: 500; DPI / PPI: 72; Quick preset: 72 | Inches: 6.944444; Centimeters: 17.638889; Millimeters: 176.3889; Pixels: 500; DPI / PPI: 72 |
FAQ
How do I convert pixels to inches?
Divide the pixel value by the DPI or PPI of your screen or document. For example, 960 pixels at 96 PPI equals 10 inches.
What is the difference between DPI and PPI?
PPI (pixels per inch) refers to digital displays, while DPI (dots per inch) refers to printers. In practice, software often uses the terms interchangeably when setting up document dimensions.
Why does my image look different on screen than in print?
Screens vary: most desktop monitors are around 90 to 160 PPI and phones are higher, while good prints need about 300 PPI. An image sized for a 96 PPI screen will print much smaller at 300 PPI unless it is resampled.
How many pixels are in one inch at 300 DPI?
Exactly 300 pixels. Multiply the desired physical size in inches by 300 to get the required pixel dimension for high-quality print.
Can I convert centimeters to pixels with this tool?
Yes. Select centimeters from the dropdown, enter your value and choose a DPI. The tool converts centimeters to inches first (dividing by 2.54), then multiplies by the DPI to return pixels. Pixel results are rounded to whole pixels.
Is 72 DPI still used?
The 72 PPI standard comes from early Macintosh displays. It is rarely used for modern screens, but some legacy systems and older web graphics still reference it.
Does this pixel to inch converter upload my data?
No. All calculations happen locally in your browser. Nothing is sent to any server.