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
PX to REM Converter
Convert pixels to rem units for responsive design
Open calculatorPX to Viewport Converter
Convert px to vw, vh, vmin, vmax
Open calculatorFont Size Converter
Convert between px, pt, em, rem, % for typography
Open calculatorPixel Density Calculator
Calculate PPI and DPI
Open calculatorHEX to RGB Converter
Convert HEX to RGB color values instantly
Open calculatorColor Contrast Checker
Check WCAG contrast ratios for accessibility compliance
Open calculatorBytes to MB Converter
Convert bytes to megabytes
Open calculatorSquare Root Calculator
Calculate square roots instantly
Open calculatorSquare Footage Calculator
Calculate area in square feet
Open calculatorPixel Perfect Grid Calculator
Calculate pixel-perfect grid systems with gutters
Open calculatorPixel Alignment Checker
Check pixel alignment and detect positioning issues
Open calculatorMulti-Screen Pixel Calculator
Calculate pixel dimensions across multiple monitors
Open calculatorPixel Density Comparison
Compare PPI across different devices side-by-side
Open calculatorScreen Resolution Database
Lookup pixel dimensions for any device
Open calculatorPixel Art Grid Generator
Create pixel-perfect drawing grids
Open calculatorSprite Sheet Pixel Calculator
Optimize sprite dimensions and spacing
Open calculatorPixel Tools
Pixel-based calculations, conversions, and display tools
PX to REM Converter
Convert pixels to rem units for responsive design
Open calculatorREM to PX Converter
Convert rem units to pixels for design reference
Open calculatorPX to EM Converter
Convert pixels to em units
Open calculatorPX to Viewport Converter
Convert px to vw, vh, vmin, vmax
Open calculatorViewport to PX Converter
Convert vw, vh, vmin, vmax to px
Open calculatorPX to Percentage Converter
Convert px to % of container
Open calculatorGrid Column Calculator
Calculate grid/flex column widths
Open calculatorSpacing Calculator
Calculate margin and padding
Open calculatorGrid Layout Generator
Generate CSS Grid code visually
Open calculatorMedia Query Generator
Generate responsive breakpoints
Open calculatorPixel Perfect Grid Calculator
Calculate pixel-perfect grid systems with gutters
Open calculatorPixel Alignment Checker
Check pixel alignment and detect positioning issues
Open calculatorSubpixel Rendering Analyzer
Detect and fix subpixel rendering issues
Open calculatorPixel Snapping Calculator
Round values to nearest whole pixel
Open calculatorMulti-Screen Pixel Calculator
Calculate pixel dimensions across multiple monitors
Open calculatorPixel Density Comparison
Compare PPI across different devices side-by-side
Open calculatorScreen Resolution Database
Lookup pixel dimensions for any device
Open calculatorPixel to Physical Size Calculator
Convert pixels to cm/inches for specific displays
Open calculatorPixel to Fractional CSS Converter
Handle decimal pixel values in CSS
Open calculatorCSS Pixel Rounder
Round CSS values to whole pixels while maintaining layout
Open calculatorPixel Border Calculator
Calculate border widths for pixel-perfect designs
Open calculatorPixel Margin/Padding Calculator
Ensure spacing adds up to whole pixels
Open calculatorBaseline Pixel Calculator
Align text to pixel baseline grid
Open calculatorFont Size Pixel Optimizer
Find pixel-perfect font sizes for readability
Open calculatorLetter Spacing Pixel Calculator
Adjust letter spacing in pixel increments
Open calculatorLine Height Pixel Calculator
Ensure line heights are pixel-perfect
Open calculatorPixel Container Calculator
Calculate container dimensions for pixel-perfect layouts
Open calculatorResponsive Pixel Breakpoints
Define pixel-based media queries
Open calculatorPixel Grid Overlay Generator
Create visual grid overlays for design alignment
Open calculatorPixel Aspect Ratio Calculator
Maintain pixel-perfect aspect ratios
Open calculatoriPhone Pixel Calculator
iOS-specific pixel calculations and scaling
Open calculatorAndroid Pixel Calculator
Android density-independent pixel conversions
Open calculatorRetina Pixel Calculator
2x/3x scaling factor calculations
Open calculatorWearables Pixel Calculator
Apple Watch/Android Wear pixel dimensions
Open calculatorPixel Animation Calculator
Smooth pixel-based animation calculations
Open calculatorPixel Movement Calculator
Pixel-perfect motion path planning
Open calculatorPixel Timing Calculator
Sync animations to pixel refresh rates
Open calculatorPixel Perfect Checklist
Verify pixel-perfect design standards
Open calculatorCross-Device Pixel Tester
Check pixel rendering across devices
Open calculatorViewport Converter
Convert viewport units to pixels
Open calculatorUnit Conversion Tools
Convert between different units of measurement
Base64 Encoder/Decoder
Encode and decode Base64
Open calculatorJSON Formatter
Format and validate JSON
Open calculatorCSS Unit Reference
Guide to all CSS units
Open calculatorBox Shadow Generator
Create CSS box shadows
Open calculatorBytes to MB Converter
Convert bytes to megabytes
Open calculatorMB to Bytes Converter
Convert megabytes to bytes
Open calculatorTimestamp to Date Converter
Convert Unix timestamps to dates
Open calculatorDate to Timestamp Converter
Convert dates to Unix timestamps
Open calculatorSquare Root Calculator
Calculate square roots instantly
Open calculatorTimestamp Converter
Convert Unix timestamps to dates
Open calculatorData Unit Converter
Convert between data storage units
Open calculatorArea Calculators
Calculate area for various shapes and units
Pixel to Feet Converter
Convert pixels to feet
Open calculatorFeet to Meters Calculator
Convert feet to meters
Open calculatorMeters to Feet Conversion
Convert meters to feet
Open calculatorFeet to CM Calculator
Convert feet to centimeters
Open calculatorCM to Feet Calculator
Convert centimeters to feet and inches accurately
Open calculatorFeet to MM Calculator
Convert feet to millimeters
Open calculatorMM to Feet Calculator
Convert millimeters to feet
Open calculatorFeet to Mile Calculator
Convert feet to miles
Open calculatorMiles to Feet Calculator
Convert miles to feet
Open calculatorFeet to Yards Calculator
Convert feet to yards
Open calculatorYards to Feet Calculator
Convert yards to feet
Open calculatorSquare Footage Calculator
Calculate area in square feet
Open calculatorSquare Inch Calculator
Calculate area in square inches
Open calculatorSquare Inches to Square Feet Converter
Convert sq in to sq ft
Open calculatorSquare Feet to Square Inches Converter
Convert sq ft to sq in
Open calculatorSquare Inches to Square Meters Converter
Convert sq in to m²
Open calculatorSquare Meters to Square Inches Converter
Convert m² to sq in
Open calculatorSquare Meters to Square Feet Converter
Convert m² to sq ft
Open calculatorSquare Feet to Square Meters Converter
Convert sq ft to m²
Open calculatorSquare Feet to Square Yards Converter
Convert sq ft to sq yd
Open calculatorSquare Yard to Square Feet Converter
Convert sq yd to sq ft
Open calculatorAcres to Square Feet Converter
Convert acres to sq ft
Open calculatorSquare Feet to Acres Converter
Convert sq ft to acres
Open calculatorAcres to Hectares Converter
Convert acres to hectares
Open calculatorHectares to Acres Converter
Convert hectares to acres
Open calculatorAcres to Square Miles Converter
Convert acres to sq mi
Open calculatorSquare Miles to Acres Converter
Convert sq mi to acres
Open calculatorCircumference Calculator
Calculate circle circumference
Open calculatorSector Area Calculator
Calculate circular sector area
Open calculatorCircle Area Calculator
Calculate circle area
Open calculatorTriangle Area Calculator
Calculate triangle area
Open calculatorRectangle Area Calculator
Calculate rectangle area
Open calculatorMissing Side Calculator
Find missing triangle/rectangle sides
Open calculatorRight Triangle Calculator
Calculate right triangle properties
Open calculatorArc Length Calculator
Calculate circular arc length
Open calculatorEllipse Area Calculator
Calculate ellipse area
Open calculatorUniversal Unit Converter
Convert between all length units
Open calculatorInch Calculator
Calculate and convert inches
Open calculatorMeters to Inches Converter
Convert meters to inches
Open calculatorInches to Meters Converter
Convert inches to meters
Open calculatorPixels to Inches Converter
Convert pixels to inches for print
Open calculatorInches to Pixels Converter
Convert inches to pixels for digital design
Open calculatorInch to CM Calculator
Convert inches to centimeters
Open calculatorCM to Inch Calculator
Convert centimeters to inches
Open calculatorFeet to Inches Calculator
Convert feet to inches
Open calculatorInches to Feet Translator
Convert inches to feet
Open calculatorTenths to Inches Calculator
Convert tenths to inches
Open calculatorInches to Tenths Calculator
Convert inches to tenths
Open calculatorMM to Inches Calculator
Convert millimeters to inches
Open calculatorInches to MM Calculator
Convert inches to millimeters
Open calculatorTypography
Font size, line height, and text scaling tools
Font Size Converter
Convert between px, pt, em, rem, % for typography
Open calculatorLine Height Calculator
Calculate optimal line height
Open calculatorModular Scale Generator
Generate harmonious type scales
Open calculatorLetter Spacing Calculator
Calculate letter spacing adjustments
Open calculatorWord Spacing Calculator
Calculate word spacing optimization
Open calculatorText Overflow Calculator
Calculate text overflow with ellipsis
Open calculatorImage & Graphics
Image size estimation, pixel density, and graphics tools
Pixel Density Calculator
Calculate PPI and DPI
Open calculatorImage Size Estimator
Estimate image file sizes
Open calculatorAspect Ratio Calculator
Calculate and maintain aspect ratios
Open calculatorFavicon Size Guide
Favicon sizes for all platforms
Open calculatorPixel Art Grid Generator
Create pixel-perfect drawing grids
Open calculatorSprite Sheet Pixel Calculator
Optimize sprite dimensions and spacing
Open calculatorPixel Color Sampler
Extract hex/RGB values from pixel coordinates
Open calculatorPixel Dithering Calculator
Calculate dithering patterns for reduced color palettes
Open calculatorPixel Stretch Calculator
Calculate pixel distortion when scaling images
Open calculatorPixels Calculator
Calculate pixels and megapixels from dimensions
Open calculatoreDPI Calculator
Calculate gaming mouse eDPI sensitivity
Open calculatorMegapixel Calculator
Convert megapixels to dimensions and print sizes
Open calculatorScreen Size Calculator
Calculate screen dimensions from diagonal size
Open calculatorPixel Pitch Calculator
Calculate pixel pitch for display quality
Open calculatorRetina Display Calculator
Calculate Retina display requirements
Open calculatorDPI Calculator
Calculate DPI for print and scan quality
Open calculatorPPI Calculator
Calculate PPI for screens and images
Open calculatorPixel Ratio Calculator
Calculate device pixel ratios (2x, 3x displays)
Open calculatorSprite Sheet Calculator
Optimize sprite dimensions
Open calculatorImage Resolution Calculator
Print vs web resolution calculator
Open calculatorPixel Density Reference
Pixel density reference guide
Open calculatorColors
Color conversion, contrast checking, and palette tools
HEX to RGB Converter
Convert HEX to RGB color values instantly
Open calculatorRGB to HEX Converter
Convert RGB to HEX color values for CSS
Open calculatorHEX to HSL Converter
Convert HEX to HSL color values
Open calculatorHSL to HEX Converter
Convert HSL to HEX color codes
Open calculatorRGB to HSL Converter
Convert RGB to HSL color values
Open calculatorHSL to RGB Converter
Convert HSL to RGB color values
Open calculatorColor Contrast Checker
Check WCAG contrast ratios for accessibility compliance
Open calculatorColor Converter
Convert between HEX, RGB, HSL color formats
Open calculatorCSS Gradient Generator
Create CSS gradients visually
Open calculatorThis 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
- Browse the categories above or use the search bar on this page to find a specific calculator by name or keyword.
- Click any calculator card to open its dedicated page with input fields and instant results.
- Enter your values in the input fields. Results update automatically as you type, with no submit button required.
- Copy the result to your clipboard using the copy button, or paste it directly into your CSS, design tool, or documentation.
- 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
- WCAG 2.2 Official Recommendation - W3C accessibility guidelines covering contrast ratios, target sizes, and focus indicators
- MDN: CSS Values and Units - Reference for px, rem, em, vw, vh, and all other CSS length units
- MDN: Container Queries - Documentation on container query units (cqw, cqh, cqi) for component-level responsive design
- web.dev: Viewport Units Guide - Google's guidance on using vw, vh, dvh, svh, and lvh units for responsive layouts
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.
