About this open graph generator
Create Open Graph metadata for a webpage link preview. Enter a title, description, canonical page URL and image URL to produce the five tags commonly used when a page is shared.
The generator writes og:title, og:description, og:type, og:url and og:image. Page and image addresses are normalized to absolute web URLs, and textual values are HTML-escaped. The default content type is website rather than article.
The generator does not fetch the page or image, verify dimensions or clear a social platform’s preview cache. Your image must be publicly reachable by the platform reading the tags. Install the output in the document head and test sharing after publication.
Using Open Graph Generator starts with the Share title and Share description and Page URL and Image URL controls. For an example page and example.com/share.jpg, the output contains a website type tag and an absolute image URL ending in /share.jpg. Select Generate Open Graph tags to update the result below the controls. Read the output together with the open graph generator limitations described here before using it in a document, project or decision. Change one input at a time when comparing alternatives so that you can identify which change affected the result.
Which controls should I check first?
The Open Graph Generator form labels its controls as Share title; Share description; Page URL; Image URL; Result. Use those labels to keep the source and settings separate. A sample argument that selects a mode is not additional source text. Choose the setting matching your intended operation before copying a result, and change it explicitly when comparing another mode. The labels describe what this form accepts; the worked examples below demonstrate only the stated supplied values.
How should I interpret this specific operation?
The default og:type is website, with title, description, page URL and image URL fields. Normalize the absolute addresses and inspect the image destination before adding the tags to a page. A generated image URL does not prove that a social crawler can fetch the file. The receiving platform can apply its own cache and preview rules, so generation and observed preview behavior are separate checks.
Worked helper values
These values come from the reproducible calculation examples supplied with this tool. Each row identifies the complete supplied arguments and the returned value. A visible ↵ denotes a line break and ⇥ denotes a tab in text examples. Settings appear alongside source data so that a different mode is not mistaken for an identical input. These are helper calculations, not observations of a live device, fetched target, image decoder, browser preview or downloaded file. Use the stated method above to relate the returned fields to the actual operation.
| Supplied values | Calculated return value |
|---|---|
| Hello; Description; example.com; example.com/a.jpg | <meta property="og:title" content="Hello"> ↵ <meta property="og:description" content="Description"> ↵ <meta property="og:type" content="website"> ↵ <meta property="og:url" content="https://example.com/"> ↵ <meta property="og:image" content="https://example.com/a.jpg"> |
What does generating a link actually do?
A link generator assembles a destination address and encodes the values supplied in its fields. It does not send a message, create a transaction, register an account or verify the recipient. Read the resulting destination and parameters before placing the link in a document. Keep a distinction between creating the link as text and opening it in an application. Opening can initiate a separate network workflow whose behavior belongs to the destination service. Use sample recipient values for demonstrations, and check a real destination deliberately before distributing a link that other people will use.
Why do separators need encoding?
A question mark introduces query data, an ampersand separates parameters and an equals sign separates a name from its value. Those characters can also occur inside a subject, message or campaign label. The generator encodes value characters so that they stay data rather than becoming structural delimiters. Spaces and line breaks likewise need the destination's representation. Inspect an example containing an ampersand rather than testing only plain letters, since simple text can conceal a boundary mistake. Avoid encoding the completed address again unless the outer context specifically requires another encoding layer.
Which fields identify the destination?
A recipient, username, telephone number or page address identifies where the link points. A message, amount or campaign label supplies additional data but cannot repair an incorrect destination. Check the destination first, then inspect the optional fields. A generated link can be syntactically well formed even when an account does not exist or the recipient is not who you intended. Preserve required country codes, currency codes and absolute URL conventions where the page asks for them. Do not infer missing information from the formatting of a local number or the appearance of an account label.
How do I use open graph generator?
For an example page and example.com/share.jpg, the output contains a website type tag and an absolute image URL ending in /share.jpg.
What does open graph generator support?
The generator writes og:title, og:description, og:type, og:url and og:image. Page and image addresses are normalized to absolute web URLs, and textual values are HTML-escaped. The default content type is website rather than article.
What are the limits of open graph generator?
The generator does not fetch the page or image, verify dimensions or clear a social platform’s preview cache. Your image must be publicly reachable by the platform reading the tags. Install the output in the document head and test sharing after publication.