Meta tag generator
Enter a title, description, URL and image, and get a complete set of tags to paste into your page's code. Next to it you'll see how a link to the page will look when someone shares it on Facebook or in a message.
How the shared link will look
Code for your head section
Runs in your browser. Nothing is sent or stored. Your browser only loads the image from the URL you enter so it can show it in the preview.
How to use it
- Type the page title and description. The counters show whether they fit in what Google displays.
- Enter the full page URL. It goes into the
canonicaltag and intoog:url. - Paste the URL of the image you want to appear when the link is shared on Facebook, LinkedIn or in a messaging app.
- Copy the code and paste it into the
headsection of that page.
Quotes, the & sign and other special characters in the title are handled for you. Any field you leave empty simply won't appear in the code.
What's in the code and why
| Tag | Who uses it | What for |
|---|---|---|
title | Google, browsers | the blue title in search results and the text on the browser tab |
meta description | the gray text under the title, unless Google picks its own snippet | |
link canonical | naming the right URL when the content loads at several | |
og:title, og:description, og:image | Facebook, LinkedIn, Messenger, WhatsApp, Slack | the card with an image next to a shared link |
twitter:card | X | a large image instead of a thumbnail |
meta robots | Google and other search engines | only when the page should stay out of search results |
To see exactly how the title and description look in search results, with pixel measurements, use the SERP preview.
The most common mistakes
- The same title and description on every page. Google can't tell which page to show, and it often picks the wrong one.
- No image. A link shared on Facebook without
og:imageshows a gray box or a random image from the page, often a partner logo from the footer. - A forgotten
noindex. It's left over from building the site and quietly keeps it out of Google. If a page hasn't shown up in search for months, check its code and your robots.txt file.
Questions
What are meta tags?
head section. Visitors don't see them on the page, but Google uses them (for the title and description in search results), and so do Facebook, LinkedIn and messaging apps (for the image, title and description next to a shared link).Where do I paste this code?
<head> and </head> tags of the page. If you're on WordPress with Yoast or Rank Math, don't paste the code. Copy the title, description and image into the plugin's fields instead, and it will output the same tags. Two sets of tags on one page just makes a mess.Why is there no keywords tag?
What is a canonical URL?
canonical tag tells Google which address is the real one when the same content loads at several, for example with and without www, with and without a trailing slash, or with ad tracking parameters. On a regular page it simply points to itself.What image should I use for Open Graph?
https://. Keep the important part in the middle, because some apps crop the sides to a square.I changed the image, but Facebook still shows the old one. What now?
More free tools
SERP preview
See how your title and description look in search results, and whether Google will cut them off.
OpenURL slug generator
Turns a post title into a short, readable slug without accents or filler words. Works for a whole list at once.
OpenHeadline analyzer
Scores a headline against a short set of clear rules and ranks several versions side by side.
Open