How to Embed Kindle eBooks into your Website

You have been using images and videos to complement the text content on your website but do you know that it is also possible to embed ebook samples into your web pages?

Amazon and Google Books are home to hundreds and thousands of ebooks and they do allow other websites to embed these ebooks with a few lines of code. Amazon lets you embed few sample chapters from the book while in the case of Google Books, you can embed the entire e-book provided it is in public domain or free.

How to Embed Kindle Books

To embed a Kindle ebook on your website, all you need to know is the ASIN code of the ebook and you are good to go. This unique code can be easily found on the product page of any Amazon title.

The Kindle ebooks can been embedded either using JavaScript (see example) or even the IFRAME tag in case you aren’t allowed to include JavaScript in your web pages.

Kindle Embeds with JavaScript

<div id='Kindle-Reader'></div>
<script type='text/javascript'
  src='http://kindleweb.s3.amazonaws.com/app/KindleReader-min.js'></script>
<script>KindleReader.LoadSample({
   containerID: 'Kindle-Reader', width: '600', height: '800',
   asin: 'B0049U4CCE',assoctag: 'labnol-20'});
</script>

You need to change the book’s ASIN code (in this case, B0049U4CCE) and the assoctag value (in this case, labnol-20) with your own Amazon Associates ID.

Kindle Embeds with IFRAME

<iframe height="800" width="600" frameborder="0" src="http://kindleweb.s3.amazonaws.com/app/1.0.11.053.093655/KindleReaderApp.html?asin=B000JQUT8S&assoctag=labnol-20">
</iframe>

You may also experiment with the height and width parameters (in pixels) to ensure that the embedded book fits perfectly into your site’s layout.

Bonus Tip: If you would like to directly link to the Kindle book sample without having to embed it on a page, just use the following link (remember to replace the ASIN value):

http://kindleweb.s3.amazonaws.com/content/B000JQUT8S/gz_sample.html

Also see: How to Embed Anything into your Website

Amit Agarwal

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

0

Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards in 2017.

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.