Skip to content
Web & InternetLocal · Stays on device

Responsive Viewport Calculator

Convert device pixels to CSS viewport size, preview breakpoints, convert px/rem/vw and build fluid clamp() values.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
responsive-viewport-calculatorOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.

A planning and formatting aid, not a security or compliance audit. It doesn't test your live site; check every change in a staging environment and with your server or provider's documentation before deploying.

About this tool

Enter a screen's device-pixel size and pixel ratio to get its CSS viewport, which breakpoint it hits in portrait and landscape, and your current window's size and ratio. Compare against Tailwind CSS or Bootstrap 5 default breakpoints or your own.

Convert px to rem and vw, and generate a fluid clamp() value that scales a size smoothly between two viewport widths, written in rem so it respects the user's font-size setting. Everything runs in your browser: nothing you paste or type is uploaded, and no website, DNS server or API is contacted.

  1. Input

    Your code or text

    Pasted or opened from a file

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Enter the device's pixel size and ratio.

  2. 2

    Choose a breakpoint set to see where it lands.

  3. 3

    Use the converters and copy the clamp() value.

Zero-upload architecture

How to use Responsive Viewport Calculator for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Responsive Viewport Calculator

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Choose a breakpoint set to see where it lands.

  3. 3

    Get your result

    Use the converters and copy the clamp() value.

All 26 web tools
  • Local

    Screen Resolution Calculator

    Find a screen’s pixel density (PPI), aspect ratio, dot pitch and physical width and height from its resolution and diagonal.

    Open tool
  • Local

    CSS Grid Generator

    Build CSS grid layouts with track sizes, gaps and named template areas, previewed live.

    Open tool
  • Local

    Aspect Ratio Calculator

    Find the aspect ratio of any size and calculate new dimensions that keep the same proportions.

    Open tool
  • Local

    UTM Link Builder

    Build campaign-tagged links with UTM parameters, one at a time or in bulk, with tidy formatting.

    Open tool