Blank link preview on WhatsApp? How to fix it
You share your new website on WhatsApp and instead of a nice card with an image and a title, you get a plain link. Or worse, a preview with the wrong title and a random image. This is one of the most common problems on new websites, and it is usually fixed by adding a few lines of HTML.
How link previews work
When you paste a link, the app (WhatsApp, Facebook, LinkedIn, X, Slack, Discord and others) sends a small bot to fetch your page. The bot reads special tags in the <head> of your HTML and builds the preview card from them. These tags are called Open Graph tags, a standard first created by Facebook.
Two important details:
- The bot reads the HTML as the server sends it. It does not run JavaScript.
- The app caches the preview, so a fix may not show up immediately on a link that was shared before.
The tags you need
Put these inside the <head> of each page, with your own values:
<meta property="og:title" content="Fresh handmade candles in Pune">
<meta property="og:description" content="Soy wax candles made by hand. Free delivery in Pune.">
<meta property="og:image" content="https://yourdomain.com/share-image.png">
<meta property="og:url" content="https://yourdomain.com/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
What each one does:
og:title: the bold title on the card. Keep it short, around 60 characters.og:description: one or two lines under the title.og:image: the picture. This is the one most often missing or broken.og:url: the main address of the page.twitter:card: tells X to show a large image card instead of a small one.
The image rules
Most broken previews come down to the image:
- Use a full address.
https://yourdomain.com/share-image.pngworks./share-image.pngoften does not. - Use the right size. 1200 × 630 pixels is the safe choice for every platform.
- Keep it small. WhatsApp is known to skip large images. Keep the file under about 300 KB. A PNG or JPG with simple graphics is usually well under that.
- Make sure it is public. The image must open in a private browser window without a login.
- Use HTTPS. Some apps refuse images served over
http://.
You can design a share image in a minute with our free Social Share Image Generator. It creates a 1200 × 630 image and gives you the tags to copy.
Why AI-built and single-page sites often have this problem
Sites made with tools like Lovable, Bolt or a plain React or Vite setup are often single-page apps. The server sends an almost empty HTML file, and JavaScript adds the content and the meta tags afterwards.
People see the finished page. The preview bots do not run JavaScript, so they see the empty version with no Open Graph tags, and you get a blank preview.
The fixes, from simplest to best:
- Put the tags directly in
index.html. This gives every page the same preview, which is fine for a small site. - Use pre-rendering so each page is saved as real HTML at build time.
- Use server-side rendering so each page’s HTML, including its own tags, comes from the server.
To see what the bots see, open your page and choose View page source (not “Inspect”). If the og: tags are not in that source, the bots cannot see them either.
Refreshing an old preview
Apps cache previews, sometimes for days. After fixing your tags:
- Facebook and WhatsApp: open Meta’s Sharing Debugger, paste your link and press Scrape Again. WhatsApp shares much of this preview system, so this often helps there too.
- LinkedIn: use LinkedIn’s Post Inspector and inspect the link again.
- X: previews update over time. Sharing the link with a small change, such as
?v=2at the end, makes it fetch a fresh preview. - WhatsApp chats: the old preview may stay in chats where the link was already sent. New messages will use the new preview once the cache updates.
A quick checklist
- View the page source and find
og:title,og:descriptionandog:image. - Open the
og:imageaddress in a private window. It should load, without a login. - Check that the image is 1200 × 630 and under about 300 KB.
- Add
twitter:cardwithsummary_large_image. - Refresh the cached preview with the platform’s debugger.
A free Sitecarely checkup checks your Open Graph and X tags, makes sure the image address is complete, and tells you if your page content is drawn by JavaScript, which is the hidden cause of many blank previews.