Meta & Open Graph tags with previews
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
HTMLHTMJPGPNGWEBPGIF- Saves as
HTML- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Built with
- Canvas
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- HTML to import is limited to 5 million characters (5 MB for an opened file).
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Meta Tag Generator
Meta Tag Generator writes the tags that go in a page's head: title, meta description, canonical link, robots, theme-color, Open Graph (og:title, og:description, og:image with width, height and alt, og:type, og:locale, og:site_name) and the X card type and account. As you type, it shows how the page would look as a Google result on desktop and on a phone, and as a link card on Facebook, X, LinkedIn and Slack or Discord, then gives you a ready HTML snippet to copy or download.
Google cuts titles by width on screen, not by character count, so the tool measures your text in the browser with canvas at Google's font sizes: 20 px Arial against about 600 px for desktop titles, and two lines of 14 px for descriptions. Paste the head of an existing page to load its tags into the form and get a list of problems such as a missing og:image, a relative image or canonical URL, an over-long title, or a description that appears twice.
Meta Tag Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Meta Tag Generator
- Fill in Title, Description, Canonical URL and Site name in the Fill in panel; the badges show the measured pixel width and line count.
- Under Share image, pick a local image to check its size and ratio, or enter the Image URL and click Show this image.
- Choose the Open Graph type, X card size, theme-color and the index and follow switches.
- Compare the Google and social card previews, using the chips to show one platform at a time.
- Click Copy code, or paste an existing page's head into Import and check and click Import into form to start from it.
Frequently asked questions
Does the tool load anything from the internet?
Only one thing, and only when you ask: in Image URL mode, clicking Show this image loads that address as an ordinary img element, so your browser requests it from that server like any web page image (without a referrer). It is never fetched with fetch or XHR, never loaded while you type, and the sample and imported URLs are not loaded until you click. A local image is read from your disk and is never sent anywhere.
How exact are the 600 px and two-line limits?
They are estimates. Google does not publish its truncation rules; 600 px for a 20 px Arial desktop title, two lines of 14 px for the description, and two title lines and three description lines on a 328 px phone layout are values measured by the SEO community. The tool measures your text with the fonts your own browser has, so a device without Arial measures slightly differently. Google may also rewrite titles and pick a different snippet from the page.
Which parts of the social card previews are approximated?
The rules for which tag each platform reads are followed: Facebook and LinkedIn use og:title and og:image at 1.91:1, X uses twitter:card and falls back to the og tags, the large X card shows only the title over a 2:1 image, the small card crops to a square, and Discord colours its bar with theme-color. Fonts, line clamps and card widths are close imitations, not the platforms' own code, and platforms change their layouts from time to time.
What does Import check, and does it run the pasted page?
The pasted HTML is parsed with the browser's DOMParser, which builds an inert document: scripts are not run and images in it are not loaded. The tool reads title, meta and link elements and reports a missing title, description, og:image or canonical, relative URLs, a title wider than about 600 px, a description longer than two lines, duplicated tags with their line numbers, noindex, a missing or invalid twitter:card, og tags written with name instead of property, and tags found outside the head. Input is limited to 5 million characters.
Why are there no twitter:title, twitter:description or twitter:image tags?
X reads og:title, og:description and og:image when its own tags are missing, so repeating them only adds lines that can drift apart. The snippet keeps twitter:card, which X needs to choose the card layout, and twitter:site for your account. Attribute values are escaped, so quotes, ampersands and angle brackets in your text cannot break the HTML.