Home › Device & Internet Tests › Device Pixel Ratio Checker

Device Pixel Ratio Checker

Instantly see your device pixel ratio, CSS viewport, screen resolution in CSS and physical pixels, color depth and media-query features, updated live as you zoom or resize. Add your screen size to get its pixel density (PPI). Nothing is sent anywhere.

Last updated:

Your device pixel ratio
1
Standard density
Live: zoom or resize the window to see it change
CSS viewport
–
window.innerWidth × innerHeight
Viewport in device pixels
–
viewport × DPR
Screen (CSS pixels)
–
screen.width × screen.height
Screen (physical pixels)
–
screen × DPR (estimate)
Available screen
–
minus taskbar / dock
Color depth
–
bits per pixel
Orientation
–
screen.orientation
Pinch-zoom scale
–
visualViewport.scale
Touch points
–
navigator.maxTouchPoints

Screen PPI calculator

Common sizes:

Your physical resolution is filled in. Enter your screen's diagonal size (or tap a common size) to get its pixel density.

Media features

Media featureYour value
Advertisement

How to use the Device Pixel Ratio Checker

  1. Read your device pixel ratio at the top: it updates immediately when you zoom the page or drag the window to another monitor.
  2. Check the details: viewport, screen resolution in CSS and physical pixels, color depth, orientation and media features.
  3. Calculate PPI: the resolution is prefilled from your screen; enter the diagonal in inches (or tap a common size) and press Calculate PPI.
  4. Copy the report to share your display details with a developer or support team.

CSS pixels, device pixels and DPR

Websites are laid out in CSS pixels, a unit that stays roughly the same visual size on every device. The screen itself is made of device (physical) pixels. The device pixel ratio links the two:

  • device pixels = CSS pixels × devicePixelRatio
  • A phone with a 390 × 844 CSS viewport and DPR 3 draws the page with 1170 × 2532 physical pixels.
  • A Windows laptop with a 1920 × 1080 panel at 125% display scaling reports a 1536 × 864 CSS screen and a DPR of 1.25.
  • Browser zoom multiplies the DPR on desktop: a DPR 2 MacBook at 110% zoom reports 2.2.

Developers use DPR to serve sharp images (srcset with 2x and 3x sources, or the resolution media query) and to size canvas elements: set the canvas width to cssWidth × devicePixelRatio and scale the drawing context to avoid blurry graphics.

PPI formula and examples

Pixel density in pixels per inch is the diagonal resolution divided by the diagonal size: PPI = √(width² + height²) ÷ diagonal. Dot pitch, the distance between pixel centers, is 25.4 ÷ PPI millimeters.

ScreenResolutionPPITypical DPR
24″ Full HD monitor1920 × 108091.81
27″ QHD monitor2560 × 1440108.81
27″ 4K monitor3840 × 2160163.21.5 or 2
15.6″ Full HD laptop1920 × 1080141.21.25
13.3″ 2560 × 1600 laptop2560 × 1600227.02
6.1″ phone1170 × 2532457.33

The physical resolution this tool shows is screen size × DPR, so check it at 100% browser zoom. To measure real objects on your screen, calibrate the online ruler; for a broader overview of your display, see What Is My Screen Resolution.

Media features explained

  • hover / pointer: hover: hover with pointer: fine usually means a mouse or trackpad; hover: none with pointer: coarse means a touchscreen. The any- versions check every connected input.
  • prefers-color-scheme, prefers-reduced-motion, prefers-contrast: reflect your operating-system accessibility and theme settings.
  • color-gamut: srgb is standard, p3 means a wide-gamut display (most recent Apple devices and many OLED phones), rec2020 is wider still.
  • dynamic-range: high means the browser and display can show HDR content.

Frequently asked questions

What is device pixel ratio (DPR)?

Device pixel ratio is the number of physical screen pixels used to draw one CSS pixel. A DPR of 1 means one device pixel per CSS pixel, while a DPR of 2 (common on Retina and high-density screens) means each CSS pixel is 2 × 2 device pixels, which makes text and images sharper.

Why does my device pixel ratio change when I zoom?

In desktop browsers, page zoom changes the device pixel ratio: at 150% zoom on a DPR 1 monitor the ratio becomes 1.5, because each CSS pixel now covers 1.5 device pixels. Operating-system display scaling (for example 125% in Windows) also shows up in the DPR. Pinch-zoom on phones does not change DPR; it is shown separately as the visual viewport scale.

How do I find the PPI of my screen?

