Responsive Design Tester
Preview your HTML at any screen size. Test device breakpoints, compare viewports side by side, and toggle orientation.
How to Use the Responsive Design Tester
- Paste your HTML — Include a full HTML document with inline styles or a <style> block for best results.
- Select a device — Click any device preset (iPhone SE, iPad, Laptop, etc.) to preview at that viewport.
- Toggle orientation — Switch between portrait and landscape to test both orientations.
- Custom mode — Enter any width and height to test specific breakpoints.
- Side-by-Side — See mobile, tablet, and desktop viewports simultaneously to compare layouts.
Understanding Responsive Design Breakpoints
Responsive design is the practice of building web interfaces that adapt their layout and typography to different screen sizes. This is achieved using CSS media queries — conditional rules that apply styles only when the viewport meets certain conditions, most commonly a minimum or maximum width.
Common Breakpoints
- 320–375px — Small to medium phones (iPhone SE, Galaxy A series)
- 390–430px — Modern large phones (iPhone 14/15, Pixel 7)
- 768px — Tablets in portrait mode (iPad, Android tablets)
- 1024px — Tablets in landscape, small laptops
- 1280–1366px — Standard laptop screens
- 1440–1920px — Desktop monitors
Mobile-First vs. Desktop-First
Mobile-first means writing base CSS for mobile screens, then adding @media (min-width: ...) queries to enhance the layout for larger screens. This produces smaller CSS for mobile users (who often have slower connections) and is the approach recommended by all major frameworks including Tailwind CSS, Bootstrap 5, and Material Design. Desktop-first does the opposite — starting with desktop styles and using @media (max-width: ...) to adapt for smaller screens.
The Viewport Meta Tag
Every responsive page needs <meta name="viewport" content="width=device-width, initial-scale=1.0"> in its <head>. Without it, mobile browsers render the page at a virtual 980px wide and scale it down, making text tiny and layouts broken. This meta tag tells the browser to use the actual device width as the viewport width, allowing media queries to work correctly.
Testing Beyond This Tool
While this tool is great for quick HTML prototyping, the gold standard for responsive testing is browser DevTools. Chrome DevTools (F12) provides device simulation with network throttling, touch event simulation, and CPU throttling to simulate low-end devices. For production sites, also test on real physical devices since some touch interactions and system fonts can only be tested on actual hardware. Also try our Aspect Ratio Calculator to plan your image and video dimensions across breakpoints.