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.
Opens a small window showing the current viewport width, height, and devicePixelRatio in real time. Useful when testing responsive designs.
Enter a URL and the tool performs a CORS preflight request, showing which origins are allowed. Debug why your frontend cannot access an API.
Choose where page breaks should occur for printing. Get the break‑before, break‑after, and break‑inside CSS.
Create a pure CSS scroll progress indicator using animation‑timeline: scroll(). No JavaScript. Copy the complete code.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Scroll a container and see how sticky elements behave. Adjust top, bottom, and scroll margins. Copy the code.
Enter a URL and a user‑agent to see if it is allowed or blocked by the robots.txt file. Quick bot validation.
Load any variable font from Google Fonts or local file and play with weight, width, slant, and custom axes. Download CSS.
Browse the fonts installed on your system and type a custom phrase to see how it looks. Uses Local Font Access API where available.
Connect your MIDI keyboard and see pressed notes visually on a piano roll. Check velocity, channel, and aftertouch. No DAW needed.
Apply user‑select: none, text, all and see how it affects selection. Copy the CSS snippet for your UI elements.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
Toggle scrollbar‑gutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Connect a gamepad and see all button presses and axis movements visually. Check that every input is detected correctly.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Build a 3D rotating cube using pure CSS. Set dimensions, colors, and animation speed. Copy the HTML and CSS.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Press any key and see it light up on a standard QWERTY layout. Check functionality or demonstrate shortcuts.