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.

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.
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.
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.
8000000000 bits ÷ (100000000 bits/s × 0.8)
Transfer time
Estimate transfer duration with explicit bit/byte units and effective throughput.
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.
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.
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.
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.
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.
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.
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.
width ÷ GCD(width,height) : height ÷ GCD(width,height)
Aspect ratios
Reduce image dimensions, solve a scaled height, and compare contain/crop results.
Physical inches = pixels ÷ 300; convert inches to in
Pixels & print size
Convert pixels and physical print dimensions using an explicit pixels-per-inch value.
√(2560² + 1440²) ÷ 27
Display pixel density
Calculate diagonal pixels, PPI and physical dimensions from a screen diagonal.
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.
(lighter relative luminance + 0.05) / (darker relative luminance + 0.05)
Color contrast
Calculate WCAG sRGB relative-luminance contrast after explicitly compositing alpha colors.
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.