← All Tools

Viewport Meta Tag Generator

Configure the HTML <meta name="viewport"> tag for mobile browsers. Control zoom, scaling, and notch safe-area behavior.

βš™οΈ Configuration

Match the browser viewport to the device's logical width.
1.0
Zoom level when the page first loads. 1.0 = no zoom.

πŸ“‹ Output

πŸ“± Device Preview

Previews below render a tiny test page inside device-sized frames using your current viewport settings. The inner page uses the same <meta> tag you're building.

iPhone SE
375Γ—667
iPhone 14
390Γ—844
Galaxy S22
360Γ—780
iPad Mini
768Γ—1024

πŸ’‘ Attribute Reference

AttributePurpose
widthSets the viewport width. device-width matches the device's logical width.
initial-scaleZoom ratio at first render. Always pair device-width with initial-scale=1.
minimum-scale / maximum-scaleZoom bounds. Setting a max hurts accessibility β€” prefer not to restrict.
user-scalableWhether users can pinch-zoom. Setting no is an accessibility issue.
viewport-fitiOS only. cover enables rendering behind the notch β€” pair with env(safe-area-inset-*).
interactive-widgetControls how mobile keyboards affect the viewport. New in Chrome 108+.
βœ“ Copied!