Images Tool Box LogoImages Tool Box

Calculators

Image, Pixel and CSS Calculators

Use these calculators for image dimensions, pixel density, responsive CSS units, color conversion, screen sizing, typography, print sizing, and related design math.

Popular Calculators

The most used calculators by our community

Pixel Tools

Pixel-based calculations, conversions, and display tools

PX to REM Converter

Convert pixels to rem units for responsive design

Open calculator

REM to PX Converter

Convert rem units to pixels for design reference

Open calculator

PX to EM Converter

Convert pixels to em units

Open calculator

PX to Viewport Converter

Convert px to vw, vh, vmin, vmax

Open calculator

Viewport to PX Converter

Convert vw, vh, vmin, vmax to px

Open calculator

PX to Percentage Converter

Convert px to % of container

Open calculator

Grid Column Calculator

Calculate grid/flex column widths

Open calculator

Spacing Calculator

Calculate margin and padding

Open calculator

Grid Layout Generator

Generate CSS Grid code visually

Open calculator

Media Query Generator

Generate responsive breakpoints

Open calculator

Pixel Perfect Grid Calculator

Calculate pixel-perfect grid systems with gutters

Open calculator

Pixel Alignment Checker

Check pixel alignment and detect positioning issues

Open calculator

Subpixel Rendering Analyzer

Detect and fix subpixel rendering issues

Open calculator

Pixel Snapping Calculator

Round values to nearest whole pixel

Open calculator

Multi-Screen Pixel Calculator

Calculate pixel dimensions across multiple monitors

Open calculator

Pixel Density Comparison

Compare PPI across different devices side-by-side

Open calculator

Screen Resolution Database

Lookup pixel dimensions for any device

Open calculator

Pixel to Physical Size Calculator

Convert pixels to cm/inches for specific displays

Open calculator

Pixel to Fractional CSS Converter

Handle decimal pixel values in CSS

Open calculator

CSS Pixel Rounder

Round CSS values to whole pixels while maintaining layout

Open calculator

Pixel Border Calculator

Calculate border widths for pixel-perfect designs

Open calculator

Pixel Margin/Padding Calculator

Ensure spacing adds up to whole pixels

Open calculator

Baseline Pixel Calculator

Align text to pixel baseline grid

Open calculator

Font Size Pixel Optimizer

Find pixel-perfect font sizes for readability

Open calculator

Letter Spacing Pixel Calculator

Adjust letter spacing in pixel increments

Open calculator

Line Height Pixel Calculator

Ensure line heights are pixel-perfect

Open calculator

Pixel Container Calculator

Calculate container dimensions for pixel-perfect layouts

Open calculator

Responsive Pixel Breakpoints

Define pixel-based media queries

Open calculator

Pixel Grid Overlay Generator

Create visual grid overlays for design alignment

Open calculator

Pixel Aspect Ratio Calculator

Maintain pixel-perfect aspect ratios

Open calculator

iPhone Pixel Calculator

iOS-specific pixel calculations and scaling

Open calculator

Android Pixel Calculator

Android density-independent pixel conversions

Open calculator

Retina Pixel Calculator

2x/3x scaling factor calculations

Open calculator

Wearables Pixel Calculator

Apple Watch/Android Wear pixel dimensions

Open calculator

Pixel Animation Calculator

Smooth pixel-based animation calculations

Open calculator

Pixel Movement Calculator

Pixel-perfect motion path planning

Open calculator

Pixel Timing Calculator

Sync animations to pixel refresh rates

Open calculator

Pixel Perfect Checklist

Verify pixel-perfect design standards

Open calculator

Cross-Device Pixel Tester

Check pixel rendering across devices

Open calculator

Viewport Converter

Convert viewport units to pixels

Open calculator

Unit Conversion Tools

Convert between different units of measurement

Area Calculators

Calculate area for various shapes and units

Pixel to Feet Converter

Convert pixels to feet

Open calculator

Feet to Meters Calculator

Convert feet to meters

Open calculator

Meters to Feet Conversion

Convert meters to feet

Open calculator

Feet to CM Calculator

Convert feet to centimeters

Open calculator

CM to Feet Calculator

Convert centimeters to feet and inches accurately

Open calculator

Feet to MM Calculator

Convert feet to millimeters

Open calculator

MM to Feet Calculator

