Viewport Meta Tag Builder
Configure viewport options and instantly get the correct HTML meta viewport tag for your responsive website.
Use the Viewport Meta Tag Builder
Configure Viewport
Pixels (100–2560). Common: 320, 375, 480, 768.
0.1 (zoomed out)
5.0 (zoomed in)
0.5
5.0
Warning: disabling zoom breaks accessibility. Avoid unless required.
Generated Tag
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Quick Presets
Attribute Reference
- width
- Sets the viewport width. Use
device-widthfor responsive layouts, or a fixed pixel number. - initial-scale
- Zoom level when the page first loads.
1.0means no zoom. - minimum-scale
- Smallest zoom level the user can pinch to. Defaults to
0.1if omitted. - maximum-scale
- Largest zoom level the user can pinch to. Defaults to
5.0if omitted. - user-scalable
- Whether the user can zoom.
yes(default) orno. Avoidnofor accessibility.
Copied!
Summary
Configure viewport options and instantly get the correct HTML meta viewport tag for your responsive website.
How it works
- Select the width setting — "device-width" is recommended for responsive sites.
- Set the initial-scale value (1.0 = no zoom on first load).
- Optionally configure minimum and maximum scale limits.
- Toggle the user-scalable option to allow or prevent pinch-zoom.
- Copy the generated meta tag and paste it inside your HTML <head> section.
Use cases
- Add correct viewport settings to a new HTML/CSS project.
- Prevent mobile browsers from zooming out on page load.
- Restrict or allow user pinch-to-zoom on mobile interfaces.
- Generate tags for single-page apps, landing pages, or email templates.
- Quickly look up the correct attribute names without memorizing the syntax.
- Test different scale combinations to understand their effect on mobile layout.
Frequently Asked Questions
Last updated: 2026-09-22 ·
Reviewed by Nham Vu