EnjoySEOs Header
EnjoySEOs

Open Graph Tag Generator

Build Open Graph and Twitter Card meta tags with a live share preview, image checks and validation, then copy them straight into your page head.

Core tags

Use the same address as the page's canonical URL.

Image

Use a public, absolute URL. 1200 × 630 px (1.91:1) is the common size.

X (Twitter) card & extras

An approximate preview. Platforms crop, cache and restyle shared links differently, so use their debugger tools to refresh cached cards.

Paste inside the head section of your page. Nothing is fetched or verified on the live site, and valid tags do not guarantee how a platform displays your link.

Explore more
More free SEO tools

Keep going with other free EnjoySEOs tools. No signup, no limits.

Word CounterCount words, sentences and reading time instantly.Content & Text Character CounterCheck characters with and without spaces.Content & Text Text Comparison ToolSpot differences between two blocks of text.Content & Text SEO Content AnalyzerReview your copy for on-page SEO signals.Content & Text SEO Readability CheckerScore how easy your content is to read.Content & Text Heading CheckerAudit H1–H6 structure and hierarchy.Content & Text Image Alt Text CheckerFind images with missing or weak alt text.Content & Text Keyword Density CheckerSee word and phrase frequency at a glance.Keywords Keyword Clustering ToolGroup related keywords into topic clusters.Keywords Keyword Combination ToolMix keyword lists into every combination.Keywords Schema Markup GeneratorCreate JSON-LD for common schema types.Schema Markup Schema Markup ValidatorValidate structured data before you publish.Schema Markup Local Business Schema GeneratorMarkup for your business name, address and hours.Schema Markup FAQ Schema GeneratorTurn questions and answers into FAQ markup.Schema Markup Product Schema GeneratorProduct, price and offer structured data.Schema Markup Breadcrumb Schema GeneratorBreadcrumb trail markup, ready to paste.Schema Markup Robots.txt GeneratorBuild crawler rules and copy robots.txt.Crawling & Indexing Robots.txt TesterTest whether a URL is allowed or blocked.Crawling & Indexing Noindex CheckerCheck pages for noindex directives.Crawling & Indexing Canonical Tag CheckerVerify the canonical URL on any page.Crawling & Indexing Canonical Tag GeneratorGenerate clean rel=canonical tags.Crawling & Indexing Disavow File GeneratorBuild a disavow file for Google Search Console.Crawling & Indexing XML Sitemap GeneratorCreate a valid sitemap from your URLs.Sitemaps XML Sitemap ValidatorCatch errors in your sitemap file.Sitemaps XML Sitemap VisualizerSee your sitemap structure at a glance.Sitemaps Sitemap URL ExtractorPull every URL out of a sitemap.Sitemaps Meta Description GeneratorWrite meta descriptions that fit the snippet.Meta & Social SEO Title GeneratorDraft title tags with the right length.Meta & Social Meta Tag CheckerInspect the meta tags on any page.Meta & Social Meta Tag GeneratorTitle, canonical, robots and social tags.Meta & Social Google SERP SimulatorPreview your snippet on desktop and mobile.Meta & Social Open Graph PreviewSee Facebook and LinkedIn share cards.Meta & Social Open Graph Tag GeneratorGenerate og: tags for better sharing.Meta & Social Hreflang GeneratorCreate hreflang tags or sitemap entries.International Hreflang CheckerValidate language and region annotations.International Internal Link CheckerReview internal links and anchors on a page.Links & URLs Bulk URL CleanerClean, dedupe and normalise URL lists.Links & URLs HTML Link ExtractorExtract every link from pasted HTML.Links & URLs UTM BuilderAdd campaign tracking parameters to links.Links & URLs URL Parameter BuilderAppend custom query parameters to URLs.Links & URLs Htaccess Redirect GeneratorApache 301 rules, copy-ready.Redirects Nginx Redirect GeneratorNginx redirect blocks in seconds.Redirects
Social Sharing Metadata Guide