Convert millimeters to feet

Open calculator

Feet to Mile Calculator

Convert feet to miles

Open calculator

Miles to Feet Calculator

Convert miles to feet

Open calculator

Feet to Yards Calculator

Convert feet to yards

Open calculator

Yards to Feet Calculator

Convert yards to feet

Open calculator

Square Footage Calculator

Calculate area in square feet

Open calculator

Square Inch Calculator

Calculate area in square inches

Open calculator

Square Inches to Square Feet Converter

Convert sq in to sq ft

Open calculator

Square Feet to Square Inches Converter

Convert sq ft to sq in

Open calculator

Square Inches to Square Meters Converter

Convert sq in to m²

Open calculator

Square Meters to Square Inches Converter

Convert m² to sq in

Open calculator

Square Meters to Square Feet Converter

Convert m² to sq ft

Open calculator

Square Feet to Square Meters Converter

Convert sq ft to m²

Open calculator

Square Feet to Square Yards Converter

Convert sq ft to sq yd

Open calculator

Square Yard to Square Feet Converter

Convert sq yd to sq ft

Open calculator

Acres to Square Feet Converter

Convert acres to sq ft

Open calculator

Square Feet to Acres Converter

Convert sq ft to acres

Open calculator

Acres to Hectares Converter

Convert acres to hectares

Open calculator

Hectares to Acres Converter

Convert hectares to acres

Open calculator

Acres to Square Miles Converter

Convert acres to sq mi

Open calculator

Square Miles to Acres Converter

Convert sq mi to acres

Open calculator

Circumference Calculator

Calculate circle circumference

Open calculator

Sector Area Calculator

Calculate circular sector area

Open calculator

Circle Area Calculator

Calculate circle area

Open calculator

Triangle Area Calculator

Calculate triangle area

Open calculator

Rectangle Area Calculator

Calculate rectangle area

Open calculator

Missing Side Calculator

Find missing triangle/rectangle sides

Open calculator

Right Triangle Calculator

Calculate right triangle properties

Open calculator

Arc Length Calculator

Calculate circular arc length

Open calculator

Ellipse Area Calculator

Calculate ellipse area

Open calculator

Universal Unit Converter

Convert between all length units

Open calculator

Inch Calculator

Calculate and convert inches

Open calculator

Meters to Inches Converter

Convert meters to inches

Open calculator

Inches to Meters Converter

Convert inches to meters

Open calculator

Pixels to Inches Converter

Convert pixels to inches for print

Open calculator

Inches to Pixels Converter

Convert inches to pixels for digital design

Open calculator

Inch to CM Calculator

Convert inches to centimeters

Open calculator

CM to Inch Calculator

Convert centimeters to inches

Open calculator

Feet to Inches Calculator

Convert feet to inches

Open calculator

Inches to Feet Translator

Convert inches to feet

Open calculator

Tenths to Inches Calculator

Convert tenths to inches

Open calculator

Inches to Tenths Calculator

Convert inches to tenths

Open calculator

MM to Inches Calculator

Convert millimeters to inches

Open calculator

Inches to MM Calculator

Convert inches to millimeters

Open calculator

Typography

Font size, line height, and text scaling tools

Image & Graphics

Image size estimation, pixel density, and graphics tools

Pixel Density Calculator

Calculate PPI and DPI

Open calculator

Image Size Estimator

Estimate image file sizes

Open calculator

Aspect Ratio Calculator

Calculate and maintain aspect ratios

Open calculator

Favicon Size Guide

Favicon sizes for all platforms

Open calculator

Pixel Art Grid Generator

Create pixel-perfect drawing grids

Open calculator

Sprite Sheet Pixel Calculator

Optimize sprite dimensions and spacing

Open calculator

Pixel Color Sampler

Extract hex/RGB values from pixel coordinates

Open calculator

Pixel Dithering Calculator

Calculate dithering patterns for reduced color palettes

Open calculator

Pixel Stretch Calculator

Calculate pixel distortion when scaling images

Open calculator

Pixels Calculator

Calculate pixels and megapixels from dimensions

Open calculator

eDPI Calculator

Calculate gaming mouse eDPI sensitivity

Open calculator

Megapixel Calculator

Convert megapixels to dimensions and print sizes

Open calculator

Screen Size Calculator

