Schema Builder

WebSite Schema Generator

Generate WebSite JSON-LD schema to identify your primary domain, site name, and optional search functionality. Add this to your homepage to enable the sitelinks search box in Google.

WebSite Schema

Add WebSite schema to your homepage to enable the sitelinks search box in Google and help AI engines identify your primary domain and brand name.

Medium GEO Impact
Include {search_term_string} exactly: this is the Google sitelinks search box placeholder

Why WebSite Schema Matters

WebSite schema serves two purposes: it tells search engines and AI engines the authoritative name and URL of your site, and it enables the sitelinks search box feature in Google Search.

Frequently Asked Questions

Do I need WebSite schema if I already have Organization schema?
Yes, they serve different purposes. Organization schema establishes your brand identity and sameAs links. WebSite schema tells search engines about your website specifically: its name, URL, and search capability. Both should be on your homepage. They can coexist in separate JSON-LD script blocks.
What is the search URL template format?
The template must contain the literal string {search_term_string} (with curly braces) where the user's search query will be inserted. For example: https://example.com/search?q={search_term_string} or https://example.com/?s={search_term_string} for WordPress. Google will only show the sitelinks search box if your site has an internal search function that returns results for the given query.
On which page should WebSite schema be placed?
WebSite schema should only appear on your homepage (the root URL of your domain). Google processes it as a domain-level signal, so placing it on other pages has no additional benefit and may cause confusion. Use one WebSite schema block per domain.
Other Schema Builders