Skip to content
Calculator Tools

Tech & Media · 11 calculators

Web Development Calculators

px to rem and em conversions, viewport units, aspect ratios, CSS clamp(), grid columns, breakpoints and download time.

Key web development formulas

PX to REM Converterrem = pixels ÷ root font size
REM to PX Converterpixels = rem × root font size
PX to EM Converterem = pixels ÷ parent font size
EM to PX Converterpixels = em × parent font size
Viewport Units1vw = viewport width ÷ 100 · 1vh = viewport height ÷ 100
Aspect RatioW : H = (W ÷ GCD) : (H ÷ GCD) · H = W × b ÷ a
CSS Clamppreferred = intercept + slope × viewport, clamped between the minimum and maximum
CSS Gridcolumn = (container − padding − gaps) ÷ columns
Responsive Breakpointem breakpoint = pixel breakpoint ÷ root font size
Download Timetime = file size ÷ (speed × (1 − overhead))

Web Development questions

What is the default root font size?

16px in every major browser, unless the user has changed it in their settings — which is exactly why rem is worth using.

What are the common aspect ratios?

16:9 for HD video and most monitors, 4:3 for older TVs and iPads, 21:9 for ultrawide displays, 1:1 for square social posts, 9:16 for vertical video and 3:2 for many camera sensors.

Why does my 1 TB drive show 931 GB?

The drive is 1 trillion bytes (decimal TB) but the operating system reports in binary GiB, which are 7.4% larger.