Embed Ratio Calculator
Choose a ratio and a width, and the tool works out the height. Or type a width and a height, and the tool names their ratio. Each way writes the size for your embed code.
Work out
Ratio16:9 suits most video, such as YouTube and Panopto. 16:10 suits a recording of a whole laptop screen, such as a MacBook screen. 4:3 suits older video and slides. 9:16 suits vertical video, such as YouTube Shorts and phone recordings.
The HTML element keeps this width on every screen, unless your platform shrinks it. Choose a width that fits the smallest screen you expect. 320 fits most phones held upright. 560 and 640 fit most laptops and a tablet held upright. On a phone, they can run past the edge of the page. 720 and 800 need a wide page on a large screen. For 9:16, the height matters more. 315 gives a height of 560, which fits most laptop screens.
pixels
pixels
Size attributes
Paste the size into theiframe tag of your embed code, in place of the old width and height. YouTube and Panopto embed codes give the size as width and height attributes. A tag can have only one style attribute. If the tag has one already, put the width and height inside it.
Format
These dimensions give the HTML element a fixed size, so it may not be responsive. Check your page on a small screen before you publish it.
Preview
The preview draws the element and a phone's screen to the same scale. 375 pixels is a common phone width. Most phones are 360 to 430 pixels wide, and the page's margins take some of that width.
A fixed size does not shrink, so a part wider than the screen can run off the side.