What is Viewport Meta Tag Generator?
The viewport meta tag controls how a page scales on mobile browsers, making it one of the most important tags for responsive design. The theme-color meta tag sets the browser chrome color in mobile browsers and desktop browsers that support it. Apple touch icon link tags define the icon shown when a visitor saves the page to their iOS home screen. Together these tags form the basic mobile-presentation layer that every modern HTML page should include, but each has a specific syntax that is easy to get wrong.
Quick answer
Use the viewport meta tag to control how your page scales on mobile devices. The standard value width=device-width with initial-scale=1 works for nearly every responsive site and ensures readable text without requiring zoom gestures.
Limitations
- theme-color only affects the browser chrome on supported mobile browsers. Desktop browsers and some browser configurations ignore it entirely.
- Apple touch icon tags require an actual PNG image file at the specified path. A missing or incorrect path produces a broken icon silently on iOS.
- The viewport tag controls initial scale but does not make a non-responsive layout usable on mobile. It must be paired with a responsive design using CSS media queries.
How to use this tool
- Set the viewport width and initial scale. The standard values are width=device-width and initial-scale=1.
- Enter a theme color as a hex value, such as #ffffff for white or a color that matches your site header.
- Enter the path to your Apple touch icon file. A 180 by 180 pixel PNG is the standard size.
- Copy all generated tags and paste them into the head section of your HTML page.
What you can use it for
- Set up the mobile viewport tag for a new static HTML page before deployment.
- Add PWA-ready meta tags including theme-color and Apple touch icons for a home-screen installed experience.
- Standardize mobile meta tags across a multi-page site template so every page uses the same viewport configuration.