Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

Website Schema Generator: Build WebSite JSON-LD Fast

Enter your site name and URL, add your search page if you want a sitelinks search box, and copy valid WebSite JSON-LD into your homepage.

Home / Tools / Website Schema Generator
Your WebSite JSON-LD

Paste this inside a script tag with type application/ld+json in your homepage's head, once per site.

Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

WebSite schema is one of the more overlooked structured data types, mostly because it describes the site as a whole rather than a specific page or product. Enter your site name and URL, decide whether to add a sitelinks search box, and copy the resulting JSON-LD into your homepage.

What WebSite schema does

The WebSite type tells search engines the formal name of your site and its root URL, which helps establish the entity search engines associate with your brand in results and knowledge panels. Added alongside it, the potentialAction property, using the SearchAction type, is what makes a site eligible for Google's sitelinks search box, the small search field that can appear directly under a brand's result when someone searches for the company by name.

The search URL placeholder explained

The sitelinks search box only works if your search results URL includes the literal placeholder {search_term_string} exactly where the search query would normally go, for example https://example.com/search?q={search_term_string}. Google replaces that placeholder with whatever a user types into the search box. Get the placeholder wrong, misspell it, drop the curly braces, or point it at a URL that does not actually run a search, and the feature will not activate even though the rest of the schema is valid.

Where this schema belongs

WebSite schema goes on the homepage only, not on every page of the site, since it describes the site as a whole rather than any individual page. Getting a sitelinks search box to actually appear also depends on Google's own discretion and typically requires the domain to have a reasonable amount of existing brand search volume, so treat the markup as a necessary condition rather than a guarantee.

Related articles

FAQ

Website Schema Generator: questions, answered

What is WebSite schema used for?
It identifies your site's name and root URL as a single entity to search engines, and when combined with a SearchAction, it allows Google to potentially show a sitelinks search box directly beneath your brand's search result.
Do I need the sitelinks search box option to benefit from this schema?
No. The basic name and url fields are useful on their own for establishing your site as an entity, even without adding a SearchAction. The search box is an optional enhancement, not a requirement for the schema to be valid.
Why is my sitelinks search box not showing up even with valid schema?
Valid schema is necessary but not sufficient. Google decides independently whether to display the feature, and it typically only appears for sites with a meaningful amount of direct brand-name search traffic, so newer or smaller sites often will not see it even with correct markup.
What exactly does the {search_term_string} placeholder do?
It is a literal token that must appear in your search URL exactly as written, including the curly braces. Google substitutes it with whatever a user types into the sitelinks search box, then sends them to that constructed URL on your site.
Should WebSite schema go on every page or just the homepage?
Just the homepage. WebSite schema describes the site as a whole, not an individual page, so adding it site-wide is unnecessary and does not provide any additional benefit over placing it once on the homepage.

More free tools

Let's grow

Ready to own page one?

Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

Book your free audit Explore services
Get in touch

Tell us about your project

Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

Or copy our email and write to us directly: contact@rankite.com