Native resolution 1080 × 2400 px at 2.625× · 429 PPI · 6.1″ · 9:20. Design at 412 × 915 and export assets at 2.625×.
| Property | Value |
|---|---|
| CSS viewport (portrait) | 412 × 915 px |
| CSS viewport (landscape) | 915 × 412 px |
| Native resolution | 1080 × 2400 px |
| Device pixel ratio | 2.625× |
| Pixel density | 429 PPI |
| Screen diagonal | 6.1 in |
| Panel size | 2.52 × 5.59 in |
| Aspect ratio | 9:20 |
| Total pixels | 2.59 MP |
| Released | 2022 |
| Operating system | Android |
Among the 130 phones on this site, the Google Pixel 6a has the 41th largest CSS viewport area. Its 412 px width is 13 px above the 399 px average for this category.
Targeting the Google Pixel 6a 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.
/* Target Google Pixel 6a 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
| Device | CSS viewport | Native | DPR | PPI | Diagonal |
|---|---|---|---|---|---|
| Google Pixel 6a | 412 × 915 | 1080 × 2400 | 2.625× | 429 | 6.1″ |
| Samsung Galaxy S22 | 360 × 780 | 1080 × 2340 | 3× | 425 | 6.1″ |
| Google Pixel 7 | 412 × 915 | 1080 × 2400 | 2.625× | 416 | 6.3″ |
| Samsung Galaxy A53 5G | 360 × 800 | 1080 × 2400 | 3× | 405 | 6.5″ |
| Samsung Galaxy S22+ | 384 × 833 | 1080 × 2340 | 2.81× | 390 | 6.6″ |
| Google Pixel 7 Pro | 412 × 892 | 1440 × 3120 | 3.5× | 512 | 6.7″ |
| Samsung Galaxy S22 Ultra | 480 × 1029 | 1440 × 3088 | 3× | 500 | 6.8″ |
| Samsung Galaxy S23 | 360 × 780 | 1080 × 2340 | 3× | 425 | 6.1″ |
| Google Pixel 7a | 412 × 915 | 1080 × 2400 | 2.625× | 429 | 6.1″ |
Questions about the Google Pixel 6a screen
What is the screen size of the Google Pixel 6a?
The Google Pixel 6a has a 6.1-inch display. In CSS the viewport measures 412 × 915 px in portrait, and the panel itself has 1080 × 2400 physical pixels at 429 PPI.
What resolution should I design for on the Google Pixel 6a?
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 6a?
The Google Pixel 6a 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 6a?
5 other devices share the 412 × 915 CSS viewport: Google Pixel 8, Google Pixel 8a, Google Pixel 7, Google Pixel 7a, Google Pixel 6. A layout that works on one works on all of them.
Related
window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.