Log inGet Started

Open Graph tags checker · updated 10 November 2026

How to add Open Graph tags in Next.js

In the Next.js App Router, set openGraph in the metadata object, or add an opengraph-image file next to the page.

Steps

  1. Add an openGraph object to the page's metadata with a title, description and images.
  2. Or place an opengraph-image file in the route folder and Next.js builds the image tag for you.
  3. Use an absolute https image URL, or set metadataBase so relative paths resolve.

app/page.tsx

export const metadata = {
  openGraph: {
    title: "Your page title",
    description: "One sentence about the page.",
    url: "/",
    images: ["/share.png"],
  },
};

How to check it worked

View source for og:title, og:description and og:image, then paste the link into the app where you share it.

Good to know

Set metadataBase in your root layout, or relative image paths may not resolve to your domain.

Check your site now

Free, no signup. Every finding comes with the fix. The tag in your Next.js site is checked along with the rest of the page.

Related guides

Written by Marlo's maker. Platform menus change, so if a step does not match what you see, check the platform's own help. 4 platforms covered.

Ready to grow?

Enter your website and let the AI CMO handle the rest.

ArticlesSEOGEOSite CrawlRedditXLinkedInGitHubHacker NewsLeads

Self-host free, or hosted from $9/mo

AGPL-licensed and open source

Copyright (c) 2026 Marlo (a mlforge Studio product). All rights reserved.