ToolsHub4u

Write the head tags once and see the search preview

Fill in the page details and the generator writes the title, description, robots, canonical, Open Graph and Twitter tags, with a search preview and length checks.

  • Search preview
  • Open Graph
  • Copy-ready HTML
Ready SEO & Web
1Enter
2Adjust
3Copy result

Meta Tag Generator

1

Page details

Aim for 30 to 60 characters. Google truncates by pixel width, so the end may not show.

Aim for 70 to 160 characters. It is a suggestion, not a ranking factor, and Google may rewrite it.

No data yet Live
2

Head tags

Built 14 head tags

Tags generated

14

ToolsHub4utoolshub4u.com/tools/seo-tools/meta-tag-generator.html

Meta Tag Generator: Title, OG and Twitter Tags

Build a title, meta description, canonical, robots, Open Graph and Twitter card tags, with a live search preview and length checks.

Paste inside <head>

  • Title is 46 charactersA comfortable length for most search results.
  • Description is 131 charactersWithin the usual display range.
  • Canonical URL is absoluteThe canonical should be the full https URL of the preferred version of the page.
  • Social image is an absolute URLOpen Graph images should be a full https URL, usually at least 1200 by 630 pixels.
  • Robots: index,followThe page can be indexed and its links followed.
Title chars
46
Description chars
131
Tags
14
Robots
index,follow

Google may rewrite the title and description, and social platforms cache the preview. The tag block is a starting point; check the live page after publishing.

This page writes the block of tags that belongs inside <head>. You enter a title, a description and a canonical URL, and it produces the title element, the meta description, a robots directive, the Open Graph tags and the Twitter card tags, with a search preview beside them.

It is a formatter with a length check, not a ranking tool. The tags are the ones a page needs to describe itself; whether Google uses your title or rewrites it is a separate question, and the page says so in its note.

The tags it writes

A full run produces 15 lines. The first four are the title, the meta description, the robots directive and the canonical link. The next six are Open Graph: og:type, og:title, og:description, og:url, og:site_name and og:image. The last five are the Twitter card: twitter:card, twitter:title, twitter:description, twitter:image and twitter:site.

Each group is conditional. Clear the URL and the canonical and og:url disappear. Clear the site name and og:site_name goes. Turn off both social switches, clear the URL, and the block drops to three tags: title, description and robots. That is the correct output for a page that is not ready to be shared or indexed.

The Twitter handle is normalised: type toolshub4u and the output is @toolshub4u. Type the @ yourself and it is left alone. The robots value is passed through as written, so index,follow and noindex,nofollow both work.

A worked example

A page about keyword density was entered with a 48-character title, a 144-character description, an absolute canonical, the site name and a full image URL. The result read Built 15 head tags, and every length check was green.

The first tags written for the example page
TagValue
titleKeyword Density Checker: Count Words and Phrases
descriptionCount how often a phrase appears, see its density against the full word count, and list the most repeated two and three-word phrases in a draft.
robotsindex,follow
canonicalhttps://toolshub4u.com/tools/seo-tools/keyword-density-checker.html
og:typewebsite
twitter:cardsummary_large_image

The second run cleared the URL, the image, the site name and the handle, switched off both social groups and set robots to noindex,nofollow. It produced three tags. The preview fell back to example.com and https://example.com/page, and the checklist warned that the canonical was missing, no social image was set and the description was only 67 characters.

A third run used a relative image path, assets/og/seo-tools.png. The page still wrote 15 tags, including og:image with that relative path and twitter:card set to summary_large_image. Only the checklist objected. Social platforms need an absolute URL they can fetch, so the tags would not produce a preview.

Watch the image fieldA relative image is the most common way this block looks complete and still fails. The warning is easy to miss because the tag count stays at 15. Paste the full https:// address.

Length checks and what Google does

The checklist treats a title of 30 to 60 characters and a description of 70 to 160 characters as comfortable. Those are display estimates, not limits. Google does not impose a character limit on titles or descriptions; it truncates in the result where the device width runs out, and it may rewrite either one from the page content.

That is why the page says a tag block is a starting point. A description that repeats keywords is less likely to be used than one that describes the page, and a title that does not match the visible heading is a candidate for rewriting. Write for a reader first, then check the length.

The preview in the tool is a simulation. Use the SERP snippet simulator when you want to see how a title and description are cut at desktop and mobile widths, and the title and meta scorer when you are comparing several versions.

Canonical, robots and the social tags

The canonical should be the full https URL of the preferred version of the page. It is a hint, not a directive, and it belongs on the page itself rather than only in a sitemap. If the URL field is empty, no canonical is written; if it is relative, the tag is written anyway and the checklist fails it.

Open Graph has one fixed value here: og:type is always website. That is right for a homepage or a tool page and wrong for an article, which would normally use article with published and modified times. The generator has no field for those, so edit the block by hand if the page is editorial.

The robots directive controls indexing and link following, not crawling. To keep a page out of the index, noindex is the reliable signal; a robots.txt disallow stops the crawl and can leave the URL indexed without a snippet. The page warns when noindex is selected so it is not left on by accident.

Publishing the block

Paste the tags inside <head>, above the stylesheets if you like, and check the live page with a fetch or a validator. Social platforms cache previews, so a corrected image may take a while to appear; some have a debugging tool that forces a refresh.

Keep one source of truth. If the title is generated by a CMS, do not also hard-code a second title tag. Duplicate tags are a common result of pasting a generated block into a template that already writes its own, and the first or last one wins depending on the parser.

The generator does not create a meta keywords tag, and that is deliberate: Google does not use it for ranking. It also does not write structured data, hreflang or a viewport tag. Those are separate jobs, and mixing them into this block would make it harder to review.

Questions

Common questions

Short answers about this tool and its limits.

Does it generate a meta keywords tag?

No. Google does not use the keywords meta tag for ranking, so the generator leaves it out. It writes the description, robots, canonical, Open Graph and Twitter card tags instead.

Why did I get three tags instead of fifteen?

Because the optional fields were empty or the social switches were off. With no URL, image, site name or handle, and both social groups disabled, only the title, description and robots tags remain. That is the intended output.

Is 60 characters a hard title limit?

No. It is a display estimate. Google does not set a character limit and truncates by pixel width on the device, and it may rewrite the title from the page content. The 30 to 60 band is a guide for writing, not a rule.

Will Google use my meta description?

Often, but not always. Google may generate a snippet from the page when the description is missing, unhelpful or repeats keywords. A clear description of the page is more likely to be used than a list of search terms.

Why is my relative image path a problem?

Open Graph and Twitter card images must be absolute URLs that the platform can fetch. A path such as assets/og.png cannot be resolved by a social crawler. The generator still writes the tag and sets a large-image card, so check the warning.

Can I choose article instead of website for og:type?

Not in this tool. og:type is always website. For a blog post or news article, change it to article and add the published and modified times by hand.

Should the canonical be in the sitemap as well?

The canonical belongs on the page. A sitemap lists the URLs you want crawled and can reinforce the same choice, but it does not replace the link element. Keep both pointing at the same preferred URL.

Are the tags saved anywhere?

No. They are generated in the browser and can be copied or downloaded as an HTML file. There is no account or server-side storage, so keep the block with the page source or your CMS template.