---
title: "OGP Tag Generator - Generate meta tags for social sharing"
description: "Generate Open Graph meta tags from a page title, description, URL, and image. Set og:type, og:locale, and X card details as needed, then paste the generated tags into your HTML head."
canonical_url: "https://web-toolbox.dev/en/tools/ogp-tag-generator"
meta:
  author: K
  "og:description": "Generate Open Graph meta tags from a page title, description, URL, and image. Set og:type, og:locale, and X card details as needed, then paste the generated tags into your HTML head."
  "og:image": "https://web-toolbox.dev/og/en/tools/ogp-tag-generator-30003eed.png"
  "og:image:alt": "OGP Tag Generator"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "OGP Tag Generator - Generate meta tags for social sharing"
---

> Index of every page on this site: [llms.txt](https://web-toolbox.dev/llms.txt)

# **OGP Tag Generator**

Generate Open Graph and X card meta tags

## **Page details**

**Title (og:title)**

0 / 60 characters (guideline)

**Description (og:description)**

0 / 160 characters (guideline)

**Page URL (og:url)**

**Site name (og:site\_name)**

## **Image**

**Image URL (og:image)**

Recommended size: 1200×630px (about 1.91:1)

**Image width (og:image:width)**

**Image height (og:image:height)**

**Alt text (og:image:alt)**

## **Page type and language**

**Page type (og:type)**

**Language (og:locale)**

Use language\_REGION format (e.g. en\_US)

## **X card**

**Add X card tags**

Tags appear here as you fill in the fields

## What is OGP Tag Generator?

OGP Tag Generator builds Open Graph and X card meta tags from a page title, description, URL, and image. Empty fields are left out, so you can paste only the tags you need into your HTML `**<head>**`.

## How to Use

1. Enter the page title, description, and URL.
2. Enter the image URL and site name.
3. Copy the generated tags into your HTML `**<head>**`.

You do not need to fill in every field. Start with the title, description, and page URL, then add an image URL or site name as needed.

## Main Settings

### Title and Description

These become `**og:title**` and `**og:description**`. Share cards cut off long text, so aim for around 60 characters for the title and 160 for the description.

### Image

Set `**og:image**` to a public URL that crawlers can access.

Width, height, and alt text describe the image, so they are not output until an image URL is entered. Enter positive integers for width and height.

1200×630 (about 1.91:1) displays well as a large card on X and Facebook.

### Page Type and Language

`**og:type**` describes the page. Choose Article for a blog post and Product for a product page. Website works for most pages. Profile and Book pages are supported as well.

Set `**og:locale**` to a language and region such as `**ja_JP**`. Leave it empty to omit the tag.

### X Card

Turn on Add X card tags to output `**twitter:card**`, `**twitter:site**`, and `**twitter:creator**`.

The card type is chosen automatically: Large image when an image URL is set, Summary otherwise. Choose Large image or Summary to keep it fixed.

Enter X account and creator account names such as `**@example**`. App cards and player cards are not covered because they require additional tags.

## Use Cases

- Adding share tags to a page before publishing
- Preparing cards for a blog post or product page
- Creating tags to paste into a CMS or template
- Rebuilding the tags on an existing page

## Things to Keep in Mind

- Use public absolute URLs starting with `**https://**` for the page URL and image URL
- X and Facebook cache card information, so changes can take time to appear
- You can check the actual appearance with [**OGP Checker**](https://web-toolbox.dev/en/tools/ogp-checker) or [**OGP Image Simulator**](https://web-toolbox.dev/en/tools/ogp-image-simulator)

**How was your experience?**

Last updated: November 5, 2026

### **Related Tools**

- [<h4>**OGP Checker**</h4>](https://web-toolbox.dev/en/tools/ogp-checker)
- [<h4>**OGP Image Simulator**</h4>](https://web-toolbox.dev/en/tools/ogp-image-simulator)
- [<h4>**Heading Extractor**</h4>](https://web-toolbox.dev/en/tools/heading-extractor)
- [<h4>**Suggest Keyword Extractor**</h4>](https://web-toolbox.dev/en/tools/suggestion-extractor)
- [<h4>**URL Bulk Opener**</h4>](https://web-toolbox.dev/en/tools/url-bulk-opener)
- [<h4>**URL Parser**</h4>](https://web-toolbox.dev/en/tools/url-parser)
- [<h4>**Border Radius Generator**</h4>](https://web-toolbox.dev/en/tools/border-radius-generator)
- [<h4>**Box Shadow Generator**</h4>](https://web-toolbox.dev/en/tools/box-shadow-generator)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://web-toolbox.dev/en#website","@type":"WebSite","description":"アカウント登録不要で使える無料Web開発ツール80種類以上。JSON整形、Base64変換、カラーコード変換、QRコード生成などをブラウザ上で瞬時に実行。開発者の作業効率を大幅に向上させます。","inLanguage":"en-US","name":"Web ToolBox","url":"https://web-toolbox.dev/en","translationOfWork":{"@id":"https://web-toolbox.dev/#website"}},{"@id":"https://web-toolbox.dev/en/tools/ogp-tag-generator#webpage","@type":"WebPage","description":"Generate Open Graph meta tags from a page title, description, URL, and image. Set og:type, og:locale, and X card details as needed, then paste the generated tags into your HTML head.","name":"OGP Tag Generator - Generate meta tags for social sharing","url":"https://web-toolbox.dev/en/tools/ogp-tag-generator","breadcrumb":{"@id":"https://web-toolbox.dev/en/tools/ogp-tag-generator#breadcrumb"},"isPartOf":{"@id":"https://web-toolbox.dev/en#website"},"potentialAction":[{"@type":"ReadAction","target":["https://web-toolbox.dev/en/tools/ogp-tag-generator"]}]},{"@id":"https://web-toolbox.dev/en/tools/ogp-tag-generator#/schema/web-application/1","@type":"WebApplication","applicationCategory":"UtilityApplication","description":"Generate Open Graph meta tags from a page title, description, URL, and image. Set og:type, og:locale, and X card details as needed, then paste the generated tags into your HTML head.","name":"OGP Tag Generator - Generate meta tags for social sharing","operatingSystem":"Windows, macOS, Linux, Android, iOS"},{"@id":"https://web-toolbox.dev/en/tools/ogp-tag-generator#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://web-toolbox.dev/en","position":1},{"@type":"ListItem","name":"Web","item":"https://web-toolbox.dev/en/categories/web","position":2},{"@type":"ListItem","name":"OGP Tag Generator","item":"https://web-toolbox.dev/en/tools/ogp-tag-generator","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://web-toolbox.dev/sitemap.md) for all pages.
