LLION/ PDF, print & document engineering

Paper size to pixels calculator

Convert any standard paper size to pixels at any resolution, in either orientation, with optional bleed and safe margin, plus values for CSS, PDF and Photoshop.

Runs entirely in your browser

Pick a sheet, set the resolution, and read off the pixel dimensions, with the same size in millimetres, inches and points. Add bleed to get the document size a printer expects, and copy the values straight into a CSS @page rule, a PDF page box or an image editor's new-document dialog.

Paper
Orientation
Resolution
PPI
300 for print; 150 for large posters; 96 for screens; 72 for points-as-pixels
Bleed
Safe margin (optional)
mm
Keep text and logos inside this margin

Pixels
Millimetres
Inches
Points
Ratio and size

Values for software

CSS
PDF MediaBox (pt)
PDF TrimBox (pt)
PDF ArtBox (pt)
Photoshop, GIMP, Affinity
Figma, Sketch (72 per inch)

The formula#

A paper size is a physical measurement; pixels only exist once you decide how many of them fit in an inch.

Pixels
px = mm ÷ 25.4 × PPI, rounded to the nearest whole pixel
Points
pt = mm ÷ 25.4 × 72 (a PDF or PostScript point is exactly 1/72 inch)
Inches
in = mm ÷ 25.4 (one inch is defined as exactly 25.4 mm)

A4 is 210 × 297 mm. At 300 PPI that is 210 ÷ 25.4 × 300 = 2480.3 → 2480 px wide and 297 ÷ 25.4 × 300 = 3507.9 → 3508 px tall. US Letter is 8.5 × 11 in, so at 300 PPI it is simply 2550 × 3300 px, with no rounding at all. The sizes defined in inches always give whole numbers at the common resolutions; the metric sizes rarely do.

Which resolution to pick#

  • 300 PPI is the standard for anything read in the hand: brochures, books, business cards, photo prints.
  • 150 PPI is adequate for posters and banners viewed from a metre or more; many large-format printers rasterize at 150 anyway.
  • 96 PPI is the CSS reference density. Use it when a design that was laid out in CSS pixels must map to a sheet, or when you need an on-screen mock-up at "actual size" on a typical monitor.
  • 72 PPI makes one pixel equal one point. Figma, Sketch and older Illustrator presets use it for print artboards, which is why their A4 is 595 × 842.

The DPI and PPI page explains why the number matters and when a lower value is fine.

Bleed and safe margin#

Bleed is extra image beyond the trim line so that cutting a few tenths of a millimetre off-target does not leave a white edge. The convention is 3 mm in ISO regions and 0.125 in (3.175 mm) in North America; a few printers ask for 5 mm on large formats. The calculator adds the bleed on all four sides, so an A4 page with 3 mm bleed becomes a 216 × 303 mm document, which at 300 PPI is 2551 × 3579 px.

A safe margin is the opposite: a zone inside the trim where text and logos should stay so they are not clipped by the same cutting tolerance. Three to five millimetres is typical. When you set one, the calculator reports the safe area and emits an ArtBox for it. Bleed, trim and safe area explains the terms, and the bleed calculator is the tool to use when you start from a custom trim size rather than a named sheet.

The values for software#

  • CSS @page { size: 210mm 297mm; margin: 0; } sets the page size for print stylesheets and for HTML-to-PDF renderers such as Chromium, WeasyPrint and Prince. With bleed on, the size grows to the document size; add marks: crop if the renderer supports it.
  • PDF MediaBox is the page size in points as written in the page dictionary. With bleed, the MediaBox is the full document and the TrimBox sits inside it, offset by the bleed in points (3 mm is 8.504 pt). The page boxes page explains the five boxes and how to set them.
  • Photoshop, GIMP and Affinity Photo take pixel dimensions and a resolution; the value shown includes bleed when bleed is on, because raster work needs the whole canvas.
  • Figma and Sketch have no physical units; their print presets treat one unit as one point, so A4 is 595 × 842. Export at 4.1667× to reach 300 PPI.

Rounding and small discrepancies#

Pixel counts are rounded to whole pixels at the end of the calculation, not at each step. Some references list A4 at 300 PPI as 2480 × 3510 px: that comes from rounding the height to 11.7 in before multiplying. Others list 2479 × 3508, from truncating instead of rounding. The difference is invisible in print, but if a print shop's template says 2480 × 3508, match it exactly so the file is not resampled.

