SEO Tool
Viewport Meta Tag Generator
Viewport tag snippet for responsive pages. Use it online on EasyTools99.
Tool area
Everything runs in the browser.
Reference results
| Input | Result |
|---|---|
Library calendar on a phone | <meta name="viewport" content="width=device-width, initial-scale=1"> |
Prototype cards at 390 px | <meta name="viewport" content="width=device-width, initial-scale=1"> |
Restaurant menu at 320 px | <meta name="viewport" content="width=device-width, initial-scale=1"> |
Registration form with enlarged text | <meta name="viewport" content="width=device-width, initial-scale=1"> |
Exhibition map in landscape | <meta name="viewport" content="width=device-width, initial-scale=1"> |
Opening hours on a tablet | <meta name="viewport" content="width=device-width, initial-scale=1"> |
How it works
The generator returns a fixed meta element with the viewport set to the device width in CSS pixels and an initial scale of one. Put it in the head when the document has no viewport declaration. The setting changes how the browser lays out the page, while the stylesheet and content still determine whether the layout fits. Try a narrow screen and increased text size after adding it.
Worked examples
- A library webmaster sees a calendar rendered at a tiny scale on a phone. She adds the tag to a test copy and checks how the calendar fits. If the table still overflows, she adjusts its container before giving the page to the library staff.
- A developer starts a standalone prototype with a plain document and inserts the generated tag. At 390 CSS pixels, the test makes it easier to decide which cards should stack and which labels need more room when they wrap.
- An editor looks at the published source and finds a viewport declaration supplied by the theme. He leaves that declaration in place and checks which images or containers are unusually wide, so the investigation can focus on the elements causing the overflow.
Common mistakes
- Place the tag in the head. Pasting it into an article’s text field may display it or remove it instead of configuring the viewport.
- Check for an existing declaration before adding another line. Competing values can make the behaviour difficult to diagnose.
- Review fixed widths separately. A viewport tag does not resize a wide table or image by itself.
FAQ
Can I change the width in the generator?
This output uses device width and has no input fields. For a custom layout, test the effect of any different declaration at several widths.
Does the tag block zooming?
It sets the initial scale. The generated line contains no instruction disabling the user's ability to zoom.
Why can I still scroll sideways?
One or more elements may exceed the viewport width. Inspect tables, images and containers with fixed or minimum sizes.
