Articles · Website basics
How to change the preview image when you share your website link
By Armstrong Websites. Published . Updated .
To change the preview image when you share your website link, set a social sharing image for the page. This is a setting called the Open Graph image. Upload a photo sized 1200 by 630 pixels, save the page, and then clear the old preview in the sharing tool for the platform where you posted the link.
When you paste a link into Facebook, LinkedIn, or a text message, the app shows a small card. The card has an image, a title, and a short description. The app does not make those up. It reads them from hidden tags in your page.
If the tags are missing, the app guesses. It may grab your logo, a tiny icon, a random photo from the page, or nothing at all. That is why your link sometimes looks wrong.
What the preview card pulls from your page
Three tags make up the card. Together they are called Open Graph tags.
og:title is the headline on the card. It often matches your page title.
og:description is the short line of text under the headline. It often matches your meta description. How to write a page title and meta description covers both.
og:image is the picture. This is the one most owners want to fix.
You do not need to write these tags by hand. Most website platforms and SEO plugins fill them in from fields in the page editor.
Choose the right image
Pick one clear photo. A photo of your storefront, your team, a finished job, or your best product works well. A plain logo on a white background works less well because it looks empty in the card.
Use these specs:
- Size: 1200 by 630 pixels. This is a wide rectangle with a ratio of about 1.91 to 1. Facebook recommends this size, and other platforms handle it well.
- Format: JPG or PNG.
- File size: Keep it small. Aim for a few hundred kilobytes. How to resize photos so your website loads fast shows how.
Keep the important part of the photo near the center. Some apps crop the card to a square or a narrower shape. A face or a line of text near the edge can get cut off.
Add words to the image only if they are large and short. Small text turns unreadable at card size, and the title already sits next to the picture.
Set the image on your website
The steps depend on your platform. Look for a setting with one of these names: social image, Open Graph image, share image, or social preview.
On many platforms, you find it in one of these places:
- The page editor. Open the page and look for an SEO or social section in the side panel or below the content.
- An SEO plugin. On WordPress, plugins such as Yoast SEO and Rank Math have a social tab for each page. Upload the image there.
- Site-wide settings. Look in the general SEO or site settings for a default share image. This image appears for any page that has no image of its own.
Set a default image first. Then set a custom image on your most shared pages, such as the homepage, a main service page, or a special offer.
Save the page and publish the change. If you cannot find the setting, your platform may not offer it, or it may sit under an advanced menu. A web designer can add the tags to your page template in a few minutes. You can reach this site through the contact page.
Check that the image is in the page
Open your page in a browser. Right-click and choose View page source. Press Ctrl+F (Command+F on a Mac) and search for og:image. You should see a line with a web address that ends in .jpg or .png.
Paste that web address into a new browser tab. The image should load. If it shows an error, the tag points to a file that does not exist. The web address should start with https:// and include your domain name. A short path that begins with a slash often fails in sharing tools.
Clear the old preview
Platforms save a copy of your card the first time anyone shares your link. They keep that copy for days or longer. So you can fix the image and still see the old one.
Facebook has a free tool called the Sharing Debugger. Paste your page address into it. It shows what Facebook reads from your page. Click the button to scrape the page again. Facebook then fetches the new image. LinkedIn has a similar tool called the Post Inspector.
Text messaging apps and some other platforms keep their own saved copies, and they offer no clearing tool. For those, the old preview can last a while. A trick that works is to add a question mark and any text to the end of the link, such as ?v=2. The app sees a new address and builds a fresh card. This is a one-time workaround for testing.
If the old image persists on your own site after an update, the cause may be your browser or site cache. Why your website changes are not showing up walks through that.
Fix the common problems
No image appears at all. The tag is missing, or the image file is too small. Facebook needs an image of at least 200 by 200 pixels, and larger images look better. Use 1200 by 630.
The wrong image appears. Another plugin or the theme may add a second og:image tag. Platforms read the first one. Turn off the extra source, or ask your web designer to remove it.
The image looks blurry. The file is too small and the app stretched it. Upload a full 1200 by 630 file.
The image is cropped badly. Move the main subject toward the center and re-export the photo.
The card shows an old title. Update the title in the same place you set the image, then scrape the page again.
Share links that look good
Every page you share on social media gets judged by its card. Before you post a link in a new place, send it to yourself first and look at the card. If you post often, how to link your website and social media covers more ways to connect the two.
Read next
What is a staging site and does your website need one?
A staging site is a private copy of your website for testing changes. Learn when a small business needs one, how it works, and what to check before you publish.
How to add a request a quote form to your website
A quote form collects the details you need to price a job. Learn which questions to ask, how many fields to use, where to place the form, and how to reply fast.
How to add a careers page to your website
A careers page helps you find staff without paying a job board. Learn what to post, how to list pay, how to collect applications, and what to show when you are not hiring.