The book schema is what you use on pages of your site that talk about a specific book you have written or read. If you are the author, remember to set the identifier correctly by pointing it to your knowledge graph, avoiding repeating all the data.
How to use the Book schema generator
The generator works in a desktop browser with a free account. Prepare the book details first, then follow these steps:
- Enter the exact title and, if it has one, the subtitle.
- Reference the author by the identifier of the Person schema, so the book is tied to the author entity.
- Add the ISBN, the publisher, the language and the publication date.
- Paste the address of the cover image hosted on your site.
- List in sameAs the pages where the book is sold or catalogued, such as an online bookstore or Google Books.
- Generate the code, validate it and place it on the page dedicated to the book.
Why the author link matters
A book is a work created by a person. When the author property points to a Person identifier, Google can associate the title with the author entity rather than reading a name as plain text. This is the same idea behind building a digital entity for an author or a brand. Rich results for books are limited to specific programs, so treat the markup mainly as a precise description of the work.
Example of Book JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Book",
"name": "The Example Handbook",
"author": { "@id": "https://www.example.com/#person" },
"isbn": "9780000000002",
"inLanguage": "en",
"datePublished": "2024-05-10",
"publisher": { "@type": "Organization", "name": "Example Press" },
"image": "https://www.example.com/images/example-handbook-cover.jpg",
"sameAs": [
"https://books.google.com/books?id=EXAMPLE"
]
}
</script>
Common mistakes to avoid
- Typing the author’s name as text instead of linking the Person schema.
- Using an ISBN that belongs to a different edition of the book.
- Marking up a book that is not actually discussed on the page.
- Pointing sameAs to store pages that have been removed.
Frequently asked questions
Can I use Book schema for an ebook?
Yes. Use the same Book type and add the ebook edition or store links in the sameAs property.
Do I need a Person schema first?
It is recommended. Create a Person schema for the author, then reference it from the book.
How do I check that the code is correct?
Run the page through a validator. Our article on the schema markup validator explains which tools to use.