Calculate screen dimensions from diagonal size

Open calculator

Pixel Pitch Calculator

Calculate pixel pitch for display quality

Open calculator

Retina Display Calculator

Calculate Retina display requirements

Open calculator

DPI Calculator

Calculate DPI for print and scan quality

Open calculator

PPI Calculator

Calculate PPI for screens and images

Open calculator

Pixel Ratio Calculator

Calculate device pixel ratios (2x, 3x displays)

Open calculator

Sprite Sheet Calculator

Optimize sprite dimensions

Open calculator

Image Resolution Calculator

Print vs web resolution calculator

Open calculator

Pixel Density Reference

Pixel density reference guide

Open calculator

Colors

Color conversion, contrast checking, and palette tools

This page collects 140+ free calculators for web developers, designers, and anyone working with digital images. The tools cover CSS unit conversion, pixel density, color format conversion, typography scaling, aspect ratio calculations, area measurements, and responsive layout math. Every calculator runs in your browser with no installation or account required.

If you have ever needed to convert pixels to rem for an accessible font size, check WCAG color contrast ratios before shipping a design, or calculate the PPI of a display to decide what image resolution to serve, these calculators handle the math so you do not have to look up formulas or open a spreadsheet.

According to the W3C WCAG 2.2 recommendation, accessible web content requires specific contrast ratios, resizable text, and target sizes for interactive elements. Several calculators on this page directly support compliance with those standards, including the contrast checker, font size converter, and target size verifier.

Calculator Categories

Pixel Tools

Convert between CSS units like pixels, rem, em, viewport units (vw, vh, vmin, vmax), and percentages. Includes grid column calculators, spacing tools, media query generators, and pixel-perfect layout validators. These are the most frequently used calculators on the site, particularly the PX to REM converter which accounts for a large portion of daily traffic. The PX to Viewport converter helps with fluid responsive layouts, while the grid layout generator produces ready-to-paste CSS Grid code.

Unit Conversion Tools

Convert between units of length, data size, temperature, and mathematical values. Includes bytes to megabytes, inches to centimeters, feet to yards, and square root calculators. These tools serve developers who need quick conversions during build planning, file size estimation, or documentation work.

Area Calculators

Calculate the area of squares, rectangles, circles, triangles, and other shapes. Useful for flooring estimates, property measurements, print material sizing, and real estate calculations. The square footage calculator is particularly popular among contractors and homeowners planning renovation projects.

Typography

Font size conversion between px, pt, em, rem, and percentages. Includes line height calculators and modular scale generators for building typographic systems. The font size converter is one of the most used tools in this category, especially among designers transitioning from print (points) to web (pixels and rem).

Image and Graphics

Pixel density (PPI) calculators, image file size estimators, aspect ratio calculators, favicon size guides, pixel art grid generators, sprite sheet optimizers, and color samplers. These tools help with image preparation for web, print, and game development. The aspect ratio calculator is commonly used for resizing images and videos without distortion.

Colors

Convert between HEX, RGB, HSL, and other color formats. Check WCAG contrast ratios for accessibility compliance. Generate CSS gradients. The HEX to RGB converter and contrast checker are the two most used color tools, particularly among frontend developers implementing accessible design systems.

How to Use These Calculators

  1. Browse the categories above or use the search bar on this page to find a specific calculator by name or keyword.
  2. Click any calculator card to open its dedicated page with input fields and instant results.
  3. Enter your values in the input fields. Results update automatically as you type, with no submit button required.
  4. Copy the result to your clipboard using the copy button, or paste it directly into your CSS, design tool, or documentation.
  5. Use the category filter buttons to narrow down to a specific group of calculators if you know which category you need.

Practical Examples

Building an Accessible Type System