What Is an Open Graph Tag Generator?

An Open Graph Tag Generator is a tool that helps you create the HTML meta tags used to describe how a webpage should appear when it is shared on supported social platforms and messaging services. You can enter details such as the page title, description, canonical URL, image URL, and content type to generate the corresponding Open Graph metadata.

Open Graph tags provide information about a webpage in a standardized format. When a compatible platform retrieves the page, it may use this metadata to build a link preview containing a title, image, description, and destination URL. These previews help people understand what a shared link is about before opening it.

An Open Graph Tag Generator simplifies metadata creation by producing ready-to-use HTML markup. Instead of writing every meta tag manually, you can prepare the required properties, review the output, and add it to the head section of your webpage. Accurate metadata and accessible images help provide a more consistent sharing experience, although the final preview depends on the platform displaying the link.

Why Use an Open Graph Tag Generator?

A webpage can look different when it is shared across social networks, chat applications, and other services. Without suitable metadata, a platform may select an unexpected image, use an unsuitable title, or generate a description from available page content. An Open Graph Tag Generator helps you specify the information that compatible platforms can use for link previews.

01

Generate Meta Tags Faster

Create Open Graph markup from your page details without manually writing every HTML meta element or remembering each property name.

02

Control Link Preview Content

Specify a preferred social sharing title, description, image, and canonical URL for platforms that support and use Open Graph metadata.

03

Prepare Image Metadata

Add an image URL and optional image properties, including alternative text, dimensions, and image MIME type when known.

04

Reduce Markup Errors

Generate consistently formatted HTML attributes and review the resulting tags before implementing them on your website.

How to Use an Open Graph Tag Generator

Creating Open Graph metadata is straightforward when you have the correct webpage details and a suitable sharing image. Follow these steps to prepare the tags.

  1. Enter the page title. Choose a concise, relevant title that accurately represents the page when shared. It can match the HTML title or use a suitable social sharing title when your publishing setup supports it.
  2. Add a description. Write a short summary that explains what visitors can expect after opening the link. Avoid misleading claims or descriptions unrelated to the page.
  3. Enter the canonical page URL. Use the preferred absolute URL of the page you want platforms to associate with the shared link.
  4. Provide a sharing image URL. Use an accessible image that represents the content. Select an appropriate aspect ratio and ensure that the image can be retrieved by the intended platforms.
  5. Select the Open Graph object type. Choose an applicable type, such as website or article, depending on the content being described.
  6. Complete optional properties. Add the site name, locale, image alternative text, or article details when they are relevant and supported by your page.
  7. Generate the HTML markup. Review the output to confirm that each property has the correct name and content value.
  8. Add the tags to the webpage head. Place the generated Open Graph meta elements inside the document's HTML <head> section using your CMS, theme, or metadata plugin.
  9. Test the shared link. Use available platform debugging tools and inspect the preview after the page has been crawled.

Important: A generator creates the metadata code, but it does not automatically add that code to your live website. After implementation, check the rendered page source to verify that the tags appear in the head section and that duplicate or conflicting tags are not being generated by another plugin.

Important Open Graph Meta Tags

The Open Graph protocol defines four basic properties for describing a page: title, type, image, and URL. Additional properties can provide a description, site name, locale, or more detailed image information.

Open Graph Tag Purpose Example Value
og:title Specifies the title that describes the shared object. Complete Guide to Website SEO
og:type Identifies the type of content being described. website or article
og:image Provides the preferred image URL for the shared content. An absolute image URL
og:url Specifies the canonical URL used as the object's permanent identifier. The preferred page URL
og:description Provides a short description of the content. A concise page summary
og:site_name Identifies the overall website to which the page belongs. Example Website
og:locale Specifies the content's locale. en_US
og:image:alt Describes the content of the sharing image. Illustration of an SEO dashboard
og:image:width Specifies the image width in pixels. 1200
og:image:height Specifies the image height in pixels. 630

