Schema Generator

WebSite Schema Markup Generator

Generate Google-compliant JSON-LD WebSite schemas. Easily configure brand alternates and Sitelinks Searchbox SearchAction properties with live validation previews.

SEO agencies, local businesses, and web managers use structured site graphs to claim brand identifiers in search directories. This WebSite Schema Markup Generator compiles standardized JSON-LD codes with custom alternates, ensuring Google displays your intended site name. When to use it: When launching a brand homepage, restructuring search enablers, or optimizing internal search routes. What it solves: Prevents syntax errors, incorrect template formatting, missing parameters, and invalid search query placeholder structures. Why it matters: Google requires clean WebSite declarations on homepage URLs. Correctly configuring the SearchAction potentialAction makes your site eligible for the Sitelinks Searchbox, boosting CTR.

Schema Parameters

Must contain the exact placeholder: {search_term_string}

Google Search Result Preview

https://example.com β–Ό

My Brand

Configure your structured metadata to claim your branding in organic searches and help clients find pages immediately.

πŸ”

Generated JSON-LD

How Sitelinks Searchbox Schema Works

This tool converts form parameters into a standard JSON-LD (JavaScript Object Notation for Linked Data) script. Google reads this code block to extract metadata parameters for its search index.

The generated schema structure consists of two main parameters:

  • WebSite Definition: Declares that this is a website object, assigning a canonical name, URL location, and alternative names.
  • SearchAction PotentialAction: Encodes the query mapping parameters. The `target` parameter outlines the query URL, while `query-input` specifies that the input parameter name is `search_term_string`.

Before / After Sitelinks Schema Output

Example JSON-LD WebSite Schema

❌ Before (No Schema)

<!-- Plain HTML Homepage -->
<title>My Store</title>

<!-- Google will pick brand details
     based on heuristics -->

βœ… After (With JSON-LD WebSite Schema)

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "My Store",
  "url": "https://mystore.com",
  "potentialAction": {
    "@type": "SearchAction",
    "target": "https://mystore.com/search?q={search_term_string}",
    "query-input": "required name=search_term_string"
  }
}
</script>

Workflow Scenarios

Developer Production Workflow
Generate schema structures for Next.js or Nuxt root layout components. Configure custom Shopify home templates to support searchboxes. Claim brand title listings after rebranding site parameters.

Common WebSite Schema Mistakes

Incorrect Query Parameter Variable Name

Google explicitly requires the query parameter inside the target property to be named exactly `{search_term_string}`. Any variations will cause parsing failures.

❌ "target": "https://example.com/search?q={my_query}"
βœ… "target": "https://example.com/search?q={search_term_string}"

Best Practices for Sitelinks Searchbox Configuration

  • Root Page Only: Embed WebSite JSON-LD schema blocks only on your homepage index URL.
  • Match exact search routes: Test the target search pattern separately in your browser to verify it leads directly to your internal search page.
  • Add Brand Alternates: Specify acronyms or abbreviations to help Google map related user searches to your brand.

Frequently Asked Questions

What is WebSite schema markup and why does my homepage need it?

WebSite schema markup is structured data (typically JSON-LD) that helps search engines understand details about your site, such as its official brand name, alternate names (acronyms), and internal search engine configurations. Setting this on your homepage makes it clear to Google what title should display in search listings. It is also required if you want to qualify for Google Sitelinks Searchbox features.

How does the Google Sitelinks Searchbox feature work?

When users search for your brand or company name, Google may display an inline search box below your main search listing. When users type inside this search box, Google redirects them to your internal site search page, bypassing intermediate search pages. This directs brand traffic straight to your specific product searches. The feature is enabled by specifying a SearchAction schema containing a target URL parameter.

What is the required format for the search query input pattern?

The search target URL must contain a variable placeholder query string, formatted exactly as search_term_string enclosed in curly braces, like: {search_term_string}. For example, if your internal site search URL is https://example.com/search?q=query, the schema target pattern must be https://example.com/search?q={search_term_string}. This is the exact tag pattern Google looks for.

Can I place WebSite schema markup on every page of my website?

No, WebSite structured data should only be placed on the home page (root index URL) of your domain. Placing WebSite schema on sub-pages or across every template file can confuse search engines and dilute your structured data focus. For inner pages, you should use schemas like WebPage, Article, or BreadcrumbList.

What is the purpose of the alternateName parameter in the schema?

The alternateName parameter tells search engines about other names your brand is commonly known by, such as acronyms, short forms, or localized spellings (e.g. "FST" for "FlowStack Tools"). Declaring these alternates helps Google associate brand searches and abbreviations with your primary domain, strengthening search presence.

How do I test my generated WebSite schema for syntax errors?

Once generated, copy the JSON-LD script block and paste it into Google's Rich Results Test tool or Schema.org's Structured Data Validator. These official validators scan the code for syntax typos, missing parameters, or invalid nesting structures, confirming if your code qualifies for rich search listings.

Is it guaranteed that Google will show my Sitelinks Searchbox?

No, implementing the schema is a technical requirement, but Google ultimately decides whether to show the search box based on search volumes, domain authority, and brand query signals. Even if the schema is correct, Google may choose not to display the box for smaller or lower-authority domains, but setting the schema is the only way to make it possible.