Skip to content
TrySitePrice

Book schema generator

A book and an edition of that book are two different things, and Google's documentation treats them that way. Fill in the work once, then the edition with its own ISBN, format and language, and get JSON-LD that keeps the two apart.

Google marks author, name, url and workExample required on the work, and bookFormat, inLanguage and isbn required on each edition. Nothing here is marked required that Google does not mark required. Google book structured data, read 2026-11-06. Book format values come from the schema.org BookFormatType page, not from memory.
The work

name — The title of the work, not of one edition.

url — The page on your site that is about this work.

author.@type — Google's table allows Person or Organization.

author.name — Required inside author.

author.sameAs — A page that uniquely identifies the author, one per line.

sameAs — A reference page for the work, one per line.

The edition

workExample.isbn — Required on the edition.

workExample.bookFormat — schema.org BookFormatType.

workExample.inLanguage — A BCP 47 language tag, for example en or en-GB.

workExample.name — Only if the edition is titled differently.

workExample.bookEdition — For example 2nd edition.

workExample.datePublished — ISO 8601 date.

workExample.url — The page for this specific edition.

Where it can be read

workExample.potentialAction.target — The URL a reader lands on to read it. Google marks potentialAction required on an edition; leave this blank and the edition ships without one.

workExample.potentialAction.expectsAcceptanceOf — The licence or terms the reader accepts.

6 properties Google marks required are still empty: name, url, author.name, workExample.isbn, workExample.bookFormat, workExample.inLanguage. The markup below is written anyway so you can see its shape, but it will not qualify as complete until those are filled.

Book JSON-LD

0 properties written
{
  "@context": "https://schema.org",
  "@type": "Book"
}

Paste the script-tag version into the page’s head or body. Empty fields are left out of the output entirely rather than written as blank values, because a property present and empty is not the same as a property absent.

Before you ship it

Google's book feature reads these entities from a data feed it fetches, not from one page's markup. This generator writes the Book and its edition to Google's documented shape; whether the feature appears also depends on being accepted into that programme.

The work and the edition are two different things: one is the book as written, the other is the hardcover with its own ISBN. Each gets its own @id so the two can be told apart and referenced.

Generating valid markup and being eligible for a rich result are two different things. Check the output against the vocabulary with the schema markup validator, and remember that structured data describes content already on the page — it does not add any.

Questions about Book structured data

01Why are there two sets of fields?

Because a work and an edition are different entities. The work is the book as written; the edition is the hardcover or the ebook with its own ISBN, format and language. Google's documentation requires author, name, url and workExample on the work, and bookFormat, inLanguage and isbn on the edition, so collapsing them into one form would produce markup that cannot satisfy both.

02Will this markup get my book a rich result?

Not on its own. Google reads book entities from a data feed it fetches rather than from one page's markup, so being eligible also depends on that programme. What this gives you is markup in the documented shape, which is the part you control.

03Which book format should I pick?

The one the edition actually is. The options are the complete BookFormatType enumeration from schema.org — Hardcover, Paperback, EBook, AudiobookFormat, GraphicNovel and Pamphlet — rather than a list someone remembered, so there is nothing to invent.

04What happens to fields I leave blank?

They are absent from the output. A property written with an empty value is not the same as a property left out, and the empty version is the one that reads as a mistake to a parser.

05Do I need the read action?

Google marks potentialAction required on an edition, so an edition without one is incomplete by that table. The generator still writes the edition without it, because showing you the shape is more useful than refusing to write anything — but the gap is real and the page says so.

Related tools