← Back to Blog How to Write Meta Tags: Title, Description and Open Graph

How to Write Meta Tags: Title, Description and Open Graph

Share:

You finish a new page, paste its link into a WhatsApp group, and the preview looks wrong: no image, a strange title, or just a bare link. In Google, the same page might show a cut-off title or text you did not choose. These are usually meta tag problems.

This guide explains the tags that matter, in plain words, and shows how our Meta Tags Generator helps you write them.

What meta tags are

Meta tags are lines of HTML inside the <head> section of a page. Visitors do not see them, but search engines and social apps read them. They help tell those systems what the page is about. They do not control the result. Search engines can ignore or rewrite what you wrote.

Two audiences

Search engines

Google and Bing look at your <title> and your <meta name="description">. Google often uses them for the headline and snippet in results, but it may pick other text from the page if it thinks that fits the search better.

Social apps and messengers

Facebook, LinkedIn, WhatsApp and similar apps read Open Graph tags (og:title, og:description, og:image). X (Twitter) reads its own card tags. These decide the title, description and image shown when someone shares your link. They do not affect Google rankings. Apps also keep a cached copy of the preview, so after you change a tag, it may take a while to show up.

How long should a title and description be?

Common advice is about 50 to 60 characters for a title and about 120 to 160 characters for a description. Google actually cuts text by pixel width, not by character count, so treat these numbers as a rough guide. Put the most important words first, and write for a person, not a robot.

The generator shows an approximate search preview as you type, but it does not count characters for you. Use it to see how your title and description look, and remember that Google may show something different.

The og:image

If a link preview shows no picture or a badly cropped one, the image is usually the cause. A good starting point:

  • Use an image of about 1200 by 630 pixels. This shape works well on most platforms.
  • Use the full web address, starting with https://, not a short path such as /images/banner.jpg. Outside apps cannot find a relative path.
  • Keep the file reasonably small so it loads quickly.
  • Make sure the image can be opened without logging in.

What the generator makes

  1. Core tags: charset, viewport, title, description, optional keywords and robots. Google ignores the keywords tag, so you can leave it empty.
  2. Social tags (optional): Open Graph and Twitter card tags, using the page URL, image URL, site name and page type.
  3. Verification tags (optional): codes for Google Search Console, Bing and Pinterest.
  4. Mobile tags (optional): theme colour, Apple app ID and format detection.

Fill in your details, check the code on the right, press Copy All Tags, and paste the result into the <head> of your page. The tool works in your browser, so your text is not sent to our server.

Things the tool does not do

It does not write a canonical tag. If the same page can be reached at more than one address, such as with and without www, add a <link rel="canonical" href="..."> line yourself, pointing to the address you prefer. It also does not check your live page. Test your finished page with the free tools from Google Search Console and from the social platforms.

Common mistakes

  • The same title on every page. Each page should have its own title and description.
  • Stuffing keywords. A list of keywords in the description reads badly and does not help.
  • A missing viewport tag. Without it, phones may show the page zoomed out. The generator adds this line for you.
  • No image URL, or a relative one. Always give a full address.
  • Noindex left on by mistake. If you set robots to noindex while testing, remember to change it back before launch.

Related tools

Once your tags are ready, you may also want a robots.txt file to guide crawlers. Our WebTools also include a sitemap generator and a JSON-LD schema generator.

In short

Meta tags are small, but they decide the first impression of your page in search results and in chats. Write a clear, honest title and description, add a proper image address, test the preview, and keep in mind that search engines make the final choice.

M
Written by Muhammad Faraz

Co-founder and developer of AioGalaxy. Builds and maintains the Eaglefly, AIVoice and free tools platforms, and writes the blog.

Enjoyed this? Explore the AioGalaxy toolset

Everything mentioned here — and a lot more — is free to try right now, no sign-up walls.

Explore AioGalaxy →

Comments

No comments yet — be the first to share your thoughts.