Skip to main content
Design & colorLocal in browser — nothing is uploaded

Aspect ratio calculator & sanitized SVG viewer

Solve exact simplified aspect ratios (such as 16:9 or 4:3) and scaled pixel dimensions—plus preview pasted SVG markup safely with executable scripts stripped.

Ratio & Scaled Size

16:9 → 1280×720

Sanitized SVG preview

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Defanged SVG rendering

XSS sanitization: Removes <script>, <foreignObject>, inline on* handlers, and javascript: links before rendering preview images via sandboxed image tags.

Frequently asked questions

Is it safe to inspect untrusted SVG code here?
We strip known active script vectors and render via non-interactive <img> data URIs rather than raw DOM innerHTML.
How does target width scaling work?
Enter your source ratio dimensions and a new target width to compute proportional height rounded cleanly to pixels.