Pixels to Inches

Type a pixel count and the DPI it will be used at. Nothing is uploaded — there is no file here at all.

The other way round

A physical size, at the same DPI, back into pixels.

A pixel has no size until you pick a DPI

There is no fixed answer to “how many inches is 300 pixels”. At 96 DPI it is 3.125 inches, at 300 DPI it is one inch, and both are correct. Every number on this page names the DPI it was worked out at, because a length printed without one is a measurement of nothing.

There is no file here

This tool takes numbers and does arithmetic on them in your browser. Nothing is uploaded, nothing is stored and no account is needed, because there is nothing to upload in the first place. To change the DPI tag on an actual image, or to measure something on one, our DPI Converter and Pixel Ruler do that locally too.

Advertisement

How it works

The sum is pixels divided by DPI

DPI means dots per inch, so the number of inches is simply the pixel count divided by it. 1920 pixels at 96 DPI is 20 inches; the same 1920 pixels at 300 DPI is 6.4 inches. Centimetres, millimetres, points and picas are that inch figure multiplied by 2.54, 25.4, 72 and 6 in turn, which is why the table on this page moves together when you change one field.

Which DPI to type

The DPI belongs to the destination, not to the file. Print work is usually 300, draft and large-format work often 150, and office printers sit somewhere between. 96 is the CSS reference pixel, which is what a browser means by a pixel, and 72 is the old PostScript point that still turns up in design software. The presets carry these with a note on each, so the choice is visible rather than assumed.

Going back to pixels shows what the rounding cost

Ask for 8.5 inches at 300 DPI and the answer is exactly 2550 pixels, which is clean. Ask for 8.5 centimetres at the same density and it is 1003.94 pixels, and you cannot have a fraction of a pixel. This page prints the exact value, the whole-pixel count you would actually use, and the size that whole count really measures, so you can see the difference instead of assuming there is none.

A web page cannot read your screen density

Browsers expose a device pixel ratio, which is how many device pixels go into one CSS pixel. It is not a physical density: a phone and a large monitor can report the same ratio at wildly different real densities, and nothing available to a page closes that gap. So this tool asks you for the DPI rather than guessing one, and says what the reported ratio is and is not. For a screen you can measure, divide the horizontal resolution by the physical width in inches.

Frequently Asked Questions

How many inches is 1000 pixels?

It depends entirely on the DPI, and there is no answer without one. At 96 DPI it is 10.4167 inches, at 150 DPI it is 6.6667, and at 300 DPI it is 3.3333. All three are the same thousand pixels. Pick the density the picture will be used at and the number follows; that is why the DPI field on this page has no hidden default doing the work for you.

What DPI should I use?

The one the output device works at. Commercial print is normally 300 DPI, large-format and draft work often 150, and home or office printers land between the two. For anything on a screen, 96 is the CSS reference density a browser assumes. If a print shop has given you a figure, use theirs rather than a general rule.

Is DPI the same as PPI?

In everyday use they are treated as the same thing and this calculator makes no distinction. Strictly, PPI is pixels per inch in an image file and DPI is ink dots per inch that a printer lays down, and a printer may put several dots into one pixel. For working out how big a picture will come out, the arithmetic is identical either way.

Why did I get a fraction of a pixel?

Because most physical sizes do not land on a whole pixel. 8.5 centimetres at 300 DPI is 1003.937 pixels, and a file cannot have 0.937 of a pixel. The page gives you the exact figure, the whole number to use, and the size that whole number actually measures, so the difference is stated rather than hidden. If it matters, adjust the DPI or the size until the exact value comes out whole.

Does changing the DPI change my image?

Not here, and not on its own. DPI is a tag that says how large the pixels should be printed; retagging it changes the print size and leaves every pixel where it was. Resampling is the other operation, and it does add or remove pixels. This page performs neither — it is arithmetic on numbers you type. Our DPI Converter does the retagging and resampling on a real file.

Can the page detect my screen DPI?

No, and any tool claiming to has guessed. A browser exposes the device pixel ratio, which compares device pixels to CSS pixels, and that is not a physical density — two screens of very different sizes report the same ratio. To get your own screen's real density, divide its horizontal resolution by its physical width in inches, then type that into the DPI field.

What size in pixels is an A4 page?

A4 is 21 by 29.7 centimetres, so at 300 DPI it is 2480 by 3508 pixels once rounded, and at 150 DPI 1240 by 1754. Enter each side into the reverse field to see the exact values and what the rounding does to them. US Letter, at 8.5 by 11 inches, comes out as exactly 2550 by 3300 at 300 DPI, with no rounding at all.

What are points and picas doing here?

They are typesetting units that survive in design and PDF work. There are 72 points to an inch and 6 picas, so 12 points make a pica. If a layout specifies margins or type in points and you need the pixel equivalent at a print density, this converts between them without going through inches by hand.

Is anything uploaded or stored?

Nothing. There is no upload, no server call and no account. The calculation runs in JavaScript on your own device, and the numbers you type are not sent anywhere or kept once you close the tab.

How do I work out the DPI of a picture I already have?

Divide the pixel dimension by the physical size you want it printed at. A 3000-pixel-wide photograph printed 10 inches wide is 300 DPI; printed 20 inches wide it is 150. The reverse field on this page does the same sum from the other direction — give it the size you want and it tells you the pixel count that density needs.