Web & CSS Calculators

Developer-focused calculators for CSS clamp values, flexbox gaps, and other web design math.

19 calculators

Animation Timing Calculator

Generate CSS cubic-bezier timing functions from control points or preset easing curves.

Aspect Ratio Calculator

Calculate and simplify aspect ratios from width and height, or scale dimensions to a target ratio.

Border Radius Generator

Generate CSS border-radius with individual corner control, live preview, and shorthand output.

Box Shadow Generator

Generate CSS box-shadow values with a live preview and one-click copy.

Color Contrast Checker

Check WCAG 2.1 color contrast ratios between foreground and background hex colors.

CSS Clamp Calculator

Generate CSS clamp() values for fluid typography and spacing between two viewport widths.

CSS Gradient Generator

Generate linear and radial CSS gradient declarations with a live preview.

CSS Grid Calculator

Calculate CSS Grid column widths and generate grid-template-columns CSS from container width, columns, and gap.

CSS Specificity Calculator

Calculate the specificity of any CSS selector and see the (a, b, c) breakdown.

EM to PX Converter

Convert between em and px CSS units based on any parent font size.

Flexbox Gap Calculator

Calculate item widths for flexbox layouts given container width, number of items, and gap size.

Image File Size Estimator

Estimate image file size from dimensions, color depth, and format with compression ratios for JPEG, PNG, WebP, and more.

Image Resize Calculator

Calculate new image dimensions while maintaining aspect ratio when resizing by width, height, or percentage.

Line Height Calculator

Convert CSS line height between px, em, and unitless ratio, and generate ready-to-use CSS.

Media Query Calculator

Generate CSS media query syntax from width, height, and orientation constraints.

Page Weight Calculator

Estimate web page load times across different connection speeds from page size in KB or MB.

PX to REM Converter

Convert between pixel (px) and rem CSS units based on any root font size.

Type Scale Calculator

Generate a modular type scale with CSS custom properties from a base size and ratio.

Viewport Unit Calculator

Convert between px, vw, vh, vmin, and vmax CSS viewport units for any screen size.