An ISBN validator checks whether a book's International Standard Book Number has a valid check digit. It automatically detects ISBN-10 (older 10-digit format) and ISBN-13 (current 13-digit EAN format), strips formatting, verifies the mathematical check digit, and offers to convert between formats.

Hyphens and spaces are ignored. Accepts ISBN-10 or ISBN-13 in any formatting.

Validation Rules (ISBN-10 & ISBN-13)

ISBN-10 check digit: Multiply each of the first 9 digits by its position (d₁×10 + d₂×9 + ... + d₉×2), add the check digit. Total must be divisible by 11. Check digit can be 0-9 or X (=10).

ISBN-13 check digit: Multiply digits by alternating weights 1 and 3: (d₁×1 + d₂×3 + d₃×1 ... + d₁₂×3). Check digit = (10 − (sum mod 10)) mod 10. Always a digit 0-9.

ISBN-13 prefix: Must start with 978 or 979. The 979-10 prefix is used for French-language books; 978 covers all others.

Conversion: Any ISBN-10 can be converted to ISBN-13 by prepending "978" and recalculating the check digit. The reverse (ISBN-13 to ISBN-10) only works for 978-prefix ISBNs.