ToolKun ToolKun

Screen Size Detector - Online Resolution & Viewport Checker

100% Client-Side · Private

Real-time detection of screen resolution, window size, and device info

  • Real-time detection
  • Multiple parameters
  • Tailwind breakpoints
User Agent

Understanding screen dimensions is crucial for building responsive websites that work across all devices. This Screen Size Detector provides real-time information about your current browser window dimensions, full screen resolution, device pixel ratio, and which Tailwind CSS breakpoint is active. Whether you're debugging responsive layouts, testing media queries, or documenting device specifications for your team, this tool gives you instant access to the exact measurements you need. Resize your browser window and watch the values update live, making it easy to identify exactly where breakpoint transitions occur.

Understanding Screen Measurements

Web development involves several different screen measurements that can be confusing. Window size (viewport) is the area where your webpage content is displayed - this is what CSS media queries typically target. Screen resolution is the physical display's total pixel dimensions. The available area excludes system UI elements like taskbars. Device pixel ratio (DPR) indicates how many physical pixels represent one CSS pixel, crucial for high-DPI/Retina displays where DPR is 2 or higher.

Tailwind CSS Breakpoint Reference

  • sm (640px): Small devices like large phones in landscape
  • md (768px): Medium devices like tablets
  • lg (1024px): Large devices like laptops
  • xl (1280px): Extra large devices like desktops
  • 2xl (1536px): Large desktop monitors

Device Pixel Ratio Explained

Modern high-resolution displays pack multiple physical pixels into each CSS pixel. A MacBook Pro with DPR of 2 shows 2x2 physical pixels for every CSS pixel, making text and graphics appear sharper. When your design shows a 100px wide image, it actually uses 200 physical pixels on a 2x display. This is why you need @2x images for Retina displays - to prevent blurry graphics on high-DPR screens.

Responsive Design Testing Tips

Use this tool to verify your breakpoints trigger at the correct widths. Test by slowly resizing your browser and noting when layouts break or rearrange. Pay attention to the physical pixel calculation for image optimization - you may need larger source images than your CSS dimensions suggest. Document the common screen sizes your users have by checking analytics, then test those specific dimensions thoroughly.

Frequently Asked Questions

Why does my Mac show a different resolution than its specs say?

Mac Retina displays have a device pixel ratio (DPR) of 2, meaning CSS pixels are half the physical resolution. A 2880x1800 physical display shows as 1440x900 CSS pixels. The browser works in CSS pixels for layout, which is what this tool shows. Multiply by DPR to get physical pixels.

What's the difference between window size and viewport?

They're often used interchangeably, but technically the viewport is the area visible for webpage content, while window size includes browser chrome (toolbars, scrollbars). In most modern browsers, these are very close. The values shown here represent the viewport available for your content.

Why do mobile devices report such small resolutions?

Mobile browsers report CSS pixels rather than physical pixels to maintain usable website scaling. An iPhone 14 Pro has 2556x1179 physical pixels but reports a viewport of around 393x852 CSS pixels with DPR of 3. This ensures websites designed for desktop also work on mobile without being microscopic.

How do I test a specific screen size?

Use your browser's developer tools (F12 or Cmd+Option+I) and toggle device emulation. You can select preset devices or enter custom dimensions. This is more reliable than manually resizing the window when you need exact dimensions for testing specific breakpoints.

Should I use Tailwind's breakpoints or custom ones?

Tailwind's default breakpoints work well for most projects and match common device sizes. Custom breakpoints make sense when your design has specific layout requirements or your analytics show users clustered around different sizes. Using standard breakpoints makes your CSS more predictable for other developers.