Generated metadata fields
Use the generator to keep the visible search snippet, canonical URL, Open Graph preview, and Twitter card fields aligned before pasting into a route.
- Title and description for the search snippet.
- Canonical URL and Open Graph URL from one source.
- Open Graph image, type, site name, and locale starters.
- Twitter card fields that mirror the social preview.
Static metadata vs generateMetadata
Static pages can use an exported metadata object. Dynamic routes should move the same fields into generateMetadata so params, CMS content, and canonical paths stay route-specific.
- Use static metadata for landing pages, docs, and fixed tools.
- Use generateMetadata for slugs, product pages, and user-facing records.
- Keep fallback metadata short and replace it once route data resolves.
Canonical and Open Graph alignment
Duplicate host and path variants confuse indexing. Generate canonical, alternates, and openGraph.url from the same production URL so Google and social crawlers see one preferred page.
- Prefer the apex host when it is the canonical domain.
- Avoid mixing www and non-www in generated metadata.
- Use absolute image URLs for reliable social previews.
Production checklist
Before shipping, confirm the page is indexable, the canonical URL returns 200, the Open Graph image is crawlable, and the generated title still matches the page's real search intent.
- One canonical URL per page.
- No accidental noindex on production routes.
- Open Graph image dimensions and content match the page.
- Title and description are unique across similar pages.
Best for route and content pages
Use it when building metadata for landing pages, tool pages, docs, guides, comparison pages, and dynamic App Router routes that need predictable SEO fields.
Review generated output before shipping
Generated metadata gives you a correct starter. Dynamic pages may still need route-specific generateMetadata logic, final copy review, and structured data that matches visible page content.
What this tool does
Create a typed Next.js metadata starter for SEO and social previews.
Create App Router metadata
Generate a typed metadata object for static Next.js pages.
Standardize social previews
Keep Open Graph and Twitter card fields aligned across tool and content pages.
Avoid canonical drift
Use a single input set for canonical URL, Open Graph URL, and social image fields.
Does this support the Next.js App Router?
Yes. The generator targets App Router metadata exports and can be adapted to generateMetadata for dynamic routes.
When do I need metadataBase in Next.js?
Use metadataBase when canonical URLs, Open Graph images, or alternates are built from relative paths. Set it to the canonical production host so generated social and canonical URLs resolve consistently.
Should I use static metadata or generateMetadata?
Use a static metadata export for stable pages. Use generateMetadata when title, description, canonical URL, or Open Graph fields depend on params, search data, CMS records, or product content.
How do I keep canonical and Open Graph URLs consistent?
Start from the same canonical URL input, then reuse it for alternates.canonical and openGraph.url. That prevents social previews from pointing at a different host or route than the indexable page.
Will this guarantee SEO rankings?
No. It helps produce consistent technical metadata, but ranking still depends on content quality, links, and search intent fit.
Does it include Open Graph fields?
Yes. The output includes title, description, canonical URL, Open Graph, and Twitter card fields.
What are the limits of a metadata generator?
A generator can create a safe typed starter, but it cannot choose final search intent, page-specific copy, image quality, index policy, or structured content depth for you.