Skip to content
1440px

Google Pixel 8 Screen Size

CSS viewport, native resolution, pixel ratio and pixel density for the Google Pixel 8 — the numbers you need to design and build for it.

CSS viewport · portrait
412 × 915 px

Native resolution 1080 × 2400 px at 2.625× · 428 PPI · 6.2″ · 9:20. Design at 412 × 915 and export assets at 2.625×.

Google Pixel 8 display specifications
PropertyValue
CSS viewport (portrait)412 × 915 px
CSS viewport (landscape)915 × 412 px
Native resolution1080 × 2400 px
Device pixel ratio2.625×
Pixel density428 PPI
Screen diagonal6.2 in
Panel size2.52 × 5.61 in
Aspect ratio9:20
Total pixels2.59 MP
Released2023
Operating systemAndroid

Among the 130 phones on this site, the Google Pixel 8 has the 36th largest CSS viewport area. Its 412 px width is 13 px above the 399 px average for this category.

Targeting the Google Pixel 8 in CSS

Device-specific media queries are brittle — a new model with the same width will not match. Use them for genuine per-device fixes only, and prefer width buckets for layout.

CSS media query
/* Target Google Pixel 8 specifically */
@media only screen
  and (device-width: 412px)
  and (device-height: 915px)
  and (-webkit-device-pixel-ratio: 2.625) {
  /* … */
}

/* More useful in practice — the width bucket it falls into */
@media (min-width: 412px) { /* … */ }

Compare with other Android Phones models

Google Pixel 8 compared with nearby Android Phones models
DeviceCSS viewportNativeDPRPPIDiagonal
Google Pixel 8412 × 9151080 × 24002.625×4286.2″
Samsung Galaxy S23360 × 7801080 × 23404256.1″
Google Pixel 7a412 × 9151080 × 24002.625×4296.1″
Xiaomi 13393 × 8731080 × 24002.75×4146.36″
Samsung Galaxy S23 FE360 × 7801080 × 23404036.4″
Samsung Galaxy A54360 × 7801080 × 23404036.4″
Samsung Galaxy A15360 × 7801080 × 23403966.5″
Samsung Galaxy S23+384 × 8331080 × 23402.81×3906.6″
Samsung Galaxy A34360 × 7801080 × 23403906.6″

Questions about the Google Pixel 8 screen

What is the screen size of the Google Pixel 8?

The Google Pixel 8 has a 6.2-inch display. In CSS the viewport measures 412 × 915 px in portrait, and the panel itself has 1080 × 2400 physical pixels at 428 PPI.

What resolution should I design for on the Google Pixel 8?

Design at 412 × 915 and export assets at 2.625×. That gives you 1080 × 2400 px images, which is exactly what the panel renders. Designing directly at 1080 × 2400 means every measurement is 2.625 times larger than the CSS values you will write.

What is the device pixel ratio of the Google Pixel 8?

The Google Pixel 8 reports a device pixel ratio of 2.625. One CSS pixel therefore covers 6.89 device pixels. You can read it in JavaScript with window.devicePixelRatio.

Which other devices have the same viewport as the Google Pixel 8?

5 other devices share the 412 × 915 CSS viewport: Google Pixel 8a, Google Pixel 7, Google Pixel 7a, Google Pixel 6, Google Pixel 6a. A layout that works on one works on all of them.

Related

Specifications from the manufacturer's published device data. Last verified 7 August 2026. CSS viewport values are the portrait window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.