Meta Tag Generator
Build search and social metadata, then copy markup whose text and attribute values are escaped correctly.
Fill in the title, description, canonical URL, and social fields; the tool produces the markup in the preview. Titles and descriptions are escaped as text, and attribute values are escaped for double-quoted attributes, so special characters cannot break out of the tag.
The keywords field is retained for legacy systems but is ignored by Google. Canonical URLs help search engines consolidate duplicate URLs; Open Graph and Twitter tags control the social preview.
Escaping special characters
Input title
Tom & Jerry <Guide>Output
<title>Tom & Jerry <Guide></title>Input description
Use "quotes" & <brackets>Output
<meta name="description" content="Use "quotes" & <brackets>" />Text nodes escape &, <, and >. Quoted attributes also escape double quotes.
Try the Meta Tag Generator
Basic Meta Tags
Open Graph Type
Twitter Card Type
Generated Meta Tags
<!-- Primary Meta Tags --> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="robots" content="index, follow" />
Text is escaped for &, <, and >; quoted attributes also escape double quotes. Keywords are kept for legacy systems and are ignored by Google.