Pixel & Typography Converter
Convert px, pt, pc, em, rem, inches & cm for screen and print
Type a size once and see it in pixels, points, picas, em, rem, inches and centimeters. Conversions follow the W3C CSS standard of 96 px per inch and assume the 16 px default root font size.
Convert to every unit
Live- Pixels96 px
- Points72 pt
- Picas6 pc
- EM (16px base)6 em
- REM (16px root)6 rem
- Inches1 in
- Centimeters2.54 cm
Popular pixel and type conversions
The screen and typography conversions designers and developers look up most, with a sample answer on each card.
All digital and typography converters
Every pixel, type and screen tool on Panglify, grouped by the unit you start from. Each page has a live calculator, the formula and worked examples.
Screen & print calculators
15 more digital converters are on the way.
How do you convert pixels, points and inches?
Convert through the inch: the CSS specification fixes 1 inch at exactly 96 pixels, 72 points or 6 picas. Screen and print units all measure a physical or virtual length, so once a value is in inches you can express it in any other unit with a single multiplication.
The core formulas
- Pixels to inches: inches = px ÷ 96
- Points to pixels: px = pt × 96 ÷ 72, which simplifies to pt × 4/3
- Pixels to centimeters: cm = px × 2.54 ÷ 96
- Pixels to rem or em: rem = px ÷ root font size (16 px by default)
Worked example: a 300 px wide image is 300 ÷ 96 = 3.125 inches in CSS units, or 3.125 × 2.54 = 7.9375 cm. A 12 pt caption set in a word processor matches 12 × 4/3 = 16 px on the web, and a 24 px heading equals 24 ÷ 16 = 1.5 rem. You can check each of these with the pixels to inches converter, the px to rem converter or the converter at the top of this page.
Print resolution works differently
For printing, the number of pixels per inch is not fixed at 96. It is whatever resolution you print at. Multiply the print size in inches by the target DPI to get the pixel dimensions you need: a US Letter page (8.5 × 11 in) at 300 DPI needs 8.5 × 300 = 2,550 by 11 × 300 = 3,300 pixels. The same multiplication works for any size and resolution.
Pixels to inches chart (96 px per inch)
Common pixel values converted to CSS inches, rounded to four decimal places. For any other number, use the px to inches converter.
| Pixels (px) | Inches (in) |
|---|---|
| 16 px | 0.1667 in |
| 24 px | 0.25 in |
| 32 px | 0.3333 in |
| 48 px | 0.5 in |
| 64 px | 0.6667 in |
| 72 px | 0.75 in |
| 96 px | 1 in |
| 100 px | 1.0417 in |
| 128 px | 1.3333 in |
| 150 px | 1.5625 in |
| 192 px | 2 in |
| 200 px | 2.0833 in |
| 256 px | 2.6667 in |
| 300 px | 3.125 in |
| 480 px | 5 in |
| 960 px | 10 in |
What is the difference between PPI and DPI?
PPI (pixels per inch) describes how densely an image or screen packs pixels, while DPI (dots per inch) describes how many ink or toner dots a printer lays down per inch. In everyday use the two are often swapped, and “300 DPI” usually means an image with enough pixels to print at 300 pixels per inch.
Pixels needed for a print
Multiply each printed dimension in inches by the target PPI. A 4 × 6 in photo at 300 PPI needs 1,200 × 1,800 pixels (2.16 megapixels). An A4 page, 210 × 297 mm under ISO 216, is 8.2677 × 11.6929 in, so at 300 PPI it needs about 2,480 × 3,508 pixels. About 300 PPI is the usual target for prints viewed at arm’s length; large posters viewed from across a room can use far less. Stored uncompressed at 3 bytes per pixel, that A4 image is 26,099,520 bytes, about 26.1 MB, which the data storage converter can express in any unit.
Pixel density of a screen
For a display, PPI = √(width² + height²) ÷ diagonal in inches. A 27-inch 4K monitor works out to about 163.2 PPI and a 24-inch 1080p monitor to about 91.8 PPI. Changing the DPI value stored in an image file does not add or remove pixels; it only changes the size the image prints at. To go from pixels to physical size, use the pixels to inches converter at print resolution, or the length converter for inches and centimeters.
Common screen resolutions and aspect ratios
Standard display and video resolutions with their exact reduced ratio, the ratio they are usually marketed as, and the total pixel count in megapixels. Some "16:9" and "21:9" labels are rounded, which the exact column reveals.
| Name | Resolution | Exact ratio | Marketed as | Pixels |
|---|---|---|---|---|
| HD (720p) | 1,280 × 720 | 16:9 | 16:9 | 0.92 MP |
| WXGA laptop | 1,366 × 768 | 683:384 | ≈16:9 | 1.05 MP |
| Full HD (1080p) | 1,920 × 1,080 | 16:9 | 16:9 | 2.07 MP |
| QHD (1440p) | 2,560 × 1,440 | 16:9 | 16:9 | 3.69 MP |
| 4K UHD | 3,840 × 2,160 | 16:9 | 16:9 | 8.29 MP |
| WXGA+ | 1,440 × 900 | 8:5 | 16:10 | 1.30 MP |
| WUXGA | 1,920 × 1,200 | 8:5 | 16:10 | 2.30 MP |
| UW-FHD ultrawide | 2,560 × 1,080 | 64:27 | ≈21:9 | 2.76 MP |
| UW-QHD ultrawide | 3,440 × 1,440 | 43:18 | ≈21:9 | 4.95 MP |
| XGA | 1,024 × 768 | 4:3 | 4:3 | 0.79 MP |
| SXGA | 1,280 × 1,024 | 5:4 | 5:4 | 1.31 MP |
| Vertical video (9:16) | 1,080 × 1,920 | 9:16 | 9:16 | 2.07 MP |
Which digital units are used where?
Pixels and rem dominate screen design, points and picas dominate print typography, and inches or centimeters describe physical output, while aspect ratios describe the shape of screens, images and video.
- Pixels (px): the default unit of web layout, UI design tools such as Figma, and image dimensions. A CSS pixel is a layout unit, not a single hardware dot.
- Rem: the preferred unit for font sizes and spacing in accessible web design, because it scales when a reader raises the browser's default text size. Convert your design specs with the px to rem converter.
- Em: useful for padding and icons that should grow with the text of their own component, since em is relative to the element's computed font size rather than the root.
- Points (pt): font sizes in Microsoft Word, Google Docs, Adobe InDesign and PDF files, and CSS print stylesheets.
- Picas (pc): column widths, margins and gutters in traditional page layout. Six picas make one inch.
- Inches and centimeters: physical output such as print sizes, stickers and packaging. Design at the final physical size and let the DPI decide the pixel count.
- Aspect ratio: video frames, thumbnails and responsive image boxes. Keep the ratio fixed when resizing to avoid stretching, which the aspect ratio calculator does for you.
Color values sit alongside these units in every stylesheet: a hex code such as #FF8800 is three base-16 numbers, one each for red, green and blue, and the decimal to hex converter or the number system converter translates them.
Should you use px, rem or em in CSS?
Use rem for font sizes and most spacing, em for details that should scale with their own component’s text, and px for fine lines such as borders and hairlines. All three are defined in the W3C CSS Values and Units specification, but they respond differently when a reader changes the text size.
- rem follows the root font size, which in turn follows the reader’s browser font-size setting. A reader who sets a larger default gets larger rem-based text and spacing everywhere, which helps meet WCAG 2 Success Criterion 1.4.4 (resize text up to 200% without loss of content).
- em follows the computed font size of the current element, so it suits button padding and icons that should grow with their label. Because it compounds when nested, deep em chains are hard to predict.
- px stays fixed relative to the reference pixel. Pixel font sizes still scale with browser zoom, but they ignore the default font-size preference, which is why they are best kept for borders, shadows and other decoration.
Some teams set html { font-size: 62.5% } so that 1 rem equals 10 px at the default size, which makes the arithmetic easy but shifts every rem value on the page; many simply divide pixel values by 16. Media queries written in em or rem use the browser’s initial font size, not the html font size, so a breakpoint of 48em is 768 px at the default. The px to rem converter handles the division for any design token.
What is the difference between CSS pixels and device pixels?
A CSS pixel is an abstract layout unit, 1/96 of a CSS inch, while a device pixel is a physical dot on the screen. On a high-density display, the browser maps one CSS pixel to several device pixels. The ratio between them is the device pixel ratio (DPR): a DPR of 2 means each CSS pixel is drawn with a 2 × 2 block of device pixels, and a DPR of 3 uses a 3 × 3 block.
This is why a phone with a 1170 × 2532 panel reports a much smaller viewport to web pages, and why a CSS inch rarely measures exactly one inch with a ruler. The physical size depends on the screen's actual pixel density, which is the diagonal resolution in pixels divided by the diagonal size in inches. A 27-inch 4K monitor has about 163 PPI, while a 24-inch 1080p monitor has about 92 PPI.
pt vs px, and em vs rem
Points come from print typography, where 72 points make an inch, so 1 pt is 4/3 of a CSS pixel and 1 px is 0.75 pt. Em and rem are relative units: rem always refers to the root (html) font size, while em refers to the font size of the current element, so nested em values compound. With a 16 px root, 1.5 rem is 24 px everywhere, but 1.5 em inside a 20 px parent is 30 px. The converter on this page assumes a 16 px base for both.
Sources and further reading
The standards and references behind the numbers on this page. Links open in a new tab.
Standards and official sources
Further reading
- PixelWikipedia
- Point (typography)Wikipedia
- Pica (unit)Wikipedia
- Em (typography)Wikipedia
- InchWikipedia
- CentimetreWikipedia
Screen and type units and their exact values
Each unit below is defined against the CSS inch, so the conversions are exact. The em and rem rows assume the common browser default of 16 px.
- 1 pixel (px · CSS reference pixel)
- 1/96 in
- 1 point (pt · Typography (DTP))
- 1/72 in
- 1 pica (pc · Typography)
- 12 pt (1/6 in)
- 1 em (em · CSS relative)
- 16 px at default size
- 1 rem (rem · CSS relative)
- 16 px at default size
- 1 inch (in · Physical)
- 96 px (CSS)
- 1 centimeter (cm · Physical)
- 37.7952756 px (CSS)
Sources: W3C CSS Values and Units Module (1 in = 96 px = 72 pt = 6 pc; 1 cm = 96/2.54 px). Em and rem depend on the font size in use; 16 px is the usual browser default, not a fixed constant. Physical pixel density varies by device.
Pixel and typography FAQs
Quick, exact answers to the questions people ask most.
How many pixels are in an inch?
In CSS there are exactly 96 pixels in one inch, as defined by the W3C. For printing, the number equals the print resolution, so an inch printed at 300 DPI contains 300 pixels.
How do I convert px to rem?
Divide the pixel value by the root font size, which is 16 px by default. For example, 24 px ÷ 16 = 1.5 rem, and 14 px ÷ 16 = 0.875 rem.
Is 1 pt the same as 1 px?
No. One point is 1/72 inch and one CSS pixel is 1/96 inch, so 1 pt equals about 1.3333 px and 1 px equals 0.75 pt. A 12 pt font matches 16 px.
How many pixels is 8.5 x 11 inches at 300 DPI?
Multiply each side by 300: 8.5 × 300 = 2,550 and 11 × 300 = 3,300. A US Letter page at 300 DPI is therefore 2,550 × 3,300 pixels.
What aspect ratio is 1920 x 1080?
1920 × 1080 is 16:9. Both numbers divide by their greatest common divisor, 120, giving 16 and 9. The same ratio applies to 1280 × 720, 2560 × 1440 and 3840 × 2160.
How many pixels is 1 cm?
One centimeter equals about 37.7953 CSS pixels, because 96 px ÷ 2.54 cm = 37.7953. At 300 DPI print resolution, 1 cm is about 118.11 pixels.
How many pixels is A4 at 300 DPI?
An A4 page (210 × 297 mm) at 300 DPI is about 2,480 × 3,508 pixels, because 210 mm is 8.2677 in and 297 mm is 11.6929 in. At 150 DPI it is about 1,240 × 1,754 pixels.
What is 1 rem in pixels?
1 rem equals the root font size, which is 16 px by default in major browsers, so 1 rem = 16 px = 12 pt. If the html element is set to 62.5%, 1 rem becomes 10 px.
What resolution is 4K?
Consumer 4K, also called UHD, is 3,840 × 2,160 pixels, exactly 4 times the pixel count of 1080p. Cinema 4K under the DCI specification is slightly wider at 4,096 × 2,160.
Related converters & guides
Formulas checked against NIST SP 811 and the BIPM SI Brochure. Last updated . How we verify our numbers.