Utilities
Viewport calculator
A CSS viewport unit is a percentage of the viewport edge, written as vw or vh.
No file requiredDrop several to batch them into one zip. Paste works too. Nothing is uploaded.
Recent
Files you add show up here, on this device.
R runs. Esc cancels. D downloads.
0%
Ready when you are.
- Before
- —
- After
- —
How Viewport calculator works
- Enter the pixel length.
- Enter the viewport width and height.
- vw uses the width. vh uses the height. Both are shown.
vw = pixels ÷ viewport width × 100. The same length against the height is vh.
Questions
Does Viewport calculator upload the file?
No. Viewport calculator runs in this browser. Nothing is uploaded.
What does Viewport calculator produce?
vw = pixels ÷ viewport width × 100. The same length against the height is vh.
How is Viewport calculator ahead of the usual version?
4 options are on the page before you run, and Run is the R key.