Sitelinks Search Box Schema Generator
Builds the WebSite JSON-LD markup that describes a site's internal search box, ready to paste into the home page. Enter the site name, home page URL, and the search URL pattern with the search term replaced by {search_term_string}.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Sitelinks Search Box Schema Generator
- Enter the site name and the home page URL.
- Enter the search URL your site uses, and replace the search term with {search_term_string}.
- Add an alternate name if the site is also known by a shorter name.
- Copy the script block and paste it into the head or body of the home page.
Frequently asked questions
What is a sitelinks search box?
It was a search box that Google could show under a site's result in search, letting people search within that site. Google stopped showing sitelinks search boxes in November 2024, so this markup no longer changes how the result looks in Google.
What does the query-input property do?
It names the parameter that carries the search term. The value required name=search_term_string means the search URL template must contain the {search_term_string} placeholder.
Where should the markup go?
Place it on the home page inside a script tag with type application/ld+json. It can sit in the head or the body, and it must be valid JSON.
What should the search URL look like?
Use the address your site's search page produces for a query, such as https://www.example.com/search?q=shoes, and swap the search term for {search_term_string}.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.