Free structured data tool

Sitelinks Searchbox Schema Generator for Websites

Build valid WebSite + SearchAction JSON-LD so Google can show a search box directly under your homepage listing. Fill in your URLs on the left — copy the markup on the right.

① Site details

input
Enter a full URL, starting with http:// or https://
Right box is your query parameter name — the part after ? on a real search, e.g. ?q=, ?s=, ?query=.
Enter the URL your site loads when someone searches

② JSON-LD markup

What this looks like in a search result
www.example.com
Acme Outfitters — Official Site

Shop the official site for gear, support, and store info.

Sitelinks searchbox
hiking boots

Before you publish

Where does this markup go?

Paste the generated script into the <head> of your homepage — the same page set as the url value above. Sitelinks searchboxes are only evaluated on a site’s root/homepage, not on subpages.

Does adding this guarantee the search box appears?

No. This markup makes you eligible — Google still decides whether to show the feature, and it generally only appears for searches that look like a navigational query for your brand or domain.

My search parameter isn’t named “q” — is that a problem?

No. The parameter in your URL (q, s, query, etc.) can be anything your site actually uses. What matters is that the {search_term_string} placeholder inside the markup matches what your search page expects after that parameter.

How do I stop a search box from appearing?

Remove this markup from your homepage, or use Google’s nosnippet meta tag if you need to suppress other rich results too. There’s no per-feature opt-out beyond removing the structured data.