PPI (pixels per inch) = √(width² + height²) ÷ diagonal in inches, using the physical resolution. For example, a 27-inch 2560 × 1440 monitor has √(2560² + 1440²) ÷ 27 ≈ 108.8 PPI. Enter your screen diagonal in the calculator and it does the math for you.

Is the physical resolution shown always exact?

It is an estimate: screen width and height in CSS pixels multiplied by the device pixel ratio. It is exact at 100% browser zoom on most devices, but if you are zoomed in, or your system uses fractional scaling, the result can differ slightly from the panel's native resolution. Reset the zoom with Ctrl+0 (Cmd+0 on Mac) for the most accurate value.

What DPR do common devices have?

Most standard desktop monitors are 1, many Windows laptops are 1.25 or 1.5, MacBooks and iPads are 2, most iPhones are 2 or 3, and many Android phones are between 2.625 and 4. High-DPR screens need higher-resolution images (for example 2x or 3x sources in srcset) to look sharp.

What does color depth 24 or 30 mean?

Color depth is the number of bits used for each pixel. 24-bit means 8 bits each for red, green and blue (about 16.7 million colors). 30-bit means 10 bits per channel, common on HDR or wide-gamut displays.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

What Is My Screen ResolutionSee your screen resolution, viewport, pixel ratio, colour depth and display features.Refresh Rate TestCheck your monitor's refresh rate in Hz and spot dropped frames.Dead Pixel TestFind dead or stuck pixels on your screen.Touch Screen TestCheck multi-touch points, draw trails and find dead zones on any touchscreen.PPI CalculatorPixel density (PPI), dot pitch and retina viewing distance from resolution and screen size.PX to DPConvert pixels to Android dp and sp for ldpi–xxxhdpi, plus iOS points, and back.PX to MMConvert pixels to millimeters (px to mm) instantly, with formula and chart.PX to PTConvert pixels to points (px to pt) instantly, with formula and chart.Screen FlashlightTurn your screen into a bright white or coloured light that stays awake.Ring LightTurn your screen into a ring light or fill light with adjustable color temperature.Online RulerAn actual-size on-screen ruler in cm, mm and inches, calibrated with a credit card.Color Blindness TestQuick 14-plate dot test that screens for red-green and blue-yellow color vision deficiency.Monitor TestFull-screen monitor test patterns: uniformity, banding, gamma, sharpness, black level, ghosting.Backlight Bleed TestFull-screen black and dark gray screens to check backlight bleed, IPS glow, clouding and blooming.Color Hue TestDrag color caps into hue order, FM100-style, and get an error score and a hue error chart.Color Perception TestFind the one tile with a different shade. The grid grows and colors get closer each level.Monitor Ghosting TestMoving-object pursuit test to reveal ghosting, overshoot and motion blur, with refresh rate.Screen Burn-in FixerFull-screen color cycles, noise and scrolling bars to reduce image retention, with a timer.Black ScreenFull-screen pure black page for OLED, screen cleaning or focus, with timer and hidden cursor.Color Printer Test PagePrint a CMYK + RGB color test page: color bars, gradients, skin tones and cartridge blocks.Online Eye Test ChartScreen-calibrated Snellen and tumbling E eye chart for a quick at-home vision check.Green ScreenFull-screen chroma key green (#00B140 or #00FF00) or any custom shade, with hidden cursor.HDR TestCheck if your screen shows HDR, compare HDR and SDR white, estimate peak brightness and color gamut.Monitor Calibration ToolGuided monitor calibration: brightness, contrast, gamma, sharpness and color test patterns.Printer Test PagePrint a black & white test page: text sizes, line grids, gray ramp, nozzle pattern, Letter or A4.Screen Tearing TestFast moving bars and panning patterns that make screen tearing and V-Sync problems easy to see.Astigmatism TestCheck each eye with a calibrated clock-dial chart and note which lines look darker.Heart Rate Monitor (Camera)Measure your pulse with your phone camera and flash: live BPM, waveform and history.Keep Screen AwakeStop your phone or computer screen from sleeping with one tap, with an optional timer.Frame Skipping TestLight one box per frame and photograph it to catch skipped frames after overclocking a monitor.Projector Test PatternFull-screen projector focus grid, keystone lines, color bars and 16:9, 4:3 and 2.35:1 frames.Touch Screen Accuracy TestTap shrinking targets to measure touch offset error per screen region, with a heatmap.
See all 28 Screen & Display Tests →