UtilityKit
40+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.
Aspect Ratio Helper
Convert width and height pairs into modern aspect-ratio CSS plus legacy padding hacks.
About Aspect Ratio Helper
Aspect Ratio Helper translates arbitrary width and height pairs into the modern `aspect-ratio` property while documenting the classic padding-top percentage trick for legacy embed containers. Visualize the computed ratio on sample boxes before embedding videos or responsive cards. Copy succinct snippets that pair progressive enhancement with safe fallbacks.
Why use Aspect Ratio Helper
- Eliminate math mistakes when locking 16:9 players
- Communicate ratio tokens to CMS authors
- Bridge evergreen and legacy Safari deployments
How to use Aspect Ratio Helper
- Enter natural width and height units
- Review preview dimensions
- Copy native ratio or optional padding hack
When to use Aspect Ratio Helper
- Responsive video wrappers
- Product card thumbnails
- Story aspect guards
Frequently Asked Questions
Which browsers support aspect-ratio?
All major evergreen browsers; verify obsolete targets separately.
Why padding hacks?
Old browsers ignored aspect-ratio and relied on percentage padding tricks.
Object-fit?
Pair ratio wrappers with object-fit on inner media.
Non-integer ratios?
Decimals are fine; CSS accepts fractional ratios.
Data stays local?
Yes.