Skip to main content
Bethemesh
Images & graphics

Aspect ratio calculator

Preserve the correct proportions by calculating a width or height from a custom or predefined aspect ratio.

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

  • 100% local
  • Instant
  • Free
  • No account
  • Works offline

Reference dimensions

Target dimension

Why use this tool?

Calculate proportional dimensions for an image, video or screen without distorting the original format. Enter a reference ratio or dimensions, then provide a new width or height.

100% local and secure

Your data stays on your device and is never sent to our servers.

Smart processing

Prepare and transform images directly in your browser without additional software.

Supported formats

Common image formats with export options provided by the tool.

Save time

Get a clean, ready-to-use result in seconds without installing software or configuring a complex workflow.

Guide

How to use this tool

  1. 1

    Set the ratio

    Enter a reference width and height, or choose a common format.

  2. 2

    Enter a target dimension

    Provide the new width or height you need.

  3. 3

    Get proportional dimensions

    The tool instantly calculates the other dimension while preserving the exact ratio.

Tips and best practices

  • Use 16:9 for most widescreen videos and displays.
  • The 1:1 format is useful for square visuals and some social posts.
  • Results are rounded to the nearest whole pixel.

Frequently asked questions

What does an aspect ratio represent?

It describes the proportion of a rectangle. Preserving it prevents an image or video from being stretched or squashed.

Can I use custom reference dimensions?

Yes. Any positive width and height can define a custom ratio.

Does the calculator modify my image?

No. It only calculates dimensions and never uploads or transforms a file.

Was this tool useful?

GuideBest practicesIntermediate

How to Optimize Images for Web Performance

Build a complete Web image optimization pipeline: dimensions, formats, compression, responsive variants, metadata, loading, caching, LCP, CLS, and measurement.

31 August 202613 minRead
GuideConcepts and technologiesBeginner

What Image Resolution Should You Choose?

Distinguish pixel dimensions, pixel density, and DPI so you can resize images for the Web or print without unnecessary loss of sharpness.

31 August 202616 minRead
GuideBest practicesBeginner

Convert a PDF to images or images to PDF

Learn what changes when PDF pages are rasterized, how resolution and image format affect quality, and when to assemble images into a PDF.

29 August 20262 minRead

Recommended workflow

Continue your processing

Discover tools that naturally fit before, after, or alongside this one.

Complementary tools

Images & graphics

Resize an image

Resize an image by setting its exact width and height before downloading the result.

100% localFeatured
Use this tool
Images & graphics

Image cropper

Select an area visually, lock an aspect ratio, and export the cropped image locally.

100% local
Use this tool
Images & graphics

Image metadata reader

Inspect image dimensions, format, size and browser-readable metadata.

100% local
Use this tool