Aspect Ratio Calculator & CSS Generator - TikTok/Reels 9:16

Calculate aspect ratios and missing dimensions fast. Runs locally—no uploads. Includes TikTok/Reels 9:16 presets and CSS aspect-ratio snippets. Calculate now.

:
16:9
1920px
1080px

How to Use

  1. Pick a preset (9:16, 16:9, 4:5) or enter a custom ratio.
  2. Enter either width or height.
  3. Get the missing dimension instantly with a live preview.
  4. Copy the generated CSS aspect-ratio code for your layout.

Core Features

  • TikTok/Reels (9:16): Use vertical presets to validate social video dimensions quickly.
  • Generate CSS aspect-ratio: Generate modern aspect-ratio CSS snippets instantly.
  • Calculate Missing Dimension: Compute width or height automatically while keeping the ratio.
  • Visual Preview: Preview the ratio in a responsive rectangle in real time.
  • Keep it private: Everything runs locally in your browser.

Related Tools

FIRE Calculator 2026 (Inflation Adjusted) | Retirement Gap Simulator

The 2026 FIRE Calculator (Inflation Adjusted). Simulate real purchasing power, analyze retirement savings gaps, and generate a visual wealth roadmap. One-click CSV export for your Excel or Notion finance dashboard. 100% Private, client-side calculation.

PUBG Erangel Interactive Map 2026: Secret Basements & Loot Guide

Struggling to find Erangel secret rooms? Use our 2026 interactive map to locate all 15 red-door entries, key spawns, and T3 loot heatmaps. Privacy-first & free.

PUBG Taego Secret Room Map 2026: Key Spawn & Hidden Locations

Definitive Taego map for 2026. With Error Spaces removed, identify "Blue-Roof" houses for crate-tier loot and Self-AEDs. Privacy-first, forever free.

PUBG Vikendi Map 2026: Bear Caves, Lab Camps & Secret Loot

Vikendi 2026 tactical guide. Track deadly Bear Cave entrances, Lab Camp security keys, and Thermal Scope spawn zones. Avoid Polar Bears, grab loot.

PUBG Rondo Interactive Map 2026: Security Keys & Safes Guide

Master Rondo 2026 with our 8x8 tactical map. Locate every Security Door, Keycard spawn, and Safe for maximum gold. Privacy-first & free.

Universal Image Stamper Pro: SVG & WebP Support, Lossless Annotation 2026

Struggling with blurry markups? EasyTools offers a universal stamper supporting lossless SVG scaling and high-quality WebP export. Preserve transparency and export JSON data locally.

Secure JSON Formatter & Type Generator - Local Type Gen

Secure JSON formatter: format, validate, and fix JSON locally. Beautify/minify, highlight errors, generate TypeScript or Zod, convert to XML—private. Try now.

Word Counter & Token Estimator - GPT & Gemini Cost Tool

Word counter & token estimator for GPT and Gemini. Count CJK, estimate tokens, and project API cost with your pricing—private, client-side. Try it today.

Calculation Logic

  • Formula: [ H = W \times \frac{r_H}{r_W} ] or [ W = H \times \frac{r_W}{r_H} ]
  • CSS example: [ \text{aspect-ratio}: \frac{16}{9} ]

FAQ

What is the aspect ratio for TikTok and Reels?

The standard is 9:16 (vertical). A common resolution is 1080×1920. Use the 9:16 preset to verify your dimensions.

How to use aspect-ratio in CSS?

Use aspect-ratio: 16/9;. We generate the snippet and helpful fallbacks for your layout.

Is my data safe (local/privacy)?

Yes. Calculations are local-only with no uploads or server storage.

Is it free? Can I use it for work?

It’s free and works well for creators and teams aligning video and UI dimensions.

Why do I see 1–2 pixel differences?

Some dimensions require rounding to whole pixels. We round to the nearest integer while preserving the ratio as closely as possible.