Generate valid WebSite JSON-LD structured data with SearchAction markup. Enable Google's sitelinks search box and help search engines understand your site.
{search_term_string}. For WordPress, this is typically https://example.com/?s={search_term_string}After adding the schema to your site, validate it with these tools:
OneStepToRank monitors your structured data in production, alerts you when schema breaks, and tracks how your rich results change over time.
Get StartedWebSite schema is structured data markup that describes your website as an entity to search engines. Built on the Schema.org WebSite type, it provides machine-readable information about your site's name, URL, publisher, language, and most importantly, its search functionality. When Google reads this markup, it can display your site name correctly in search results and enable the coveted sitelinks search box -- a search input that appears directly beneath your listing on the Google results page.
Without WebSite schema, Google has to infer your site name from page titles, headings, and other signals, which often leads to inconsistent or incorrect display. By explicitly declaring your site's identity through structured data, you take control of how your brand appears across all Google Search features. This markup is placed on your homepage and applies to your entire domain.
The sitelinks search box is powered by the SearchAction property within your WebSite schema. This property includes a URL template that tells Google exactly how to construct a search URL for your site. When a user types a query into the search box displayed in Google results, Google uses your template to redirect them directly to your internal search results page. This feature dramatically reduces the steps between a user's intent and finding relevant content on your site.
To enable the sitelinks search box, your WebSite schema must include a potentialAction of type SearchAction with a target containing an EntryPoint and a urlTemplate. The URL template uses the placeholder {search_term_string} where the user's query will be inserted. Google also requires the query-input property to specify that the search term is a required parameter. This generator handles all of these requirements automatically.
WebSite schema is one of the simplest and most impactful forms of structured data you can add to your site. Here is what it provides:
Implementation takes less than five minutes. Add the generated JSON-LD script to your homepage's <head> section and validate with the Rich Results Test. For ongoing monitoring of your structured data, use tools like our Local Rank Checker to track how schema improvements affect your search visibility.
WebSite schema markup is structured data in JSON-LD format that tells search engines about your website as a whole. It uses the Schema.org WebSite type to describe your site's name, URL, publisher, and search functionality. When Google reads this markup, it can display your site name correctly in search results and enable the sitelinks search box, which lets users search your site directly from the Google results page.
The sitelinks search box is a Google Search feature that displays a search input field directly beneath your website's main search result. When users type a query into this box, they are taken directly to your site's search results page. Google uses the SearchAction property in your WebSite schema to determine the URL template for your internal search. This feature increases user engagement by allowing visitors to search your content without first navigating to your homepage.
WebSite schema is not technically required, but it is strongly recommended for every website. Without it, Google has to infer your site name and search functionality from page content, which can lead to incorrect display. Adding WebSite schema ensures Google shows your preferred site name in search results, and the SearchAction property enables the sitelinks search box. The markup takes minutes to implement and provides lasting SEO benefits for your entire domain.
The search action URL template tells Google how your site's internal search works. Find your site's search URL by performing a search on your site and examining the resulting URL. Replace the search query with the placeholder {search_term_string}. For example, if searching for "shoes" produces the URL https://example.com/search?q=shoes, your template would be https://example.com/search?q={search_term_string}. Common patterns include /search?q=, /search?s=, and /?s= for WordPress sites.