Skip to content

Aspect ratio calculator.

Work out a width or a height from an aspect ratio, simplify a ratio, and see the common resolutions that share it.

Aspect ratio calculator.

Loading the tool…

Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.

Get Pro

How it works

4 steps, no account. It runs in your browser and nothing is uploaded.

  1. Enter the ratio

    Type two numbers, such as 1920 and 1080 or 2.39 and 1, or pick a common ratio from the list.

  2. Read it simplified

    See the ratio in its smallest whole terms, as a decimal and by its common name.

  3. Resize

    Type a width to get the height, or a height to get the width, rounded to whole or even pixels or kept exact.

  4. Copy the CSS

    Copy the CSS aspect-ratio, the Tailwind class or the padding fallback, or press a common resolution to use it.

Pricing

Build it with Pro

The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

Questions and answers

Before you trust the result: what to know about the format, the limits, your data and the tools next to it.

4.9 out of 5 from 150+ developers

Build the product around it

Every block, template and icon, installed by your AI agent in your theme. The tools stay free.

Get Pro