Everyday tools ↗

EVERYDAY TOOLS / Digital & media maths

Digital & media maths.

16 focused tools with clear inputs, local results and the working shown. Choose the task that matches what you need to do.

Digital & media maths illustrated in walnut, ivory and brass
01 / Digital & media maths
Uncompressed pixel bytes8,294,400 bytes

row bytes = ceil(width × channels × bits/8/alignment) × alignment; bytes = row bytes × height

Uncompressed image size

Estimate raw raster storage from dimensions, channel count, sample depth and optional row alignment.

LIVE CALCULATION
02 / Digital & media maths
Estimated file size125.3376 MB

MB = (video Mbps × 1,000,000 + audio kbps × 1,000) × seconds ÷ 8 × (1+overhead) ÷ 1,000,000

Video bitrate & file size

Estimate file size from video/audio bitrates, or solve the video bitrate for a target size.

LIVE CALCULATION
03 / Digital & media maths
PCM payload size34,560,000 bytes

frames = round(duration × sample rate); bytes = frames × channels × storage bits/8

PCM audio file size

Compute uncompressed PCM payload size and nominal bitrate without guessing compressed audio size.

LIVE CALCULATION
04 / Digital & media maths
Estimated transfer time100 seconds

8000000000 bits ÷ (100000000 bits/s × 0.8)

Transfer time

Estimate transfer duration with explicit bit/byte units and effective throughput.

LIVE CALCULATION
05 / Digital & media maths
Estimated transfer charge208.5

Sum(GB used in each cumulative tier × that tier’s supplied price)

Data transfer cost

Apply cumulative user-entered data transfer tiers without assuming any provider’s current pricing.

LIVE CALCULATION
06 / Digital & media maths
Estimated total storage budget285.5

Tiered average GB × months + operations/1000 × operation price + total egress GB × egress rate

Cloud storage budget

Estimate retained storage, operations and transfer costs using supplied tier prices and request fees.

LIVE CALCULATION
07 / Digital & media maths
Estimated concurrent streams90

floor(link Mbps × usable share ÷ [stream Mbps × (1+overhead)])

Concurrent stream capacity

Estimate whole concurrent streams from link capacity, reserved headroom and per-stream bitrate.

LIVE CALCULATION
08 / Digital & media maths
Timecode00:01:00;02

Drop 2 (29.97) or 4 (59.94) labels each minute except every tenth minute; frame media is never removed.

Frames & timecode

Convert exact frame counts and SMPTE-style non-drop/drop timecodes at common rational frame rates.

LIVE CALCULATION
09 / Digital & media maths
IPv4 network192.168.1.0/24

Network = address AND subnet mask; address count = 2^(32−prefix)

IPv4 subnets

Find network, broadcast, mask and conventional usable-host ranges including /31 point-to-point links.

LIVE CALCULATION
10 / Digital & media maths
IPv6 network2001:db8:1234:5678::/64

Network = address with final (128−prefix) bits cleared; addresses = 2^(128−prefix)

IPv6 subnets

Perform exact 128-bit IPv6 prefix and address-range arithmetic using BigInt.

LIVE CALCULATION
11 / Digital & media maths
Exact aggregated networks192.168.0.0/24

Merge overlapping/adjacent integer ranges, then greedily emit aligned power-of-two blocks.

CIDR aggregation

Find an exact minimal CIDR cover of supplied IPv4 or IPv6 networks without filling address gaps.

LIVE CALCULATION
12 / Digital & media maths
Reduced aspect ratio16:9

width ÷ GCD(width,height) : height ÷ GCD(width,height)

Aspect ratios

Reduce image dimensions, solve a scaled height, and compare contain/crop results.

LIVE CALCULATION
13 / Digital & media maths
Converted dimensions10 × 6.6666666667

Physical inches = pixels ÷ 300; convert inches to in

Pixels & print size

Convert pixels and physical print dimensions using an explicit pixels-per-inch value.

LIVE CALCULATION
14 / Digital & media maths
Pixel density108.7855393 PPI

√(2560² + 1440²) ÷ 27

Display pixel density

Calculate diagonal pixels, PPI and physical dimensions from a screen diagonal.

LIVE CALCULATION
15 / Digital & media maths
CSS fluid sizeclamp(1rem, 0.714286rem + 1.428571vw, 2rem)

font = minimum font + (maxFont−minFont) × (viewport−minViewport)/(maxViewport−minViewport)

Fluid CSS type scale

Generate a CSS clamp interpolation between viewport and pixel font-size endpoints.

LIVE CALCULATION
16 / Digital & media maths
WCAG contrast ratio13.71802731 :1

(lighter relative luminance + 0.05) / (darker relative luminance + 0.05)

Color contrast

Calculate WCAG sRGB relative-luminance contrast after explicitly compositing alpha colors.

LIVE CALCULATION

Make the
assumptions yours.

Read the labels, units and example on each page before using a result. Change one value at a time to compare a scenario. Inputs stay in this browser; no account is required.