Screen Resolution Tester - Display Info
Check your screen resolution, viewport size, pixel ratio, and current responsive breakpoint. Updates live as you resize.
Runs in your browser. No data leaves your device.
About this tool
Shows your screen size, browser viewport size, device pixel ratio and related display values, updating live as you resize the window. It also shows which Tailwind CSS breakpoint the current viewport width falls into. Handy for web developers testing responsive layouts and for anyone checking display settings.
Features
- Screen resolution from window.screen.width x height
- Viewport size from window.innerWidth x innerHeight
- Device pixel ratio from window.devicePixelRatio
- Effective resolution: viewport size multiplied by the pixel ratio
- Color depth in bits from screen.colorDepth
- Orientation (Landscape or Portrait), based on viewport width versus height
- Active Tailwind breakpoint (xs, sm 640, md 768, lg 1024, xl 1280, 2xl 1536) with a highlighted scale
- All values refresh on every window resize
How to use it
- Open the tool - values appear immediately.
- Resize the browser window or rotate your device to see the values and breakpoint change.
Inputs
- None - values are read from the browser
Outputs
- Screen resolution, viewport size, pixel ratio, effective resolution, color depth and orientation
- Current Tailwind breakpoint
Limits and notes
- Screen and viewport sizes are reported in CSS pixels, so on scaled or HiDPI displays the screen resolution is smaller than the panel native resolution
- Effective resolution is calculated from the viewport, not the whole screen
- Values are recalculated on window resize events only
- Nothing is copied, saved or sent anywhere
Frequently Asked Questions
How does the Screen Resolution Tester work?
The tool reads window.screen.width/height for the screen size and window.innerWidth/innerHeight for the viewport, both in CSS pixels. It reads window.devicePixelRatio and multiplies the viewport by it to show an effective resolution, and also shows screen.colorDepth and whether the viewport is landscape or portrait. A resize listener updates everything live, and the active Tailwind breakpoint is found by comparing innerWidth to 640, 768, 1024, 1280 and 1536 px.
What is the difference between screen resolution and viewport size?
Screen resolution is the size of your whole display as reported by the browser, in CSS pixels; on scaled or HiDPI screens this is smaller than the panel's native pixel count. Viewport size is the area available to the web page, which is smaller because it excludes browser toolbars, tabs and window borders.
What is device pixel ratio?
The ratio between physical pixels and CSS pixels. A ratio of 2 (common on Retina/HiDPI displays) means each CSS pixel is rendered using 4 physical pixels (2x2), resulting in sharper text and images.
Does it update in real time?
Yes. Resize your browser window and the values update live. This is useful for web developers testing responsive breakpoints and layout behavior at different viewport sizes.