SEO Metatag Generator

Title, description, Open Graph and X (Twitter) tags, generated with live previews.

SEO Metatag Generator

Fill in title, description and social details, watch the live previews, and press Generate Tags.
You get a clean meta tag block to paste into your page's <head>.
Have a page already? Drop it in and the form fills itself.


Load an example

Or drop an .html file here to extract its existing meta tags
0 / 60
0 / 160
Google Search Preview
X (Twitter) Preview
Facebook Share Preview
HTML5 Meta Tags
Add your page details, then press Generate Tags.


Overview

Our "SEO Metatag Generator" builds the meta tag block that lives in a page's <head>: the title, the meta description, robots directions, a canonical link, and the Open Graph and X (Twitter) tags that control how the page looks when it is shared. Fill in a short form once and the tool assembles every tag, correctly spelled and correctly quoted, ready to paste. As you type, it also renders three live previews: how the page will appear in a Google result list, how a shared link will show up on Facebook or LinkedIn, and how the X (Twitter) card will be built from your X (Twitter) card type, image and handle.

It is useful because metatags are easy to get subtly wrong: descriptions that get cut off mid-sentence, titles too long to fit, a missing Open Graph image that leaves shared links looking bare. The generator watches the lengths for you (the title and description counters go green, then amber, then red as you approach Google's display limits), and the previews show the exact consequence of every change before you commit.

What it is built with: a plain PHP page styled with the site's shared tool styles plus a small scoped stylesheet, driven by vanilla JavaScript using the site's shared Toolkit helpers. The import feature parses files with the browser's own standard DOMParser. Everything runs locally in your browser: no page URL or pasted HTML is ever sent to a server.


What this Tool Does

1. Collects your page details: site name, title, description, keywords, author, canonical URL, language, robots directions, OG type, X (Twitter) card type, shared image and handle, each in its own field with a hint of where it ends up.

2. Previews the outcome live: a Google result card (URL breadcrumb, blue title, grey snippet), a Facebook-style share card (site name, image, title, description) and an X (Twitter) card that follows the selected X (Twitter) card type — all three re-rendered on every keystroke, with title and description clipped exactly where Google would clip them.

3. Generates the block: press "Generate Tags" for a hand-formatted <head> snippet — standard tags first, then og:*, then twitter:* — with empty optional fields skipped and short HTML comments marking anything still missing.

4. Can start from a page you already have: drop or browse an .html/.htm file and the tool extracts its existing title, meta tags, canonical link and lang attribute, filling the form so you can fix and regenerate rather than starting from zero.


Features & Options

Page title: the single most visible piece of metadata — it becomes the blue link in Google and the headline in a share card. The counter under the field turns amber as you approach 60 characters and red past it. Input:

Day Hikes Under 10 Miles Near Lakeview Pass
Meta description: the two-line grey snippet under the blue link in search results, and the card text under the title when shared. The counter tracks the 160-character display limit the same way.

Google Search Preview: a faithful mock of a result listing, with the URL shown the way Google shows breadcrumbs (birchline-coffee.example › shop › breakfast-blend-12oz) and both title and description ellipsised at their real limits.

Facebook Share Preview: a mock of the card a shared link gets, laid out the way social platforms render it: a grey card with the image area on top and a white information strip beneath, holding the site name, the bold title and the description. Until you enter your own og:image URL, the TextToolz share image fills the slot for a lifelike view; if you enter one that is broken, the preview silently swaps it for a grey image icon, the way social platforms skip dead files.

X (Twitter) Preview: under the Google preview, a mock of the X card built from your X (Twitter) settings: select Summary with Large Image (or App/Player) and it renders the full-width image card with the domain, your @handle when one is set, then title and description; select Summary and it shrinks to the compact square-thumbnail layout X uses for small cards — so the preview only ever shows the card your tags will actually produce.

OG type: picks og:type — website for home and shop pages, article for blog posts and news, profile for personal pages, book for a work of literature.

X (Twitter) card type: Summary shows a small square image; Summary with Large Image gives the image the full card width — the usual choice for pages with quality visuals. X (formerly Twitter) rebranded first, so this tool lists it both ways: the tags it generates are still the standard twitter:* ones every platform reads.

Robots & language: assembles <meta name="robots" content="index, follow"> from two dropdowns (switch to noindex/nofollow on drafts, admin pages or thank-you screens), and documents the lang attribute your opening <html> tag should carry.

Canonical URL: feeds the <link rel="canonical">, og:url and breadcrumb of the Search Preview at once, so one correction fixes all three.

Import an existing page: drop an .html file on the dashed zone (or use "Upload") and its meta tags are read back into the form: title, description, keywords, author, canonical, OG image, X (Twitter) card and site handle, with a message counting what was found.

Copy & Download: Copy puts the generated block on your clipboard; Download saves it as header-meta-tags.txt. Both sit under the generated code.

Load an example & chips: "Load an example" and the three chips (Blog post, Product page, Portfolio) fill every field with a ready-made page so you can see all previews at work before entering your own details.

Clear & Reset: empties the form and all previews for the next page.


Why Meta Tags Matter

Meta tags are the small lines of information in a page's <head> that describe the page to machines instead of readers. Visitors never see them on the page itself, yet they decide a surprising amount: search engines use the title and description to write your Google listing, and social platforms use the Open Graph and X (Twitter) tags to build the card that appears whenever someone shares your link. Whatever those systems cannot find, they improvise — and their improvisation is usually a random paragraph and the first image on the page, which is rarely the face you wanted to show.

A well-set tag set does two jobs. First, it keeps control of first impressions: the right title, a deliberately written description, and a proper social image turn a bare link into something that looks trustworthy, which measurably raises click-through rates from both search results and shared posts. Second, it prevents waste: if you publish ten pages decide how they should be listed once, centrally, with the tool — rather than fighting truncation and auto-picked images per post.

A few practices reliably pay off:

  • Title: stay under 60 characters so the whole title is visible as the blue link.
  • Description: aim for 150–160 characters — long enough to be persuasive, short enough to avoid the ellipsis.
  • Canonical link: always present the preferred URL so copies and parameters do not split your page's value.
  • Social image: supply an og:image of at least 1200×630 pixels; small or missing images are the most common reason shared links look unprofessional.
  • Robots: use noindex deliberately on pages that add no search value (staging screens, admin panels, internal tabs) and index everywhere else.

Meta tags are only one ranking factor among many — good tags do not substitute for useful content or fast pages — but they are completely within your control, take minutes to set, and influence every single impression your page receives in a list or a feed.


How to Use This Tool

1. Add your page details: type them into the form, click "Load an example" or one of the three chips, or drop an existing .html page on the dashed zone to import its current tags. You can also paste the canonical URL first and let the previews guide the rest.

2. Check the previews: the Google result and share card update on every keystroke. Watch the counters: green means comfortable, amber means Google will soon start shortening, red means text is already being cut.

3. Generate: press "Generate Tags" and the complete <head> block appears in the box below, with comments noting any optional detail you have not filled in yet.

4. Take it away: use Copy to place the block on your clipboard or Download to save it as a text file, and paste it between the <head> tags of your page. "Clear & Reset" prepares the form for the next page.


FAQs

FAQ 1: Do meta tags directly improve my rankings?
Answer: Not directly. Search engines mainly use the title tag and page content for ranking. Good tags help in two indirect ways: the title and description control how persuasive your listing is (which affects click-through rate), and the social tags make shared links look trustworthy, so broken or missing tags cost you visits they could have earned.

FAQ 2: Why does my long title get cut off in the preview?
Answer: Google displays roughly 50–60 characters of title and 150–160 characters of description; anything longer is ellipsised, just as the preview shows. The counters go amber before the limit and red past it, so you can end the sentence at a natural point before the cut.

FAQ 3: What is the difference between the OG tags and the X (Twitter) tags?
Answer: Facebook, LinkedIn and WhatsApp read the og:* tags; X (formerly Twitter) reads the twitter:* tags — the platform renamed itself but kept the tag names — and falls back to the Open Graph values when they are missing. That is why the generator sets title and description into both groups: it keeps the fallback a deliberate choice of yours.

FAQ 4: What size should the OG image be?
Answer: 1200×630 pixels is the safe standard for Facebook and LinkedIn. Keep it under about 8 MB, and preferably provide the same file over HTTPS, otherwise some platforms refuse to load it and the card shows without an image.

FAQ 5: I pasted the generated tags on every page. Is that correct?
Answer: No — every page should have its own title, description and canonical URL. The tool generates one block per page: change the page, regenerate the tags. Identical blocks on many pages mean identical search listings, which is exactly what you do not want.

FAQ 6: Is anything I type in the form uploaded or stored?
Answer: No. The form, the previews, the generated code, and even the dropped .html file all stay in your browser's JavaScript. Nothing is transmitted to, or saved on, our servers.


Tools Worth Trying

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.