Aspect Ratio Calculator
Convert between an aspect ratio and exact pixel dimensions, fit a ratio inside a bounding box, or find the largest crop that matches a target ratio — all client-side.
Converts a ratio like 16:9 or 4:5 into exact pixel dimensions at whatever base size you need, or works the other way — enter pixel dimensions and get the simplified ratio back. A quick reference for anyone specifying image or video dimensions without doing the math by hand.
How to use it
Enter a known ratio and one target dimension (e.g. "16:9, width 1920") to get the matching height, or enter exact pixel dimensions to see the simplified ratio they reduce to.
FAQ
What's this useful for? Common when prepping export dimensions for a specific platform's required ratio — social posts, video formats, or print sizes — without manually calculating the matching side.
Does it handle less common ratios, not just 16:9 and 1:1? Yes, enter any ratio, standard or custom, and it calculates dimensions the same way.
Can I go from pixels back to the simplified ratio? Yes, entering exact width and height returns the reduced ratio those dimensions represent.
More Image tools
- Barcode generatorGenerate Code128, EAN-13/8, UPC-A/E, Code39/93, ITF-14, MSI, Pharmacode, and Codabar barcodes with auto checksum, use-case presets, PNG/SVG export, rotation, and a batch mode that zips a whole list at once.
- Bare — metadata stripperSee camera, GPS, and timestamp data hiding in a JPG/PNG/WebP, then strip some or all of it.
- Base64 image encoder / decoderImage ↔ base64 data URI, both directions — batch mode, size warnings, and format presets.
- Before / after sliderGenerate a draggable before/after comparison from two images.
- Border / frame adderAdd a solid or styled border around an image.
- Color pickerSample colors from an image, extract a palette, check contrast, and generate shades & harmonies.