Why link previews matter
When a link is shared in a chat, a post or an email, the preview card is the first thing people see. A clear title, a short description and a good image turn a bare URL into something people want to open. Open Graph and X card tags are how you choose what that card shows, instead of leaving it to each app to guess.
The tags you need
- og:title and og:description: the headline and summary on the card.
- og:image: the picture, as an absolute https URL.
- og:url: the canonical address, so shares of different URL variants are counted together.
- og:type and og:site_name: what kind of page it is and the site it belongs to.
- twitter:card: the layout X uses; summary_large_image shows a wide image.
How this generator works
An AI model drafts the title and description from the page details you enter, within the lengths each platform shows. Read and edit them: the AI only knows what you gave it and can still get details wrong. Everything else, including the tag list and HTML escaping, is built by fixed rules in your browser, so the code you copy is valid even if you rewrite the text completely.
Paste the tags inside the <head> of the page. If your CMS or framework already sets some of them, replace those rather than adding duplicates.