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.
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; addmarks: cropif 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.
| Size | Series | mm | in | pt | px at 300 PPI |
|---|---|---|---|---|---|
| A0 | ISO A | 841 × 1189 | 33.11 × 46.81 | 2383.94 × 3370.39 | 9933 × 14043 |
| A1 | ISO A | 594 × 841 | 23.39 × 33.11 | 1683.78 × 2383.94 | 7016 × 9933 |
| A2 | ISO A | 420 × 594 | 16.54 × 23.39 | 1190.55 × 1683.78 | 4961 × 7016 |
| A3 | ISO A | 297 × 420 | 11.69 × 16.54 | 841.89 × 1190.55 | 3508 × 4961 |
| A4 | ISO A | 210 × 297 | 8.27 × 11.69 | 595.28 × 841.89 | 2480 × 3508 |
| A5 | ISO A | 148 × 210 | 5.83 × 8.27 | 419.53 × 595.28 | 1748 × 2480 |
| A6 | ISO A | 105 × 148 | 4.13 × 5.83 | 297.64 × 419.53 | 1240 × 1748 |
| A7 | ISO A | 74 × 105 | 2.91 × 4.13 | 209.76 × 297.64 | 874 × 1240 |
| A8 | ISO A | 52 × 74 | 2.05 × 2.91 | 147.4 × 209.76 | 614 × 874 |
| B0 | ISO B | 1000 × 1414 | 39.37 × 55.67 | 2834.65 × 4008.19 | 11811 × 16701 |
| B1 | ISO B | 707 × 1000 | 27.83 × 39.37 | 2004.09 × 2834.65 | 8350 × 11811 |
| B2 | ISO B | 500 × 707 | 19.69 × 27.83 | 1417.32 × 2004.09 | 5906 × 8350 |
| B3 | ISO B | 353 × 500 | 13.9 × 19.69 | 1000.63 × 1417.32 | 4169 × 5906 |
| B4 | ISO B | 250 × 353 | 9.84 × 13.9 | 708.66 × 1000.63 | 2953 × 4169 |
| B5 | ISO B | 176 × 250 | 6.93 × 9.84 | 498.9 × 708.66 | 2079 × 2953 |
| B6 | ISO B | 125 × 176 | 4.92 × 6.93 | 354.33 × 498.9 | 1476 × 2079 |
| C4 envelope | ISO C | 229 × 324 | 9.02 × 12.76 | 649.13 × 918.43 | 2705 × 3827 |
| C5 envelope | ISO C | 162 × 229 | 6.38 × 9.02 | 459.21 × 649.13 | 1913 × 2705 |
| C6 envelope | ISO C | 114 × 162 | 4.49 × 6.38 | 323.15 × 459.21 | 1346 × 1913 |
| DL envelope | ISO C | 110 × 220 | 4.33 × 8.66 | 311.81 × 623.62 | 1299 × 2598 |
| US Letter | North American | 215.9 × 279.4 | 8.5 × 11 | 612 × 792 | 2550 × 3300 |
| US Legal | North American | 215.9 × 355.6 | 8.5 × 14 | 612 × 1008 | 2550 × 4200 |
| Tabloid (Ledger) | North American | 279.4 × 431.8 | 11 × 17 | 792 × 1224 | 3300 × 5100 |
| Executive | North American | 184.1 × 266.7 | 7.25 × 10.5 | 522 × 756 | 2175 × 3150 |
| Half Letter (Statement) | North American | 139.7 × 215.9 | 5.5 × 8.5 | 396 × 612 | 1650 × 2550 |
| Junior Legal | North American | 127 × 203.2 | 5 × 8 | 360 × 576 | 1500 × 2400 |
| ANSI C | ANSI | 431.8 × 558.8 | 17 × 22 | 1224 × 1584 | 5100 × 6600 |
| ANSI D | ANSI | 558.8 × 863.6 | 22 × 34 | 1584 × 2448 | 6600 × 10200 |
| ANSI E | ANSI | 863.6 × 1117.6 | 34 × 44 | 2448 × 3168 | 10200 × 13200 |
| Arch A | Architectural | 228.6 × 304.8 | 9 × 12 | 648 × 864 | 2700 × 3600 |
| Arch B | Architectural | 304.8 × 457.2 | 12 × 18 | 864 × 1296 | 3600 × 5400 |
| Arch C | Architectural | 457.2 × 609.6 | 18 × 24 | 1296 × 1728 | 5400 × 7200 |
| Arch D | Architectural | 609.6 × 914.4 | 24 × 36 | 1728 × 2592 | 7200 × 10800 |
| Arch E | Architectural | 914.4 × 1219.2 | 36 × 48 | 2592 × 3456 | 10800 × 14400 |
| 4 × 6 in photo | Photo | 101.6 × 152.4 | 4 × 6 | 288 × 432 | 1200 × 1800 |
| 5 × 7 in photo | Photo | 127 × 177.8 | 5 × 7 | 360 × 504 | 1500 × 2100 |
| 8 × 10 in photo | Photo | 203.2 × 254 | 8 × 10 | 576 × 720 | 2400 × 3000 |
| Super A3 / A3+ | Photo | 329 × 483 | 12.95 × 19.02 | 932.6 × 1369.13 | 3886 × 5705 |
| Business card (85 × 55 mm) | Cards | 55 × 85 | 2.17 × 3.35 | 155.91 × 240.94 | 650 × 1004 |
| Business card (3.5 × 2 in) | Cards | 50.8 × 88.9 | 2 × 3.5 | 144 × 252 | 600 × 1050 |
Sources
- ISO 216:2007, Writing paper and certain classes of printed matter, trimmed sizes (public summary)
- W3C CSS Values and Units Module Level 4, §6.2 Absolute lengths
- W3C CSS Paged Media Module Level 3, the @page rule and the size property
- ISO 32000-1:2008, §14.11.2 Page boundaries (MediaBox, TrimBox, ArtBox)