How to Use
- Pick a preset (9:16, 16:9, 4:5) or enter a custom ratio.
- Enter either width or height.
- Get the missing dimension instantly with a live preview.
- Copy the generated CSS
aspect-ratiocode 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-ratioCSS 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
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.
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.
Definitive Taego map for 2026. With Error Spaces removed, identify "Blue-Roof" houses for crate-tier loot and Self-AEDs. Privacy-first, forever free.
Vikendi 2026 tactical guide. Track deadly Bear Cave entrances, Lab Camp security keys, and Thermal Scope spawn zones. Avoid Polar Bears, grab loot.
Master Rondo 2026 with our 8x8 tactical map. Locate every Security Door, Keycard spawn, and Safe for maximum gold. Privacy-first & free.
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: format, validate, and fix JSON locally. Beautify/minify, highlight errors, generate TypeScript or Zod, convert to XML—private. Try now.
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.