Skip to content
UniKit

Print size and DPI converter

Convert pixels and millimetres at a chosen DPI (mm = pixels ÷ DPI × 25.4) in both directions, with millimetre / centimetre / inch / pt / pica rows, full-page pixel counts and bleed sizes for six paper sizes. With a real image selected it reads the true pixel size and the DPI stored in the file (JFIF density or pHYs chunk, reported as unreadable when absent) and converts the image’s own pixels as well.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

The image is read locally for its pixel size and DPI metadata; nothing is uploaded.

Conversion

The conversion is shown as text below.

Conversion result

Every line below is the real result of this run — copy them straight out.

Fill in a size or pick an image to convert.

What this tool does

  • Pre-press size check: pick a real image and see it is 254 × 169.333333 mm at 300 DPI, plus the size you need once bleed is added.
  • Work from millimetres: switch to “mm to pixels” and A4 (210 × 297 mm) needs 2480 × 3508 px at 300 DPI.
  • Bleed and paper checks: with 3 mm bleed per edge an A4 is output at 216 × 303 mm (2551 × 3579 px), and the full-page pixels for business cards and 6-inch photos are listed too.
  • Layout units: mm / cm / in / pt / pica for the same size in one go, with 1 in = 72 pt = 6 pica.

Example

Input

No image selected, manual 3000x2000, direction “pixels to mm”, DPI 300, bleed 3 mm per edge

Output

Size source: Manual input · 3000x2000 (typed by hand)
DPI stored in the file: —
Direction: pixels → mm (target 300 DPI, bleed 3 mm per edge)
At 300 DPI: 3000 px → 254 mm (10 in, 720 pt)
Height 2000 px → 169.333333 mm (6.666667 in)
Millimetres (mm) = 254 mm
Centimetres (cm) = 25.4 cm
Inches (in) = 10 in
Points (pt) = 720 pt
Picas (pica) = 60 pica
Pixels (px) = 3000 px
Size with bleed (per edge 3 mm) = 260 mm

Those are the first twelve rows the page prints; the rest adds the height rows and the full-page and bleed pixel counts for six paper sizes (A4 @300 DPI = 2480 × 3508 px, with bleed 2551 × 3579 px). With an image selected rows 1 and 2 turn into the file name, the real pixel size and the DPI stored in the file.

Frequently asked questions

What is the formula?

mm = pixels ÷ DPI × 25.4, and the other way pixels = mm ÷ 25.4 × DPI rounded to whole pixels. Layout units follow 1 in = 72 pt = 6 pica, so pt = mm ÷ 25.4 × 72 and pica = mm ÷ 25.4 × 6. Size with bleed = size + 2 × bleed per edge.

Why does the manual size stop counting once an image is selected?

In “pixels to mm” mode the decoded real pixel size is the input, and the page says “Size source: Image file” with the real pixel dimensions. In “mm to pixels” mode your millimetres drive the conversion and the selected image is additionally converted pixels → mm, so both blocks appear. Formats the browser cannot decode (HEIC) are reported as such and the manual size is used instead — the tool never pretends to have read a size.

Where does the DPI stored in the file come from, and does it count?

JPEG is read from the JFIF APP0 density field (only trusted when the unit is dots per inch) and PNG from the pHYs chunk (pixels per metre converted to DPI); GIF and WebP have no equivalent field and are reported as “not stored in the file”. The figure is reference only and never drives the conversion: the print size always follows pixels ÷ the DPI you entered.

How is bleed calculated?

It is added on every edge: size with bleed = size + 2 × bleed per edge. The common 3 mm means a 210 × 297 mm A4 is output at 216 × 303 mm (2551 × 3579 px at 300 DPI) and trimmed down to the 2480 × 3508 px finished page. Set 0 to switch bleed off.

How many pixels does A4 need?

210 × 297 mm is 8.267717 × 11.692913 in. At 300 DPI that is 2480 × 3508 px (about 8.7 MP); at 150 DPI 1240 × 1754 px. Those are the usual “full page” figures from print shops — add bleed on top if the artwork runs to the edge.

Keywords:pt pica

Related tools