What is open graph tag generator?
Open Graph tags tell social networks and chat apps which title, description and image to show when someone shares your link. Good tags make a link look professional and raise clicks.
This generator writes Open Graph and Twitter card tags for you. Paste the output inside the head section of your page.
How to use the open graph tag generator
- Enter the title, description, URL and image.
- Choose the page type.
- Copy the tags into your page head.
How the open graph tag generator works
The tool escapes your text and writes og:type, og:title, og:description, og:url, og:image and og site name tags. It adds twitter:card tags, using a large image card when an image is present.
Worked example
Common uses of the open graph tag generator
- Improving link previews on social media.
- Preparing a new landing page.
- Fixing a wrong share image.
- Blog post sharing.
- Product page sharing.
Tips and common mistakes
Use an absolute image URL and an image of about 1200 by 630 pixels.
Test with the Facebook Sharing Debugger after you publish.
Background: what to know before you rely on it
Open Graph was introduced by Facebook in 2010 and is now read by almost every platform that shows link previews. If the tags are missing, the platform guesses and often picks a poor image or a cut off title. Platforms also cache previews, so after you fix tags, you may need to use a debugger tool to refresh them. Keep titles short, descriptions clear and images free of small text that becomes unreadable on phones.
Private, free and fast
This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all seo tools, or browse the full list of tools.
Field by field guide
- Page title: Type your value. The example is Free Online Tools and Calculators.
- Description: Type or paste your text here. Use a new line for each entry where the label says so.
- Page URL: Type your value. The example is https://example.com/.
- Image URL (1200 x 630): Type your value. The example is https://example.com/og-image.png.
- Site name: Type your value. The example is iToolsLab.
- Type: Choose one of: Website; Article; Product.
Change one field at a time to see how the result responds, and use the worked example above to check that you get the same answer.
Controlling link previews
Open Graph tags decide the title, description and image shown when a link is shared on social platforms and chat apps.
Expert tips
- Use an image of 1200 by 630 pixels for most platforms.
- Keep titles under 60 characters and descriptions under 160.
- Use absolute URLs for the image and the page.
- Add og:type, og:url and og:site_name for completeness.
- Clear caches with the platform's debugger after changes.
A strong preview image can raise click through from shares significantly.
Frequently asked questions
Where do I paste the tags?
Inside the head section of your HTML page.
Do they help SEO?
They do not directly affect rankings, but better previews can bring more clicks and shares.
What image size is best?
About 1200 by 630 pixels, under a few megabytes.
Does WhatsApp use them?
Yes. WhatsApp and many chat apps read Open Graph tags.
Guides that go with this tool
Related tools
On Page SEO Checker
Enter a page URL, or paste its HTML, and optionally a target keyword. The tool runs up to 18 on page SEO...
SEO ToolsMeta Tag Generator
Enter your page title, description and URL and the generator writes the HTML meta tags, including Open...
SEO ToolsSERP Preview Tool
Type a title, URL and description to see a preview of a Google search result and a check of the...
SEO ToolsFAQ Schema Generator
Write each question on one line and the answer on the next, with a blank line between pairs. The tool...
Image ToolsImage Cropper
Choose an image, pick an aspect ratio, a zoom level and which part to keep, then download the cropped...
SEO ToolsRobots.txt Generator
Enter the paths you want to block, add your sitemap and download a ready robots.txt for the root of your...
Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Validate markup with search engine testing tools before publishing.