PX to VH Converter

Convert pixels to vh (percent of viewport height).

Enter your values

Desktop ~900, phone ~800

Result

vh

5.3333vh

48px = 5.3333vh

CSS
font-size: 5.3333vh;

vh = px ÷ viewport height × 100.

1vh at common screen sizes

Viewport1vh
1080px10.8px
900px9px
768px7.68px
844px8.44px
667px6.67px

How to use PX to VH Converter

  1. Enter pixels and viewport height.
  2. The result updates instantly as you type, with no button to press.
  3. Read the formula box to see how it was calculated, then copy the result.

Features

Instant results
Results update as you type, with no Calculate button and no page reload.
Formula explained
See exactly how the answer is worked out, so you can check it or learn the method.
Private & free
Everything runs in your browser. Nothing you enter is uploaded or stored.

Frequently asked questions

What is 1vw?

1vw is 1% of the viewport (browser window) width. On a 1440px-wide screen, 1vw = 14.4px; on a 375px phone, 1vw = 3.75px.

When should I use vw or vh?

Use them for elements that should scale with the screen, like full-height hero sections (100vh) or fluid headings. Combine with clamp() to set minimum and maximum sizes.

How does the PX to VH Converter work?

It uses this method: vh = px ÷ viewport height × 100.

Is this PX to VH Converter free?

Yes. It is 100% free, needs no sign-up and works on mobile and desktop. Your numbers never leave your device.

Free, no sign-up. Your files and numbers are processed in your browser and are not uploaded.

Related tools

View all

Share this Tool

Did PX to VH Converter work well for you?