CSS Media Query Tester - Online Verify Breakpoint Conditions
Write a media query and instantly see if it matches your current viewport. Width, height, orientation, and more.
UD5 Toolkit
Enter a CSS media query condition to test against your current viewport. Examples: (min-width: 768px), (max-width: 480px), (orientation: landscape), (min-resolution: 2dppx)
| Device | Width | Height | DPR | Matches Now |
|---|
(min-width: 768px) targets tablets and larger, while (max-width: 767px) targets phones and small tablets only.window.matchMedia() is a JavaScript method that tests whether a given media query matches the current viewport. It returns a MediaQueryList object with a matches boolean property. You can also attach listeners to respond when the match status changes β useful for programmatic responsive behavior without CSS alone. This tool uses matchMedia to evaluate every query in real time.(min-resolution: 2dppx) or (-webkit-min-device-pixel-ratio: 2) to serve sharper images and graphics. This tool shows your current DPR in real time.(orientation: portrait) query matches when the viewport height is greater than its width. (orientation: landscape) matches when width exceeds height. These are useful for adjusting layouts on tablets and phones when users rotate their devices. Note: on desktop, browsers are typically in landscape orientation unless the window is manually resized to be taller than wide.and to require all conditions to match (e.g., (min-width: 768px) and (max-width: 1024px) targets tablets specifically). Use a comma , to create an "or" relationship (e.g., (max-width: 480px), (min-width: 1600px) matches either very small or very large screens). You can also mix conditions like (min-width: 1024px) and (orientation: landscape).Write a media query and instantly see if it matches your current viewport. Width, height, orientation, and more.
Write a media query and see if it matches as you resize the iframe. Understand width, height, and resolution queries.
Build a CSS media query by selecting feature, operator, and value. Copy the exact syntax for your stylesheet.
Paste a media query and instantly check for syntax errors. See if it's correctly formed. Quick developer tool.
Detect your current screen resolution, viewport dimensions, and device pixel ratio. Useful for responsive design testing. No data collection.
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.
Combine aspectβratio with minβ/maxβwidth/height and see how the box responds. Understand sizing constraints. Copy the pattern.
Enter image pixel dimensions and compute maximum print size at various DPI. With aspect ratio presets (4x6, 5x7, 8x10) and cropping preview. Local tool.
Create a responsive box that maintains a specific aspect ratio using the aspectβratio property. Copy the simple CSS.
See how your title and meta description will be truncated in Google SERP by pixel width. Optimize clickβthrough.
Enter foreground and background colors to instantly see the contrast ratio and pass/fail for AA and AAA. Simple and fast.
Preview how your page title will appear in Google SERPs. See pixel width and character count. Avoid truncation. Free local tool for SEOs.
Upload an image at multiple widths and generate a complete <picture> or <img srcset> snippet. Modern web performance.
Upload a small pixel art image and get a CSS grid layout that recreates it using divs. Novelty developer tool.
Toggle imageβrendering: auto, pixelated, crispβedges on a scaled image. Essential for pixel art display.
See how your page title and description will look in Google SERP. Check pixel width and character count. Local tool.
Wrap text around an irregular shape and adjust the margin and alpha threshold. Magazines layout on the web.
Resize and crop an image to a specific aspect ratio (1:1, 16:9β¦) with automatic fit/cover. Download the perfect image.
Upload one image at multiple widths and generate the complete img srcset and sizes attributes. Perfect for performance.
Reduce GIF file size by lowering color count and removing duplicate frames. See sideβbyβside preview. All local.
Construct a CSSβonly carousel with scrollβsnap and scrollβdriven animations. Configurable gap, items, and progress indicator. Copy the HTML/CSS.
Quickly adjust the brightness and contrast of an image with live preview sliders. Download the tuned photo. Canvas.
Enter a website URL and apply a protanopia/deuteranopia/tritanopia filter. Test full page accessibility.
Pick colors from a palette or use the eye dropper to sample colors from your screen. Converts between HEX, RGB, HSL. An essential tool for designers.
Browse the OKLCH color space with sliders for lightness, chroma, and hue. See the CSS oklch() code. Modern and accessible.
Upload two images and see a diff overlay highlighting the pixel differences. Adjust tolerance. For regression testing.
Interactively create colors in HWB space and get the CSS hwb() function. Simplifies tint/shade workflows. Live preview.
Enter the URL of any online image and extract its dominant colors or pick colors with a magnifier. No upload, crossβorigin friendly.
Drop a video file and instantly see its container format, codec(s), resolution, duration, and bitrate. Browserβbased, no upload.