Barcode Generator

Create an EAN-13 barcode image.

With 12 digits the check digit is calculated for you.
How is this calculated?

EAN-13 check digit: odd positions × 1 plus even positions × 3, then the digit that brings the total to a multiple of ten. The bars are drawn from the standard EAN-13 patterns.

Rates, sizes and formulas are loaded from this site’s settings, so results stay current when KDP changes its numbers.

How it works

  1. Enter your book detailsFill in the form above with your trim size, pages or price.
  2. Calculate your KDP requirementsPress Calculate to see the result and the full breakdown.
  3. Download or use your resultCopy it, print it or download a real file.

What is an EAN-13 barcode?

Every book sold through bookstores and online retailers carries a barcode that encodes its ISBN. The standard format for books is the EAN-13 barcode, a pattern of 13 digits drawn as black and white bars. The Barcode Generator creates a clean, scalable EAN-13 image from your number, calculates the final check digit if you enter only 12 digits and lets you download the result as SVG.

How EAN-13 works

An EAN-13 number has twelve data digits followed by one check digit. The check digit is calculated from the other twelve: digits in odd positions are added as they are, digits in even positions are multiplied by three, and the check digit is the number that brings the total up to the next multiple of ten. This simple rule lets scanners detect most typing mistakes. Book barcodes start with 978 or 979, the “Bookland” prefix that marks the number as an ISBN.

How to use the generator

  1. Type the 12 or 13 digits of your number (spaces and hyphens are ignored).
  2. Press Calculate. With 12 digits the check digit is added; with 13 digits it is verified.
  3. Download the SVG and place it in your cover design.

Worked example

Enter 978030640615 (twelve digits). The tool calculates the check digit 7 and creates the barcode for 9780306406157, grouped as 9 780306 406157. If you had typed a wrong thirteenth digit, you would see a message telling you the correct check digit.

Using a barcode on a KDP cover

  • KDP can add a barcode for you if you leave a clear area of about 2 × 1.2 inches on the back cover.
  • If you upload your own barcode, make sure it matches the ISBN assigned to that edition.
  • Keep the barcode on a white or very light background with black bars for reliable scanning.
  • Do not stretch or recolour the image, and keep it at a sensible size.

Good to know

A barcode does not make a number valid by itself – the ISBN must be registered to you or provided by your publishing platform. Use this tool for design and checking, and always use the identifier that belongs to your book.

A real-life scenario

A designer receives an ISBN by email and prepares the back cover. Instead of waiting for KDP to add a barcode, she generates the EAN-13 here, places it in the barcode area and sends the author a clean proof. Because the check digit is verified, a typo in the number is found before printing rather than after.

How it connects with other tools

The ISBN/EAN Barcode Tool validates ISBN-10 and ISBN-13 numbers, and the Cover Template Generator shows where the barcode sits on the cover.

Quick checklist

  • Number matches the edition
  • Check digit verified
  • Barcode on a light background
  • Size not distorted

Frequently asked questions

What if I only have 12 digits?

The tool calculates the thirteenth check digit for you.

Can I use the barcode on my KDP cover?

Yes, if it matches your book’s ISBN. Alternatively let KDP place its own barcode.

What does the SVG download give me?

A sharp vector image you can scale without losing quality.

Why does my number fail validation?

The last digit does not match the check-digit rule. Re-check the digits you typed.