About the Meta Tag Generator
A page needs a consistent set of meta tags so that search results, link previews on social networks and messaging apps all show the right title, description and image. This generator produces that set from four values: the title tag, meta description, canonical link, viewport, and the matching Open Graph and Twitter Card tags, with an optional robots directive. Values are HTML-escaped so quotes and ampersands cannot break the markup.
Keep the title under about 60 characters and the description under 155 so they are not cut off in results. The image should be at least 1200 by 630 pixels for a large preview card. Paste the output into the <head> of the page. To verify the markup, the HTML Validator checks it, and the HTML Viewer shows a page using it.
How to use
- Enter the title, description, canonical URL and image.
- Copy the generated tags.
- Paste them into the head of your page.
Common questions
- How long should the title and description be?
- About 60 characters for the title and 155 for the description to avoid truncation in results.
- What image size works for previews?
- At least 1200 by 630 pixels for a large card on Twitter, Facebook and messaging apps.
- Are the values escaped?
- Yes. Quotes, ampersands and angle brackets are converted to entities.