Free Online Calculators
Small calculators for the numbers that come up in web and design work: percentages, aspect ratios, units, transparency and CSS specificity.
All calculators
Percentage Calculator
Three calculation modes: X% of Y, X is what % of Y, and % change between two numbers. Instant results with formula explanation.
NewUnit Converter
Convert between units of length, weight, temperature, speed, and area. Instant bidirectional conversion with common unit presets.
NewAspect Ratio Calculator
Calculate and simplify aspect ratios from width and height. Scale dimensions while locking ratio. Common ratios reference table.
NewCSS Specificity Calculator
Calculate the specificity of any CSS selector. Breaks down IDs, classes, attributes, pseudo-classes, elements, and pseudo-elements. Compare two selectors.
NewColor Opacity Calculator
Pick a HEX color and an opacity level to get the equivalent rgba(), 8-digit hex (#RRGGBBAA), and CSS custom property. Live color swatch.
What each calculator is for
- Percentage Calculator โ what percent one number is of another, percentage change, and increases or discounts.
- Aspect Ratio Calculator โ find the missing width or height for 16:9, 4:3 or any ratio, e.g. when resizing video or images.
- Unit Converter โ length, weight, area, volume, temperature and more, using the exact definitions of each unit.
- Color Opacity Calculator โ turn a color and an opacity into
rgba()or 8-digit HEX. - CSS Specificity Calculator โ see why one CSS rule beats another, following the Selectors Level 4 rules.
How they run
Every calculation happens in your browser as you type; nothing is sent to a server. Results are rounded for display only โ check each tool's notes for the precision it shows.