A frontend developer named Sarah is building a design system for a healthcare application that must meet WCAG 2.2 AA compliance. She starts with the PX to REM converter to set her base font size at 1rem (16px) and scales her heading sizes using the modular scale generator with a 1.25 ratio. Her h1 comes out at 2.44rem (39px), h2 at 1.95rem (31px), and body text at 1rem (16px). She then uses the line height calculator to set body text line height at 1.5 (24px) for readability. Finally, she runs her color palette through the contrast checker and discovers her secondary gray (#767676) on white only achieves 4.54:1 contrast, barely passing the 4.5:1 threshold for AA. She darkens it to #595959 to achieve a safer 7:1 ratio for AAA compliance.

Preparing Images for a Retina Display Portfolio

A photographer named James is building an online portfolio and wants his images to look sharp on Retina displays. He uses the pixel density calculator to determine that his MacBook Pro 16 has a PPI of 254, meaning he needs images at 2x his display CSS dimensions. His portfolio displays images at 1200px wide in CSS, so he exports at 2400px. He then uses the aspect ratio calculator to maintain his 3:2 photo ratio at that width (2400x1600), and the image size estimator to verify that WebP files at that resolution will average 180KB each, keeping his portfolio page under 2MB total.

Responsive Layout for a SaaS Dashboard

A product engineer named Mei is building a dashboard that needs to work on a 1366x768 laptop, a 1920x1080 desktop, and a 390x844 iPhone. She uses the PX to Viewport converter to set her sidebar width at 240px (17.5vw on a 1366px screen), then switches to the grid column calculator to plan a 12-column grid with 16px gaps for her main content area. For her mobile breakpoint, she uses the media query generator to produce breakpoints at 640px, 768px, and 1024px. She verifies her touch target sizes meet the WCAG 2.2 minimum of 24x24 CSS pixels using the target size calculator.

Color Palette for a Brand Identity

A brand designer named Marcus is developing a color system for a fintech startup. He starts with a primary brand color (#0066CC) and uses the HEX to RGB converter to get RGB values (0, 102, 204) for his design tool. He then converts to HSL (210, 100%, 40%) using the HEX to HSL converter to create tints and shades by adjusting the lightness. He generates a complementary palette and tests every text-on-background combination through the contrast checker. His primary blue on white passes at 5.3:1 for AA, but his light blue tint (#6699CC) on white only achieves 2.8:1, failing AA. He adjusts the tint to #336699, which passes at 4.6:1.

Why Use These Calculators

  • Instant results with no page reloads or submit buttons, updated as you type
  • 140+ tools across 6 categories covering the most common design and development math
  • All calculations run client-side in your browser, so your data never leaves your device
  • No account, no installation, no watermarks, no usage limits
  • Mobile-responsive interfaces that work on phones, tablets, and desktops
  • Direct integration with the image tools on the site, so you can calculate dimensions and then process images in the same workflow
  • Several calculators directly support WCAG 2.2 accessibility compliance work

Tips for Getting the Most Out of These Calculators

  • Bookmark individual calculator pages if you use them daily. Each calculator has its own URL that you can save or share with your team.
  • Use REM instead of PX for font sizes in your CSS. The PX to REM converter makes this conversion trivial, and it ensures your typography scales with user browser font size preferences.
  • When checking contrast ratios, test your actual rendered colors, not your design tool colors. CSS color rendering can differ slightly from Figma or Sketch exports due to color profile differences.
  • For viewport unit calculations, remember that mobile browsers handle 100vh differently than desktop browsers. Use dvh (dynamic viewport height) instead of vh for full-screen mobile layouts to avoid content being hidden behind browser chrome.
  • When calculating PPI, measure your screen diagonal physically rather than relying on the manufacturer specification. Listed sizes often include bezel, which can throw off the calculation by 1 to 2 percent.
  • Use the search bar on this page to find calculators by keyword. Searching "rem" will surface all rem-related converters, the font size converter, and the modular scale generator.

Frequently Asked Questions

Related Image Tools

These calculators pair well with the image processing tools on this site. After calculating the right dimensions, pixel density, or color values, use these tools to actually process your images:

References and Further Reading

These calculators exist to remove the friction from common design and development math. Whether you are converting units for a responsive layout, checking contrast ratios for accessibility compliance, calculating pixel density for image preparation, or sizing a grid for a dashboard, the tools on this page give you instant answers without a spreadsheet or a search engine query.

The most used calculators are the PX to REM converter, HEX to RGB converter, and contrast checker. If you are not sure where to start, those three cover the most frequent needs. For image processing tasks that go beyond calculation, explore the full image tools catalog or try the Workflow Builder to chain multiple tools into a pipeline.

Calculator accuracy verified against manual computations and cross-referenced with MDN Web Docs specifications for CSS unit definitions. Display PPI values sourced from manufacturer specifications for devices listed in the device resolution database.

Last updated: July 2026.