Skip to tool content

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 &amp; Jerry &lt;Guide&gt;</title>

Input description

Use "quotes" & <brackets>

Output

<meta name="description" content="Use &quot;quotes&quot; &amp; &lt;brackets&gt;" />

Text nodes escape &, <, and >. Quoted attributes also escape double quotes.

Try the Meta Tag Generator

Build SEO meta tags for your website with structured output.

#meta#seo#tag#generate

Basic Meta Tags

Open Graph Type

Twitter Card Type

Result

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.

MD. Mohi Minul Islam Yash

Full-Stack Software Engineer

© 2026 MD. Mohi Minul Islam Yash. All rights reserved.