Meta 标签生成器
Generators为任意页面构建 SEO head 标签 — title、description、canonical、robots、带智能回退的 Open Graph、Twitter 卡片和 theme-color — 并实时提示长度。
Try:
(文档为英文)
What it does
The Meta Tags Generator assembles the <head> tag set a page needs for search and social: <title>, description, canonical URL, robots, Open Graph (with og:title / og:description / og:url falling back to your base fields) and a Twitter card. As you type, it warns when the title passes 60 characters or the description passes 160 — the points where search results start truncating. Hard errors (a missing title, a relative og:image, a non-hex theme color) replace the output with the exact fix.
Everything runs 100% client-side. Nothing you type is sent anywhere.
How to use it
- Fill Title and Description — the tag set appears immediately.
- Optionally add a canonical URL, robots directives (
index, follow), a Twitter card type and handle. - Expand the Open Graph overrides when the social card should differ from the search snippet; blank fields keep the fallbacks.
- Copy the finished block into your page’s
<head>.
Examples
- Title
CosmoDev — free developer tools, descriptionDozens of fast, private, browser-only tools., canonicalhttps://dev.cosmolabs.org/→ emits the title, description and canonical tags, plus the full Open Graph block derived from the same fields. og: imageset to/local/icon.png→ the output switches to the error tone withog:image must be an absolute http(s) URL.until you use a full URL.
Good to know
- Open Graph only appears when you opt in: an explicit og field or a canonical URL brings the block (with
og:type website); a bare title/description stays minimal. - The 60/160 warnings never block emission — they are advice, not errors.
- Share copies the URL with your title, description and canonical in the link hashhashA one-way function that maps data of any size to a fixed-length digest. Same input, same digest; any change, different digest; not reversible..