The four basic properties are central to the Open Graph protocol. Properties such as description, site name, image dimensions, and image alternative text provide additional context. Include only values that are accurate for your particular webpage and image.

Open Graph Meta Tags HTML Example

The following example shows a basic set of Open Graph properties for a fictional article page. Replace the example title, description, URLs, image, and site name with accurate details from your own website.

<meta property="og:title" content="Complete Guide to Website SEO" /> <meta property="og:type" content="article" /> <meta property="og:url" content="https://example.com/website-seo-guide/" /> <meta property="og:image" content="https://example.com/images/website-seo-guide.jpg" /> <meta property="og:description" content="Understand essential website SEO practices, technical checks, and content optimization." /> <meta property="og:site_name" content="Example Website" /> <meta property="og:locale" content="en_US" /> <meta property="og:image:alt" content="Illustration representing website SEO" />

Each meta element uses the property attribute to identify the Open Graph property and the content attribute to provide its value. The values should match the actual page being shared.

Add these elements inside the HTML head section. They are not intended to replace the webpage's visible title, headings, description, or content. Open Graph metadata supplements the page with information used by compatible sharing systems.

How to Choose an Open Graph Image

The sharing image is an important part of a link preview. A suitable image can make the shared content easier to recognize and understand. An unsuitable image, incorrect URL, or image that cannot be retrieved may result in a preview that does not match your intended design.

01

Use a Relevant Image

Select an image that represents the page topic, article, product, or business. Avoid unrelated stock images or artwork that could mislead visitors.

02

Use a Suitable Aspect Ratio

Landscape images with a 1.91:1 aspect ratio, such as 1200 by 630 pixels, are commonly used for social link previews. Check the current requirements of the platform where the image will appear.

03

Provide an Accessible URL

Use an absolute image URL that can be fetched by the relevant sharing platform. Check that the file exists and is not blocked by access rules.

04

Describe the Image

Add suitable image alternative text using og:image:alt when available. The text should accurately describe the image rather than repeat unrelated keywords.

Image tip: Avoid relying on a small logo or a narrow banner as the only sharing image when a larger preview is desired. Use a properly sized image that remains understandable when cropped or displayed at different preview sizes.

The example dimensions above are a common design choice, not a universal requirement for every platform or every content type. File formats, size limits, crop behavior, and supported preview layouts can vary. Check current platform guidance when image display is important to your publishing workflow.

Choosing the Right Open Graph Type

The og:type property describes the kind of object represented by the page. Select a type that fits the actual content rather than choosing an option purely for appearance. Common choices include website and article, while other supported types are available for specific kinds of content.

Type Typical Use Example Page
website A general webpage or website homepage. Business homepage
article An editorial page or published article. Blog post or news article
book A page representing a book. Book information page
profile A page representing a person's profile. Author or public profile
video.movie A page representing a movie. Film information page
video.episode A page representing a video or television episode. Episode detail page

Type-specific properties may also be available. For example, article metadata can include publication time, modification time, author information, section, or tags. Use additional properties only when they accurately describe the associated content and are supported by the relevant Open Graph vocabulary.

Optional Open Graph Tags You Can Generate

Beyond the basic properties, additional metadata can help describe the website, the sharing image, or the content's publication details. The generator may include these optional fields when they are relevant to the page.

Site Name and Locale

Use og:site_name to identify the overall website and og:locale to indicate the page's language and regional locale, such as en_US.

Image Properties

Properties such as og:image:alt, og:image:width, og:image:height, and og:image:type provide additional information about the image.

Article Publication Details

For appropriate article pages, properties such as article:published_time and article:modified_time can describe the original publication and modification dates.

Article Author and Section

Article-specific properties such as article:author, article:section, and article:tag can provide additional context for editorial content.