Points are shown to two decimals, which is what most PDF libraries write. A4 is 595.28 × 841.89 pt; the common shorthand 595 × 842 is 0.1 mm off and harmless.

Every size at 300 PPI#

The table below is computed from the same data as the calculator and covers portrait orientation. Swap the two numbers for landscape. For the dimensions of every series in context, see the paper sizes reference, and for the two most common sheets in detail, the A4 and US Letter pages.

Every size in the calculator at 300 PPI, portrait. Pixel values are rounded to whole pixels; inch and point values to two decimals.
SizeSeriesmminptpx at 300 PPI
A0ISO A841 × 118933.11 × 46.812383.94 × 3370.399933 × 14043
A1ISO A594 × 84123.39 × 33.111683.78 × 2383.947016 × 9933
A2ISO A420 × 59416.54 × 23.391190.55 × 1683.784961 × 7016
A3ISO A297 × 42011.69 × 16.54841.89 × 1190.553508 × 4961
A4ISO A210 × 2978.27 × 11.69595.28 × 841.892480 × 3508
A5ISO A148 × 2105.83 × 8.27419.53 × 595.281748 × 2480
A6ISO A105 × 1484.13 × 5.83297.64 × 419.531240 × 1748
A7ISO A74 × 1052.91 × 4.13209.76 × 297.64874 × 1240
A8ISO A52 × 742.05 × 2.91147.4 × 209.76614 × 874
B0ISO B1000 × 141439.37 × 55.672834.65 × 4008.1911811 × 16701
B1ISO B707 × 100027.83 × 39.372004.09 × 2834.658350 × 11811
B2ISO B500 × 70719.69 × 27.831417.32 × 2004.095906 × 8350
B3ISO B353 × 50013.9 × 19.691000.63 × 1417.324169 × 5906
B4ISO B250 × 3539.84 × 13.9708.66 × 1000.632953 × 4169
B5ISO B176 × 2506.93 × 9.84498.9 × 708.662079 × 2953
B6ISO B125 × 1764.92 × 6.93354.33 × 498.91476 × 2079
C4 envelopeISO C229 × 3249.02 × 12.76649.13 × 918.432705 × 3827
C5 envelopeISO C162 × 2296.38 × 9.02459.21 × 649.131913 × 2705
C6 envelopeISO C114 × 1624.49 × 6.38323.15 × 459.211346 × 1913
DL envelopeISO C110 × 2204.33 × 8.66311.81 × 623.621299 × 2598
US LetterNorth American215.9 × 279.48.5 × 11612 × 7922550 × 3300
US LegalNorth American215.9 × 355.68.5 × 14612 × 10082550 × 4200
Tabloid (Ledger)North American279.4 × 431.811 × 17792 × 12243300 × 5100
ExecutiveNorth American184.1 × 266.77.25 × 10.5522 × 7562175 × 3150
Half Letter (Statement)North American139.7 × 215.95.5 × 8.5396 × 6121650 × 2550
Junior LegalNorth American127 × 203.25 × 8360 × 5761500 × 2400
ANSI CANSI431.8 × 558.817 × 221224 × 15845100 × 6600
ANSI DANSI558.8 × 863.622 × 341584 × 24486600 × 10200
ANSI EANSI863.6 × 1117.634 × 442448 × 316810200 × 13200
Arch AArchitectural228.6 × 304.89 × 12648 × 8642700 × 3600
Arch BArchitectural304.8 × 457.212 × 18864 × 12963600 × 5400
Arch CArchitectural457.2 × 609.618 × 241296 × 17285400 × 7200
Arch DArchitectural609.6 × 914.424 × 361728 × 25927200 × 10800
Arch EArchitectural914.4 × 1219.236 × 482592 × 345610800 × 14400
4 × 6 in photoPhoto101.6 × 152.44 × 6288 × 4321200 × 1800
5 × 7 in photoPhoto127 × 177.85 × 7360 × 5041500 × 2100
8 × 10 in photoPhoto203.2 × 2548 × 10576 × 7202400 × 3000
Super A3 / A3+Photo329 × 48312.95 × 19.02932.6 × 1369.133886 × 5705
Business card (85 × 55 mm)Cards55 × 852.17 × 3.35155.91 × 240.94650 × 1004
Business card (3.5 × 2 in)Cards50.8 × 88.92 × 3.5144 × 252600 × 1050

Sources

LLION Editorial · Updated