Viewport Resizer
Test responsive layouts at the exact size. Pick a device preset and Safari resizes its window so the page viewport matches it, to the pixel.

The preset list in the Safari toolbar

Click the ruler in the toolbar to see the current viewport size and your presets. Click a preset and Safari resizes its window so the page is exactly that size, then keeps the window centered on your screen.
Creating a new preset

Add your own devices with a name, a width and a height, or start from the current viewport. Edit or delete any preset, including the built-in ones, and restore the defaults whenever you want.
Exact Viewport Size
Custom Presets
iCloud Sync
No Data Collected
Common questions
Which Macs are supported?
Viewport Resizer requires macOS 27 or later and works in Safari.
How do I turn on the extension?
Open the Viewport Resizer app once, then turn it on in Safari > Settings > Extensions. The ruler icon appears in the Safari toolbar.
Why the viewport and not the window?
The window size includes the toolbar, tabs and sidebar, which change from one setup to another. Viewport Resizer measures the page itself and adjusts the window until the page has the size you asked for.
Can I use my own presets?
Yes. A few popular devices are included to get started. Add, edit or delete presets freely, they sync across your Macs through your own iCloud account.
Does the extension read the pages I visit?
No. It only measures the size of the current tab when you open it from the toolbar. Nothing is collected or sent anywhere.