Some properties can have multiple values, including additional images. When using multiple image tags, keep the associated metadata in the correct order and check how the target platform processes them. Optional metadata does not guarantee that a platform will display every supplied field.

Open Graph Tags vs. X Cards

Open Graph tags and X Card metadata are related but are not identical systems. Open Graph properties use names such as og:title and og:image, while X Cards can use properties such as twitter:card and twitter:title.

Metadata Type Common Properties Purpose
Open Graph og:title, og:image, og:url Describes content for compatible social graph and sharing previews.
X Cards twitter:card, twitter:title, twitter:image Provides metadata for supported card formats on X.
HTML title <title> Defines the document title, which may be used by browsers and other systems.
Meta description name="description" Provides a page description commonly used by search engines and other services.

Some platforms may use Open Graph metadata as a fallback when platform-specific tags are missing. However, support and behavior vary. If your goal is to control previews on several platforms, consider generating appropriate Open Graph tags alongside any additional metadata those platforms require.

Creating Open Graph metadata does not automatically generate X Card tags, standard SEO title tags, meta descriptions, or structured data. These are separate elements that may need to be maintained independently.

Why Your Open Graph Preview May Look Wrong

Even when the HTML tags appear correct, a shared link may show an outdated title, the wrong image, or no description. The final preview depends on the metadata retrieved by the platform, image accessibility, caching, and the platform's own processing rules.

Cached Metadata

A platform may retain a previously fetched preview. Updating the HTML does not necessarily refresh every cached copy immediately.

Inaccessible Images

The image might be missing, blocked from retrieval, too large, in an unsupported format, or inaccessible to the platform's crawler.

Missing or Duplicate Tags

A page may contain multiple tags for the same property or tags generated by more than one plugin. Conflicting values can lead to unexpected results.

Incorrect Page URL

The og:url value may point to a different URL than intended or conflict with the actual page and its canonical configuration.

Troubleshooting tip: Inspect the rendered HTML source instead of checking only the editor fields. Confirm that the final title, image, URL, and description are present in the document head and that the image URL is accessible to the relevant sharing crawler.

How to Test Open Graph Meta Tags

After adding the tags to your website, check the live page and test how the intended platform reads its metadata. A generator can produce correctly formatted HTML, but only a test of the published page can help identify implementation, access, or caching problems.

  1. Publish or update the page. Make sure the page is available at the intended public URL and that the generated metadata has been added to its head section.
  2. Inspect the HTML source. Check the final rendered page source for the expected Open Graph properties. Look for duplicate tags generated by themes or plugins.
  3. Confirm the image is accessible. Open the image URL separately and check that the file loads correctly without unexpected access restrictions.
  4. Use the relevant sharing debugger. For supported Meta platforms, use the official Sharing Debugger to inspect fetched information and request a refresh when available.
  5. Check the displayed preview. Review the title, description, image, and destination URL shown by the platform. Different platforms may render the same metadata differently.
  6. Recheck after changes. If you update the metadata, fetch the page again through the relevant platform tool when possible. Allow for caching and recrawling behavior.

You can open the Meta Sharing Debugger to investigate Open Graph preview issues for supported Meta sharing surfaces. Its results apply to the platform's interpretation of the fetched page and do not guarantee identical behavior on every network or messaging service.

Open Graph Tag Best Practices

Consistent metadata helps describe shared pages accurately. Follow these practices when generating Open Graph tags for a website, blog, ecommerce store, or landing page.

  • Write a relevant title. Choose a title that clearly communicates what the shared page contains.
  • Use an accurate description. Summarize the page in natural language and avoid unsupported claims or unrelated promotional text.
  • Specify an absolute canonical URL. Use the preferred full URL for og:url and keep it aligned with your intended canonical configuration.
  • Use a high-quality sharing image. Choose a relevant image that remains clear at preview sizes and follows the target platform's requirements.
  • Provide image alternative text when possible. Use og:image:alt to describe the image accurately.
  • Select an appropriate object type. Use website for a general website page or article for suitable editorial content.
  • Use type-specific metadata carefully. Supply article dates, author details, and other properties only when they correctly describe the page.
  • Keep metadata consistent. Review the page title, canonical URL, Open Graph tags, and any platform-specific card metadata.
  • Avoid unnecessary duplicate tags. Check whether your CMS, SEO plugin, or theme already generates Open Graph metadata before adding another set of tags.
  • Test the live page. Validate the rendered metadata and use available sharing tools to investigate unexpected previews.

