DFK Studio

Write the tags a shared link is built from

Fill in the title, the description and the image and get the Open Graph, twitter: and canonical tags back, escaped properly and with the sizes declared.

  • Free, no account
  • Nothing is uploaded
  • Runs in your browser

How it works

  1. 1 What goes in A title, a description, an image
  2. 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
  3. 3 What comes back The head block, escaped and sized

What it does

The tags themselves are simple. What is easy to get wrong is the part with no error message: a quote inside a title silently ends the attribute and takes the rest of the tag with it, an image address written relative resolves in a browser and nowhere else, and og:image:width and og:image:height are left off by almost everybody — which is why the first person to share a link so often sees no picture. This writes the block properly escaped, resolves the image address against the page's own, and will measure the image and fill the two size tags in for you.

This page does the work itself. Your page is handled by the browser and never sent anywhere — there is no server here to send it to.

Questions

Why so few twitter: tags?

Because X falls back to Open Graph on its own for the title, the description and the image, so repeating them is three more tags that have to be kept in step with the three above them — and when they drift, the card and the page say different things. The only twitter: tag that changes anything is twitter:card, which decides whether the card is the large one or the small one. The alt text is worth the second tag because the two are read by different things.

What goes in the description?

One or two sentences that would make sense on their own, because that is how they will be read. Under about 160 characters survives a search result whole; a card gets a little more, and less on a phone. It is not a place for keywords: a search engine has read the page and writes its own summary when yours is padded.

Why is there no structured data here?

Because it is a different job with a different audience. No chat app and no social network reads JSON-LD — the card they draw comes entirely from the tags above. Structured data is for search engines, and the version worth having says things this page cannot know: who wrote the piece, when, and whether it was changed since. A half-filled Article node with no author and no date is not a smaller version of that, it is a claim about the page that is not true, and it is the kind of claim a search engine notices. Write it where the page is built, from what the page actually knows.

Every shelf