All rules
optional
Rule: og-titleWeight: 4/100

Rule: og-title

When og:title is absent, social platforms fall back to your HTML <title> tag. The problem: HTML titles often include brand suffixes like ' | Acme Corp' from Next.js title.template, wasting valuable space in social previews. An explicit og:title lets you craft a title optimized for social context — shorter, punchier, without the SEO template baggage.

Run the check
$ npx indxel check
Look for og-title in the output

What it checks

Indxel looks for a <meta property="og:title" content="..."> tag in the HTML head. The rule passes if the tag exists and the content is non-empty. Indxel does not compare og:title to the HTML title or check for quality — only presence.

Thresholds

PASS

og:title meta tag exists with non-empty content

WARN

og:title meta tag is missing or has empty content

Edge cases

1

In Next.js, setting openGraph.title in your metadata export generates the og:title tag. If you only set the top-level title without openGraph.title, the og:title tag may not be rendered (depends on Next.js version).

2

Some platforms (Twitter) have their own title tag (twitter:title). og:title and twitter:title can differ to optimize for each platform.

3

If og:title matches the HTML title exactly (including brand suffix), you get no benefit. The point is to have a different, social-optimized title.

Configuration

indxel.config.ts
// indxel.config.ts
import { defineSEO } from "indxel";

export default defineSEO({
  rules: {
    "og-title": true, // enabled by default
  },
});

// Set og:title in your metadata:
export const metadata = {
  title: "Pricing Plans | Acme Corp",  // HTML title (SEO)
  openGraph: {
    title: "Simple pricing. Start free.", // Social title (punchy)
  },
};

Frequently asked questions

Does og:title affect SEO rankings?

No. og:title is only used by social platforms and messaging apps. It has no impact on search rankings. The HTML <title> tag is what search engines read.

Should og:title be different from my HTML title?

Ideally, yes. HTML titles are optimized for search (keyword-first, brand suffix). og:title should be optimized for social (benefit-first, no suffix, more conversational). If they're identical, you miss an optimization opportunity.

Related rules

title-present

critical — 5/100

og-image

critical — 8/100

og-description

optional — 4/100

twitter-card

optional — 4/100

Validate your SEO now

$npx indxel check
Get startedBrowse all rules
Indxel

SEO validation that runs in your terminal and blocks bad deploys.

GitHubnpm

Product

  • Documentation
  • Pricing
  • Plus Plan
  • CI/CD Guard
  • Indexation
  • Free Tools
  • Blog

Comparisons

  • vs Semrush
  • vs Ahrefs
  • vs Moz
  • vs Screaming Frog
  • All comparisons

Integrations

  • Vercel
  • GitHub Actions
  • Netlify
  • Docker
  • All integrations

Resources

  • Frameworks & use cases
  • Next.js
  • For freelancers
  • For agencies
  • SEO Glossary

Built with care. MIT Licensed.

PrivacyTermsLegalContact