How to Preview HTML Meta Tags Before Publishing
Preview title, description, Open Graph and social card tags before publishing, then verify canonical URLs, image access, and the final page source.
By TIG Tools editorial teamPublished October 26, 20266 min read
A meta tag preview helps you catch awkward titles, cut-off descriptions, and missing social images before a page goes live. Use it to review how key metadata may appear, then check the published HTML itself: previews are useful approximations, not a guarantee of what every search engine or social platform will display.
Know which tags you are checking
Start with the page title, description, social sharing tags, and canonical URL. These values can overlap, but they serve different purposes and do not have to be identical.
- Title: The text inside the HTML
<title>element. Browsers use it for the tab title, and search engines may use it as a search result title. Search engines can choose different text for a result. - Meta description: A short summary in a
<meta name='description'>element. Search engines may use it as a result snippet, but can instead select text from the page. - Open Graph tags: Metadata such as
og:title,og:description,og:image, andog:url, commonly used to describe a page when it is shared. - Social card tags: Platform-specific metadata, such as
twitter:card, that can influence how a link is displayed on a social network. The exact appearance depends on the platform and its current behavior. - Canonical URL: A
<link rel='canonical'>element that identifies the preferred URL for a page when similar or duplicate URLs exist. It is a signal to search engines, not a guarantee that they will select that URL.
These tags normally belong in the document’s <head>. A preview can help you inspect text and layout, but it cannot confirm that your live page serves the intended HTML to crawlers.
Preview the title and description
Enter the planned title and description in a meta tag preview tool. Read the result as a visual check: does the title identify the page, and does the description explain what a visitor will find?
There is no single character limit that guarantees a title or description will display in full. Search result layouts can vary by device, query, and other factors, and text may be shortened or rewritten. Avoid writing to an exact pixel or character cutoff. Put the most useful information early, keep the wording specific to the page, and remove repetition that does not help readers.
Check that each page has a clear title and a description that matches its actual content. Do not use the same generic description across unrelated pages. If the page is not ready to publish, make sure draft or placeholder text has not been left in the metadata.
Preview Open Graph and social cards
Use the Open Graph preview to review the sharing information and image together. Check that the title and summary make sense when seen without the surrounding page, and that the image is relevant, legible at a small size, and not cropped in a way that hides important details.
A typical set of tags looks like this:
<head>
<title>Choose a Desk Lamp for a Small Workspace</title>
<meta name='description' content='Compare compact desk lamps by brightness, controls, and fit for a small home workspace.'>
<meta property='og:type' content='article'>
<meta property='og:title' content='Choose a Desk Lamp for a Small Workspace'>
<meta property='og:description' content='Compare compact desk lamps by brightness, controls, and fit for a small home workspace.'>
<meta property='og:url' content='https://example.com/guides/desk-lamps/'>
<meta property='og:image' content='https://example.com/images/desk-lamp-guide.jpg'>
<meta name='twitter:card' content='summary_large_image'>
</head>
This is an example structure, not a required set of identical values for every page. Use an absolute, publicly reachable image URL, and check that the image is the intended one. The social platform’s crawler needs to be able to fetch it; a preview tool showing an image from entered text does not prove that the live image URL is accessible to that crawler. Platform requirements and display behavior can change, so check the current guidance for any platform that is important to your launch.
Open Graph’s og:url describes the page URL for sharing. It is related to, but separate from, the canonical link. If both are present, confirm that they point to the intended public version of the page rather than a staging domain, tracking URL, or outdated address.
Check the canonical URL
A canonical link typically looks like this:
<link rel='canonical' href='https://example.com/guides/desk-lamps/'>
Check the complete URL, including the correct domain, path, and trailing-slash convention used by your site. The canonical should not point to a staging site, a deleted page, or an unrelated URL. For a page intended to stand on its own, a self-referencing canonical is common. If your site intentionally consolidates duplicate or very similar pages, verify that the selected destination is the one you want search engines to treat as preferred.
A canonical tag does not redirect visitors. It also does not force a search engine to index a page or choose that URL. Make sure internal links, redirects, sitemap entries, and canonical values are consistent where practical.
Worked example: a new guide page
Suppose you are publishing a guide at https://example.com/guides/desk-lamps/. The working title is Choose a Desk Lamp for a Small Workspace, and the page compares lamp size, brightness, and controls.
- Use the title preview to check that the title reads naturally and identifies the guide without repeating the site name unnecessarily.
- Write a description that summarizes those comparisons rather than promising advice the article does not contain.
- In the Open Graph preview, check that the sharing title and summary remain understandable on their own. Select an image that clearly relates to the guide, not a generic image from another section of the site.
- Set
og:urland the canonical link to the final public page URL. If the draft was created onstaging.example.com, replace that address before launch. - Publish or deploy, then inspect the page source and confirm the live HTML contains the values you approved.
For drafting or revising the tag markup, a meta tag generator can help assemble the values. Treat its output as a starting point: confirm that each URL, image, and text value is right for this specific page before adding it to your site.
Check the page before launch
Previewing the text is only one part of the check. Use this checklist before publishing:
- Inspect the rendered page and source. Confirm that the title, description, Open Graph tags, social card tags, and canonical are in the live document’s
<head>, not just in a design mock-up or a JavaScript state that crawlers may not receive. - Check the final URL. Open the page at its public address. Confirm it loads successfully, uses the intended HTTPS URL, and does not redirect somewhere unexpected.
- Check the image URL. Open it directly, confirm it loads without signing in, and make sure it is the correct image. Also consider whether the image’s crop and text remain clear when displayed small.
- Look for conflicts. Check for duplicate title or description tags, multiple canonical links, or old tags left by a theme, plugin, or template. Resolve conflicts in the source that actually reaches the browser.
- Compare environments. Make sure production does not retain staging URLs, preview titles, temporary descriptions, or placeholder images. Check that the canonical and
og:urlrefer to the intended public page. - Review after deployment. A preview created from your draft cannot confirm what the server published. Inspect the live page source and, where available, use the relevant search or social platform’s own inspection tools. Some platforms may cache a previous version, so a shared-link preview may not update immediately.
Summary
- Preview titles and descriptions for clarity, but do not assume a fixed display length or guaranteed search snippet.
- Review Open Graph and social card text and images together; verify image URLs are publicly reachable.
- Keep the canonical URL and
og:urlaligned with the intended public page, while remembering they serve different roles. - Before launch, inspect the live page source for correct tags, URLs, and duplicate or leftover metadata.
Try it now
Use the Meta Tag Preview for free, right in your browser. No sign-up, and your files stay on your device.
Open Meta Tag Preview