Website Schema Generator
Generate valid schema.org WebSite JSON-LD with an optional Sitelinks Searchbox. Fill the fields and copy the markup. Everything runs in your browser.
Sitelinks Searchbox (optional)
{search_term_string}. WordPress default: /?s={search_term_string}. Leave blank to omit. About the Website Schema Generator
The Website Schema Generator builds valid schema.org WebSite JSON-LD for your homepage. Enter your site name and URL, add an optional alternate name, and provide a search URL template to enable the Sitelinks Searchbox in Google results. The markup updates as you type and is ready to copy. Everything runs in your browser, so nothing you type is uploaded or stored.
How it works
- Enter your site name and site URL. Both are required.
- Add an alternate name or abbreviation if you have one. Leave it blank to omit it.
- To enable the Sitelinks Searchbox, paste a search URL template that contains {search_term_string}, for example https://yoursite.com/?s={search_term_string}.
- Click Copy and paste the <script type="application/ld+json"> block into the <head> or <body> of your homepage.
Features
- Live JSON-LD output that updates as you type.
- Optional potentialAction SearchAction with query-input for the Sitelinks Searchbox.
- Empty optional fields are left out of the output automatically.
- Values are escaped by the browser's JSON engine, so quotes and special characters stay valid.
- One-click copy of the complete script block in a monospace view.
Frequently asked questions
What is WebSite schema used for?
It tells search engines your site's official name and URL. When you add a SearchAction, it can also enable the Sitelinks Searchbox, a search box that may appear under your site in Google results.
Where do I put this markup?
Add it to your homepage only, not to every page. Paste the full <script type="application/ld+json"> block into the page's HTML, typically in the <head> or near the end of the <body>.
What is {search_term_string} and do I need it?
It is a placeholder that Google replaces with the visitor's search words. Your search URL template must include it for the Sitelinks Searchbox to work. If you leave the search field blank or omit the placeholder, the SearchAction is left out and the rest of the schema is still valid.
Will adding this guarantee a search box in Google?
No. Valid markup makes your site eligible, but Google decides whether to show the Sitelinks Searchbox based on its own signals. The schema is a requirement, not a guarantee.
Is my input sent anywhere?
No. The markup is generated entirely in your browser from the fields you fill in. Nothing is sent to a server or saved.