Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out custom device screen size in points for Chrome Dev Tools?

I want to add Samsung Galaxy A50 in Chrome Dev Tools custom devices, I now its screen size in pixels, its PPI and etc. But dev tools want its width and height in pts (points)! How to figure out screen size of Galaxy A50 in pts? enter image description here

like image 978
Dan Avatar asked Oct 16 '25 06:10

Dan


1 Answers

Depends on the device pixel ratio. I'll use an iPhone 11 for an example, with a pixel ratio of 2 and a screen size of 828px by 1792px, the viewport size would be 414px by 896px. (828/2 = 414) (1792/2 = 896).

But how do you know the pixel ratio...can search around for that but a faster way to get the viewport info is to use a site like https://www.mydevice.io.

like image 109
Duramba Avatar answered Oct 18 '25 20:10

Duramba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!