See the screen your browser sees.

Websites lay themselves out by the size of the browser window, measured in CSS pixels, not by the number of pixels on your screen. This page shows both, and updates as you resize the window or turn your phone.

It helps when a page looks wrong on one device, or when someone helping you asks what screen you are using.

Runs in your browser. Nothing is uploaded.

—viewport in CSS pixels

Common min-width breakpoints

    More design & colour tools · All 54 tools

    How to use it

    1. Open this page on the device you want to check. The large figure at the top is your viewport in CSS pixels.
    2. Resize the window or rotate the device and watch the figures change.
    3. Read the list for screen size, pixel ratio, orientation, colour scheme, pointer type and more.
    4. Look at Common min-width breakpoints to see which ones match your current width.
    5. Press Copy all details to paste the full readout into a message or bug report.

    Good to know

    CSS pixels and device pixels

    A phone screen may have well over a thousand physical pixels across, but the browser groups them so text stays a comfortable size. The device pixel ratio (DPR) says how many physical pixels make up one CSS pixel in each direction:

    device pixels = CSS pixels × device pixel ratio
    390 × 844 at DPR 3  →  1170 × 2532 device pixels

    That is why most phones report a viewport between roughly 360 and 430 pixels wide. Pictures look sharpest when they have about DPR times as many pixels as the space they fill.

    What the lines mean

    Viewport (CSS px)
    The page area without scrollbars. Layout is based on this.
    Window inner size
    The same area including any scrollbar.
    Visual viewport
    The part you can actually see after pinch zoom, or while the on-screen keyboard is open.
    Screen and Available screen
    The whole display, and what is left after taskbars or docks, in CSS pixels.
    Colour scheme, Reduced motion, Contrast preference
    Your system settings, as websites see them through CSS media queries.
    Primary pointer and Hover
    Whether your main input is a finger (coarse) or a mouse or trackpad (fine), and whether it can hover.

    Breakpoints

    The breakpoint list tests (min-width: …) media queries from 360px to 1920px. Media queries measure the width including the scrollbar, so on a desktop with a visible scrollbar a breakpoint can match even when the viewport figure is a few pixels narrower.

    Limits

    • Browser zoom changes the size of a CSS pixel: at 200% zoom the viewport halves and the pixel ratio doubles.
    • Some browsers round or limit what they report, to make tracking harder, so screen figures can be approximate.
    • The page can only see what the browser reports. It cannot tell the make or model of your device.

    Questions.

    Why is my viewport so much smaller than my screen resolution?

    Screen resolution counts physical pixels, but websites work in CSS pixels. On a phone with a device pixel ratio of 3, each CSS pixel is three physical pixels wide, so a screen 1170 pixels across gives a 390-pixel viewport.

    What should I send when reporting a display problem?

    Press Copy all details and paste the result into your message. It includes the viewport, screen size, pixel ratio, language, time zone and user agent, which is usually enough to reproduce a layout. Read it through first and remove any line you would rather not share.

    Why does the figure change when I zoom?

    Zooming in makes each CSS pixel bigger, so fewer of them fit across the window. Websites react to zoom just as they would to a smaller screen.

    Which breakpoints should a website use?

    There is no official list. Choose breakpoints where your own layout starts to look cramped or stretched, then test at common widths such as 360, 768, 1024 and 1440 pixels.

    What does the pixel ratio tell me about images?

    How many image pixels a sharp picture needs. A photo shown 400 CSS pixels wide on a screen with a ratio of 2 needs about 800 pixels of width to look crisp.