Numbers
ISBN Test Number Generator
Used by developers, writers, and creators worldwide.
An ISBN test number generator saves developers from manually calculating check digits or cannibalizing real book records just to populate a test environment. It produces structurally correct ISBN-10 and ISBN-13 numbers that pass format validation but aren't registered to any published title — safe to bulk-insert into staging databases or share in demos without triggering unintended API calls to real catalogues. Choose ISBN-13 (978/979 prefix, alternating 1/3 weight check digit) or ISBN-10 (legacy descending-weight algorithm). Set a count and toggle hyphens to match what your validation library expects — some require them, others reject them. The result is fixture-ready test data in seconds.
Loading usage…
Free forever — no account required
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Select your target format — choose ISBN-13 for modern systems or ISBN-10 for legacy application testing.
- Set the count field to the number of ISBNs you need, from a single stub to a large batch for database seeding.
- Toggle the hyphens option to match the format your application's input fields or database columns expect.
- Click Generate to produce the batch; review the output list to confirm the format looks correct.
- Copy the results and paste them directly into your fixture file, SQL seed script, or test data spreadsheet.
Use Cases
- •Seeding a Postgres staging database with hundreds of dummy book records
- •Populating Jest or Cypress fixture files with valid ISBN-13 test data
- •Testing hyphenated vs. unhyphenated ISBN handling in a Stripe or custom checkout form
- •Stress-testing an Elasticsearch book index with batches of synthetic ISBNs
- •Generating placeholder ISBNs for a Figma or Storybook bookstore UI prototype
Tips
- →Generate both hyphenated and non-hyphenated versions of the same count and use them to test your sanitisation layer strips hyphens before storing.
- →Mix ISBN-10 and ISBN-13 batches in your test fixtures to ensure your application handles both formats without assuming a fixed digit length.
- →If your barcode scanner test requires EAN-13 images, pipe the generated ISBN-13 strings into a free barcode renderer — the formats are directly compatible.
- →For load testing a search index, generate several batches in sequence; each run produces distinct numbers, giving you a large unique dataset without duplicates.
- →When testing a 'book not found' API integration, these ISBNs are ideal inputs — they pass local validation but return no external data, cleanly isolating that code path.
FAQ
are these generated ISBNs real book numbers
No. They carry correct check digits and pass format validation, but they aren't registered to any published title. Querying them against Open Library, Google Books, or Nielsen will return empty or error responses — which is actually useful for testing how your app handles a 'book not found' case.
should I use hyphens or not in my test ISBNs
It depends on what your code expects. Hyphens separate the registrant group, publisher prefix, title number, and check digit for readability, but many validation libraries strip them before checking. Toggle the hyphens option and test both formats to make sure your sanitisation logic handles either input correctly.
what's the difference between ISBN-10 and ISBN-13
ISBN-13 is the current global standard (introduced 2007), always starting with 978 or 979 and using alternating 1/3 weights for the check digit. ISBN-10 is the older 10-digit format still found in legacy systems and pre-2007 catalogues, using descending weights from 10 to 2 — which can produce a check digit of X representing 10.