OGP Checker
Enter a URL and this tool reads the page’s Open Graph (OGP) and X (formerly Twitter) card tags and previews how the link will look when shared on social media.
The og:image is actually fetched to check its dimensions, file size, and format. Missing tags, image size problems, and other issues are listed together, so you can use it before publishing or to find out why an image does not appear when a link is shared.
How to use
- Enter the URL of the page you want to check. You can omit “https://”.
- Press “Check” to read the page’s tags and fetch the og:image.
- The issues to fix, a preview for each platform, the image details, and the list of tags found are shown.
- Copy the URL of the result page to share the same check.
If the URL redirects, up to 10 redirects are followed, and the tags of the final page are read.
Main tags
Social media platforms read the following tags in the page’s <head> to decide the title, description, and image of a shared link. og:* tags should use the property attribute, and twitter:* tags the name attribute.
- og:title
- The title shown when the page is shared. Many platforms fall back to <title>, but a short title that describes the page, without the site name, works best.
- og:description
- The description shown below the title. Long text is cut off, so put the main point first.
- og:image
- The image shown when the page is shared. Use an absolute URL starting with https. Adding og:image:width and og:image:height helps the image appear from the very first share.
- og:image:alt
- Alternative text for the image. It tells screen reader users what the image shows.
- og:url
- The canonical URL of the page. Use the same URL as <link rel="canonical">. Share counts are grouped by this URL.
- og:type
- The type of page. website is common for home pages and article for articles.
- og:site_name
- The name of the site. Facebook, Slack, Discord, and others show it above the title or nearby.
- twitter:card
- The card type on X. summary_large_image shows a large image; summary, or no tag, shows a small square image.
- twitter:title, twitter:description, twitter:image
- The title, description, and image for X. When they are missing, og:title, og:description, and og:image are used, so add them only when you want something different on X.
OGP image size
Most platforms recommend 1200×630 px (an aspect ratio of 1.91:1). Images smaller than 600×315 px may be shown as a small thumbnail instead of a large image.
Keep the file size at 5 MB or less (the limit on LinkedIn and X). JPEG and PNG are the safest formats; WebP and GIF are shown on most platforms. SVG, AVIF, HEIC, and similar formats may not be shown.
Some platforms crop the edges of the image, so keep text and logos near the center.
When the preview does not change after you fix the tags
Platforms store (cache) the tags and image they have read for a while. Slack and Discord keep them for about 30 minutes, and Facebook keeps using the same image until the image URL changes.
When you replace the image, change its file name or add something like ?v=2 to the URL so it is read as a new image. Facebook, LinkedIn, and Discord let you re-fetch or check a link with the official tools below.
How pages are fetched
The page and image are fetched from this site’s server (Cloudflare). Pages that require a login and internal pages cannot be checked. Some sites cannot be checked because of bot protection.
Most platforms read tags without running JavaScript, so this tool also reads only the HTML returned by the server. Tags added later by JavaScript may not be read by the platforms either.
The previews are approximations based on each platform’s published information and may differ from how links actually appear. The rules for which tag is used are based on official documentation for Discord and LINE and are estimated for the other platforms.
Preview images are loaded by your browser directly from the site that hosts them (so that site can see your IP address). The URLs you enter and the results are not stored.
FAQ
What is OGP?
OGP (Open Graph Protocol) is a convention for writing the title, description, and image to show when a page is shared on social media in the page’s <head>. They are set with <meta> tags such as og:title, og:description, and og:image.
Why does no image appear when I share a link?
Common causes are a missing og:image, a relative URL, an image URL that cannot be fetched (for example, 404), an image that is too small, or an unsupported format such as SVG. The “Issues to fix” section shows which one applies. If the preview still does not change after you fix it, the platform’s cache may be the cause.
Do I also need tags for X (formerly Twitter)?
Not necessarily: when twitter:title and similar tags are missing, the og:* values are used. However, to show a large image you need to set twitter:card to summary_large_image.
Can I check pages that require a login, or pages that are not public yet?
This tool can only check pages that are publicly available on the internet. Platforms cannot read the tags of pages that require a login either, so no preview appears when they are shared.
Are the URLs I check recorded?
The URLs you enter and the results are not stored. The URL used to share a result puts the checked URL after “#”, so it does not appear in this site’s access logs.