The Open Graph Protocol defines four required properties—og:title, og:type, og:image, and og:url—as the basic metadata for a shareable web object. The Open Graph Generator creates that metadata in the browser and returns a protocol-only block with escaped attribute values. Here, “preview” means reviewing the generated source and checking the published card with each target platform’s current debugger; the tool does not simulate a platform card.

Separate Code Review From a Live Card Preview
A generated meta block and a rendered share card are different layers. The generator prepares protocol metadata and escapes it for safe insertion into an HTML page. It does not fetch the page or image, render a card, check platform-specific image specifications, or predict how text and images will be cropped. A valid block can still produce different results because each sharing service applies its own layout, cache, and presentation rules.
- Source review: Inspect the generated properties, stable order, URLs, and escaped values before publishing.
- Live preview: After deployment, use each target platform’s current preview debugger to check crawl access, image handling, and cache refresh.
Know the Properties in the Generated Block
The Open Graph Protocol defines the basic properties used to describe a shared web object. This generator writes them as property-based meta elements rather than name-based elements, with the four required properties appearing first.
| Property | Status | Purpose |
|---|---|---|
| og:title | Required | Names the shared object. |
| og:type | Required | Classifies the object as a website or article. |
| og:image | Required | Provides a representative public image. |
| og:url | Required | Identifies the permanent object URL. |
| og:description | Optional | Summarizes the object for a richer preview. |
| og:site_name | Optional | Names the larger site or publication. |
| og:locale | Optional | Identifies the object language and territory. |
If any required value is missing, the generator blocks output rather than producing an incomplete block. Optional fields are useful, but they should match the visible page rather than add claims that a visitor cannot confirm.
Generate and Review a Valid Meta Block
- Enter an accurate title. Use the name of the page or shared object, not a generic phrase that could misrepresent its content. The generator trims supplied text, applies a length bound, rejects control characters, and escapes the final attribute value.
- Choose the correct object type. Select website or article according to the page being shared. The interface deliberately limits the choice because richer Open Graph types require additional structured properties. The selected type is also checked at runtime before output.
- Add the permanent object URL and image URL. Both values must be absolute HTTP or HTTPS addresses without embedded credentials or fragments. The browser URL parser normalizes them. Use an image that the sharing service can crawl, but remember that the generator validates only the URL shape and never fetches either address.
- Complete the optional metadata if it adds useful context. Add a concise description, the site name, or a locale. The locale uses the conservative language_TERRITORY form, such as en_US, with a two-letter language and two-letter territory.
- Generate and inspect the output. Confirm that the required four properties appear first and that the block uses property syntax. Values containing ampersands, quotes, or angle brackets are HTML-escaped so they cannot break the surrounding meta element.
- Copy only the protocol block into the canonical page head. Paste it as HTML rather than as visible page text, and do not encode the entire block a second time. Avoid publishing the same properties through both a framework and a plugin.
- Check the delivered page and platform result. Inspect the source actually returned by the site, then use each platform’s current debugger to review crawl access, image processing, and cache behavior.
Install the Tags in the Canonical Head
Place the generated elements in the HTML head of the canonical page so the metadata is available when the URL is shared. The WHATWG meta element rules describe how metadata elements belong in the document structure; for this workflow, treat the generator’s output as ready-to-insert HTML.
Do not paste the block into a visible content area, escape every angle bracket again, or combine it with an automatic injection that creates duplicate or conflicting properties. After saving, inspect the delivered source rather than relying only on the CMS editor. Build tools and plugins can reorder, overwrite, or add conflicting properties, so the page you intended to edit may not be the exact source the crawler receives.
Verify Delivered Source and Platform Previews
Use each target platform’s current preview debugger after deployment. Check that the public page remains accessible to its crawler, that the image response can be retrieved, and that the platform handles the supplied media as expected. A valid Open Graph block does not guarantee a particular layout: services may crop images, truncate text, ignore fields, display cached data, or apply account-level policies.
Compare three layers: the raw source delivered by the page, the fetched image response, and the live platform preview. If the preview still shows old information after an update, allow for that platform’s cache-refresh behavior. When the page moves or changes identity, update the URL, visible content, image, and every published representation together so they continue to describe the same object.
What the Generator Can and Cannot Validate
The tool validates input shape and produces auditable metadata, but it cannot confirm whether a remote resource or platform will accept it.
| Checked in the generator | Still requires separate verification |
|---|---|
| Absolute HTTP(S) URL shape, with credentials and fragments rejected | HTTP status, redirects, authentication, robots controls, and crawler access |
| Image URL syntax | Image availability, MIME type, dimensions, byte size, aspect ratio, and platform rules |
| Trimmed and bounded text with control characters rejected | Editorial accuracy and platform decisions about cropping or truncation |
| Website or article type, checked again at runtime | Structured fields required by music, video, profile, and other richer types |
| One conservative language-and-territory locale shape | Alternate locales and script subtags that need additional protocol properties |
| Stable required-first order, property syntax, and attribute escaping | Service support, rendered appearance, caches, and platform-specific policies |
Because the generator does not fetch either URL, use a separate browser or request check when you need to confirm the response. This separation is deliberate: valid syntax is not the same as a reachable image or a successful social fetch.
Choose the Right Type, Locale, and Protocol Scope
Use this focused generator for a website or article that needs the four required properties and the available optional fields. Music, video, profile, and other structured object types have their own required or optional properties, so use a specialized implementation when one of those types needs richer metadata. Do not substitute a generic free-text type, because that can create an unsupported combination without the corresponding structured fields.
The locale field intentionally accepts one two-letter language and two-letter territory combination. Alternate locales and script subtags require additional protocol properties and editorial decisions outside this form. The generator also does not create Twitter Card metadata. Some platforms can consume Open Graph values as fallbacks, but service-specific tags and validation rules remain separate concerns; keeping the protocols separate prevents a guessed cross-platform field from being mistaken for an Open Graph requirement.
If you're weighing options, How Do I Compare Approaches to Use SERP Snippet Preview covers this in detail.
If you're weighing options, Generate a Canonical Tag With the Canonical Tag Generator covers this in detail.