ASIN stands for Amazon Standard Identification Number. It is a unique code of 10 characters that Amazon assigns to every product listed in its store. The code is made of letters, digits, or a mix of both.
Kindle e-books get an ASIN as well. When you check the metadata of a Kindle file, you may find this code in a field named ASIN.
What the value looks like
Amazon's guide for sellers shows these 2 examples of an ASIN:
B07FZ8S74R, a typical product code that starts with B00451524934, a code for a book, which starts with a digit
For books, the ASIN used to be the same as the ISBN, the International Standard Book Number. Amazon says this is no longer guaranteed, because ISBNs with 13 digits were introduced.
Amazon gives this example: a hardcover book with the 13-digit ISBN 978-0747591054 has the ASIN 0747591059. The ASIN leaves out the 978 at the start, and its last digit is different.
Other products usually get an ASIN that starts with the letter B. Amazon's help page for its affiliate program gives B000IB9QXI as the ASIN of a photo editing program for PC.
Which files carry it
Kindle e-books in the MOBI, AZW, and AZW3 formats can store an ASIN. Near the start of these files is a MOBI header, followed by an optional extended header called EXTH.
The EXTH header holds metadata such as the author, the publisher, and the ISBN. In ExifTool, the ASIN is EXTH tag 113, and a second field, tag 504, is called ASIN2. ExifTool can read both fields but cannot change them.
The EPUB 3.3 specification defines no ASIN field. EPUB keeps its identifiers in the dc:identifier element, and the EPUB 3.3 specification gives a UUID, DOI, or ISBN as examples.
Where the value comes from
Amazon assigns the ASIN. When a new product page is created in the Amazon store, Amazon gives that page a new ASIN.
Kindle Direct Publishing, or KDP, is Amazon's service for self-published books. Amazon assigns an ASIN to each book published through KDP. An e-book does not need an ISBN on KDP, but paperback and hardcover books do.
As an author, you find the ASIN under the book's title in your KDP Bookshelf. Anyone can find the ASIN under Product Details on the book's page in the Amazon store.
How an ASIN differs from an ISBN
Publishers, booksellers, libraries, and online stores all use the ISBN. The ISBN identifies the publisher, title, edition, and format of a book.
ISBNs had 10 digits until the end of 2006. Since 1 January 2007, every ISBN has 13 digits. Each product form, such as a paperback, an EPUB, or a PDF, should get its own ISBN.
An ASIN is Amazon's own code for a product in the Amazon store. Every new product page in the store gets a new ASIN. So when 2 editions of one book have separate product pages, the 2 editions have different ASINs.
Why it matters for your file
In the address of an Amazon product page, the ASIN comes right after /dp/. If the value in your file is a real ASIN, you can find the book by adding it after /dp/ in an Amazon address.
The field in a file can hold other text. For example, the calibre e-book software writes a UUID to tag 113 by default when it builds a MOBI or AZW3 file.
So a value in this field does not always come from Amazon. A real ASIN has 10 characters, so a value of any other length is not an ASIN.