Common Open Graph Tag Mistakes to Avoid

Missing Essential Properties

Leaving out the title, type, image, or URL means the page does not provide all four basic Open Graph properties described by the protocol.

Using a Relative Image URL

A relative image path may not identify the intended resource reliably to a sharing crawler. Use an absolute image URL when preparing the metadata.

Choosing the Wrong Image

A missing, inaccessible, or unrelated image can cause a poor preview even when the remaining Open Graph tags are correctly written.

Using the Wrong Canonical URL

An incorrect og:url can identify a different page from the one intended for sharing. Verify the URL and the site's canonical settings.

Placing Tags in the Wrong Location

Open Graph metadata is intended to be included in the document head. Placing raw meta tags inside ordinary page content does not reliably add them to the actual head element.

Adding Duplicate Metadata

A theme, SEO plugin, and custom code can each generate their own tags. Conflicting values may lead to unexpected preview selection.

Expecting Instant Preview Changes

Sharing platforms may cache previously fetched metadata. A code update does not guarantee that every existing preview will change immediately.

Assuming Open Graph Improves Rankings

Open Graph tags are primarily intended for sharing metadata. They are not a direct guarantee of improved search rankings or indexing.

Do Open Graph Tags Affect SEO?

Open Graph tags primarily describe content for social sharing and compatible link previews. They help a sharing platform interpret the title, image, description, and URL associated with a page. This makes them useful for managing how website links are presented outside the original website.

Open Graph metadata should not be confused with search engine title tags, meta descriptions, canonical tags, or structured data. These elements have different purposes. For example, a canonical tag helps communicate a preferred URL to search engines, while og:url identifies the URL of the Open Graph object.

Accurate sharing metadata may help make a shared link more recognizable and understandable to people, but it does not guarantee higher Google rankings, increased click-through rates, or a particular preview design. Platform display decisions and search performance depend on additional factors.

How to Add Open Graph Tags to WordPress

WordPress websites can generate Open Graph metadata through an SEO plugin, a social sharing plugin, theme functionality, or custom code. The appropriate method depends on the current setup and whether Open Graph tags already exist.

  1. Check the existing SEO plugin. Review whether your plugin already outputs Open Graph metadata for posts, pages, and other content types.
  2. Configure social sharing information. Set the preferred title, description, image, site name, and other supported metadata in the relevant settings or content editor.
  3. Use custom code only when needed. If the current setup does not provide the required properties, implement the generated tags through a suitable head-level integration.
  4. Prevent duplicate tags. Avoid generating the same properties through multiple plugins or custom implementations.
  5. Inspect the rendered HTML. View the published page source and confirm that the intended metadata appears in the head section.
  6. Test the public URL. Use a sharing debugger to check what the relevant platform retrieves after the page is published.

WordPress tip: A Custom HTML block in the page body is not the correct place to paste raw Open Graph meta elements if they need to appear in the document head. Use the generated code through an appropriate head-level method or your SEO plugin's supported settings.

Can an Open Graph Tag Generator Work in Your Browser?

Yes. A browser-based generator can create Open Graph HTML using standard form inputs and client-side JavaScript. It can assemble the title, type, image, URL, description, and optional fields into meta elements without requiring paid APIs, a database, or a server-side generation process.

