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.
Experiment with CSS container queries in a live editor. Resize the container and see styles change based on its width/height. Learn modern responsive.
Paste a media query and instantly check for syntax errors. See if it's correctly formed. Quick developer tool.
Combine aspect‑ratio with min‑/max‑width/height and see how the box responds. Understand sizing constraints. Copy the pattern.
Drag a virtual ruler across your screen to measure pixel distances. Horizontal and vertical guides. Useful for UI designers checking alignment.
Detect your current screen resolution, viewport dimensions, and device pixel ratio. Useful for responsive design testing. No data collection.
Test the new style() function inside @container to query custom property values. Revolutionary component‑based responsive design.
Create a responsive box that maintains a specific aspect ratio using the aspect‑ratio property. Copy the simple CSS.
An on‑screen ruler that measures in pixels, centimeters, and inches. Drag to resize. Handy for UI designers and developers.
See the current viewport width/height, document size, scrollbar width, and pixel ratio. Essential responsive data.
Wrap text around an irregular shape and adjust the margin and alpha threshold. Magazines layout on the web.
Browse the OKLCH color space with sliders for lightness, chroma, and hue. See the CSS oklch() code. Modern and accessible.
Upload one image at multiple widths and generate the complete img srcset and sizes attributes. Perfect for performance.
Predict the file size of an image based on pixel dimensions and format (JPEG, PNG, WebP). Rough estimate. Local.
Enter foreground and background colors to instantly see the contrast ratio and pass/fail for AA and AAA. Simple and fast.
Place a table caption on top, bottom, or inline‑start/end. See the live change. Copy the code.
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.
See how your title and meta description will be truncated in Google SERP by pixel width. Optimize click‑through.
Enter a website URL and apply a protanopia/deuteranopia/tritanopia filter. Test full page accessibility.
Input dimensions and color depth to estimate uncompressed file size for BMP, PNG, JPEG. Planning tool.
Display your screen's current devicePixelRatio. See how it changes when you zoom. Useful for high‑res image decisions.
Compare break‑all, keep‑all, and overflow‑wrap: anywhere/break‑word. Paste long words and see how they wrap.
See how your page title and description will look in Google SERP. Check pixel width and character count. Local tool.
Simulate reduced motion preference and test your animations. Copy the media query snippet. Keep your users safe.
Experiment with the CSS color-mix() function. Pick two colors and mix them in different color spaces (srgb, oklch). Copy the CSS.
Toggle image‑rendering: auto, pixelated, crisp‑edges on a scaled image. Essential for pixel art display.
Open a test video in Picture‑in‑Picture mode. Control entering and leaving PiP. Copy the code snippet for your own app.