On‑Screen Pixel Ruler - Online Measure Elements in Browser
Drag a virtual ruler across your screen to measure pixel distances. Horizontal and vertical guides. Useful for UI designers checking alignment.
UD5 Toolkit
| Category | Width Range | Typical Devices | Status |
|---|---|---|---|
| Small Phone | < 576px | iPhone SE, older Androids | — |
| Large Phone | 576 – 767px | iPhone 14/15, Galaxy S23 | — |
| Tablet | 768 – 991px | iPad Mini, Galaxy Tab | — |
| Small Desktop | 992 – 1199px | Small laptops, older monitors | — |
| Desktop | 1200 – 1399px | Standard monitors, MacBook Pro | — |
| Large Desktop | ≥ 1400px | Wide monitors, 1440p+, 4K | — |
| Device | Resolution | DPR | CSS Viewport | Aspect Ratio |
|---|---|---|---|---|
| iPhone 15 Pro Max | 2790 × 1290 | 3× | 430 × 932 | ~19.5:9 |
| iPhone 15 / 15 Pro | 2556 × 1179 | 3× | 393 × 852 | ~19.5:9 |
| iPhone SE (2022) | 1334 × 750 | 2× | 375 × 667 | 16:9 |
| Samsung Galaxy S24 Ultra | 3120 × 1440 | 3× | 412 × 915 | ~19.5:9 |
| iPad Pro 12.9" | 2732 × 2048 | 2× | 1024 × 1366 | 4:3 |
| iPad Air | 2360 × 1640 | 2× | 820 × 1180 | ~4.3:3 |
| MacBook Pro 14" | 3024 × 1964 | 2× | 1512 × 982 | ~16:10 |
| MacBook Air 13" | 2560 × 1664 | 2× | 1280 × 832 | ~16:10 |
| Full HD Monitor | 1920 × 1080 | 1× | 1920 × 1080 | 16:9 |
| 4K UHD Monitor | 3840 × 2160 | 1× (100% scale) | 3840 × 2160 | 16:9 |
window.innerWidth and window.innerHeight in pixels. This is the actual space available for displaying web content, excluding browser chrome (toolbars, bookmarks bar, etc.). It's crucial for responsive web design because it determines how your layout should adapt.
screen.width × screen.height) is the total number of physical pixels on your display. Viewport size is the browser's content area, which is almost always smaller due to browser UI elements, taskbars, and the fact that browser windows are rarely maximized. For example, a 1920×1080 screen may have a viewport of only ~1440×780 when the browser is not fullscreen.
window.devicePixelRatio. This is critical for serving appropriately sized images (using srcset) and for canvas rendering.
window.innerWidth returns the CSS pixel width of the browser's content area (the viewport), including scrollbars. screen.width returns the total physical pixel width of the entire screen. On a 1920×1080 monitor, screen.width is 1920, but window.innerWidth might be around 1440-1900 depending on browser window size. On Retina displays, screen.width reports CSS pixels (not physical), so a 3024-pixel-wide MacBook screen reports 1512.
srcset with 2x and 3x descriptors for responsive images. For canvas, multiply dimensions by DPR for sharp rendering. For icons, use SVG or icon fonts which scale perfectly at any DPR. CSS media queries like @media (-webkit-min-device-pixel-ratio: 2) can target high-DPI screens specifically.
aspect-ratio property helps maintain proportions. Common ratios: 16:9 (most screens), 16:10 (MacBooks), 4:3 (iPads), 21:9 (ultrawide), 19.5:9 (modern phones).
Drag a virtual ruler across your screen to measure pixel distances. Horizontal and vertical guides. Useful for UI designers checking alignment.
An on‑screen ruler that measures in pixels, centimeters, and inches. Drag to resize. Handy for UI designers and developers.
Display your screen's current devicePixelRatio. See how it changes when you zoom. Useful for high‑res image decisions.
See the current viewport width/height, document size, scrollbar width, and pixel ratio. Essential responsive data.
Predict the file size of an image based on pixel dimensions and format (JPEG, PNG, WebP). Rough estimate. Local.
Resize and crop an image to a specific aspect ratio (1:1, 16:9…) with automatic fit/cover. Download the perfect image.
Enter width, height, format to approximate file size. Plan web performance. Simple model.
Upload two images and see a diff overlay highlighting the pixel differences. Adjust tolerance. For regression testing.
Enlarge pixel art or low‑res images without blur. Choose 2x, 4x, 8x. Perfect for sprites. Download scaled PNG.
Upload an MP3 or WAV file and get an estimated beats per minute using onset detection. DJs and musicians can quickly catalog track tempos.
Enter a URL and extract the font stacks and web font URLs used on that page. Quick typography research.
Explore the new two‑value display syntax like `display: block flex`. See what each inner/outer pair does visually.
Enter a URL and view it in three iframes: mobile, tablet, and desktop side‑by‑side. Quick responsive check.
Change the viewport meta tag and see how a page would render at different device widths. Understand responsive basics.
Paste text and instantly see if it contains hidden zero‑width characters often used in steganography. Reveal invisible payloads.
See outerWidth, innerWidth, outerHeight, innerHeight, screenX/Y, and availWidth/Height live. Understand the viewport.
See your website inside iframes at multiple breakpoints simultaneously. Side‑by‑side responsive testing.
Check if the current page can be loaded offline by examining the service worker cache. Developer tool for PWAs.
Compare visibility: hidden vs display: none. See how each affects layout and event listeners. Inline code.
Point your camera at an object and see the dominant color in real time. Click to copy the hex. Fun tool for designers.
Upload an image and instantly see its most dominant color as a hex swatch. Uses color quantization. Local.
Build a proper <meta name='viewport'> tag with width, initial‑scale, and user‑scalable options. Avoid common mobile rendering issues.
See the fundamental frequency (pitch) of your voice in real time using auto‑correlation. For singers and speech training. No upload.
See exact dimensions of your current browser inner/outer window, screen resolution, and pixel ratio. Developer debug.
Convert pixel values to viewport‑relative units (vw, vh, vmin, vmax) based on a selected breakpoint. Precise responsive design.
Enter a URL and drag a slider to change the viewport width smoothly. See exactly where your layout breaks. No iframe limits.
Drop a file to see its MIME type and the first few magic bytes (hex and ASCII). No upload, works instantly.
Analyze text for subjective and emotionally charged words. Helps identify potential bias in writing. Purely heuristic, local operation.
Upload a text file to detect its character encoding (UTF-8, ISO-8859-1, etc.) and BOM presence. Runs entirely in your browser.
Preview any website inside emulated device viewports (iPhone, iPad, various resolutions). No screenshot, live interaction in an iframe. Local tool.