Browser-side generation is useful when you need a quick way to prepare and copy markup. Depending on its features, a tool can also show a basic social preview, validate URL formats, omit blank optional properties, and let you download or copy the generated HTML.

However, generating tags locally does not automatically test how a social platform retrieves the live webpage. Actual preview validation may require a published URL, access by the platform's crawler, and the relevant sharing debugger. A local generator should distinguish between producing code and verifying a live preview.

Frequently Asked Questions

What is an Open Graph Tag Generator?

An Open Graph Tag Generator creates HTML meta elements that describe a webpage for compatible social sharing platforms. It can generate properties for the title, content type, image, URL, description, and other supported metadata.

Is an Open Graph Tag Generator free to use?

Some generators are free and run directly in the browser. Depending on the tool, they may support code generation, image metadata, preview simulation, and copying or downloading the HTML without requiring a paid API.

Which Open Graph tags are essential?

The four basic properties defined by the Open Graph protocol are og:title, og:type, og:image, and og:url. Additional properties, including og:description and og:site_name, can supply further context about the shared content.

Where should Open Graph tags be placed?

Open Graph meta elements should be included in the HTML head section of the relevant webpage. Use an appropriate CMS, theme, plugin, or custom head-level implementation to add them to the rendered document.

What image size should I use for Open Graph?

A landscape image of 1200 by 630 pixels is a common choice for social previews. Image requirements can differ by platform, so check the current specifications of the services where you want the content to appear.

What is the difference between og:title and the SEO title?

The og:title property describes the title intended for Open Graph sharing previews. The HTML title element defines the document title used by browsers and other systems. They can contain similar text, but they serve different purposes.

Are Open Graph tags the same as Twitter or X Card tags?

No. Open Graph and X Card metadata use different property names and serve related but distinct purposes. Some platforms can use Open Graph metadata as a fallback, but additional platform-specific tags may be useful depending on your requirements.

Why does my link show the wrong Open Graph image?

The image may be inaccessible, the page may contain duplicate image tags, or the platform may be using cached metadata from an earlier crawl. Verify the rendered og:image value, test the image URL, and use the relevant sharing debugger when available.

Do Open Graph tags improve Google rankings?

Open Graph tags primarily describe pages for social sharing previews. They do not guarantee higher Google rankings. Search titles, canonical tags, structured data, content quality, and other SEO elements have their own purposes.

Why does my social preview not update after changing the tags?

A platform may have cached an earlier version of your page. Check the live HTML source and use the relevant platform's debugging tool to request a new fetch when the feature is available. The preview may not update immediately.

Can I use different Open Graph images for different pages?

Yes. Each page can specify its own representative image using og:image. Choose images that match the page's content and ensure that each image URL is accessible to the relevant sharing crawler.

Can I include multiple og:image tags?

Yes. The Open Graph protocol permits multiple image properties. The order and supporting image metadata matter because parsers may give preference to the first image when handling multiple values or conflicts.

Can Open Graph tags be generated without an API?

Yes. Generating the HTML meta tags does not require a paid API. A browser-based tool can produce the markup locally. Testing the live preview, however, may require the relevant platform's own tools or crawler access to the published page.

Official Documentation

Open Graph and Social Preview Resources

Use these references to review Open Graph properties, understand the markup format, and investigate sharing preview problems.

Social Sharing Metadata

Generate Open Graph Tags for Your Website

An Open Graph Tag Generator makes it easier to prepare the HTML metadata used to describe webpages when links are shared. By specifying a relevant title, description, content type, canonical URL, and suitable image, you can provide compatible platforms with clearer information about your content.

Use accurate values, keep image URLs accessible, select the correct object type, and place the generated tags inside the document head. Check for duplicate metadata from your WordPress theme or SEO plugin and test the published page using the relevant sharing tools.

Well-prepared Open Graph metadata can improve control over how shared links are described, but the final preview depends on each platform's crawler, caching, supported properties, and display rules. Validate the actual result rather than relying on generated HTML alone.