Check any identifier's format and check digit
Paste an IBAN, BIC, EU VAT number, EAN/UPC/GTIN or ISBN. CheckDigit works out which it is and tells you whether the format and check digit are correct, and why not if they aren't.
What it checks
- IBAN: ISO 13616 mod-97 check digits plus the country's length and BBAN layout from the SWIFT IBAN Registry (89 countries).
- BIC / SWIFT code: ISO 9362 structure and country code. No bank directory lookup.
- EU VAT number: format and check digit for all 27 member states and XI (Northern Ireland), offline. VIES is not queried.
- GTIN / EAN / UPC: EAN-8, UPC-A, EAN-13 and GTIN-14 with the GS1 check digit, plus UPC-A to EAN-13 conversion. UPC-E (8-digit zero-suppressed) is not supported.
- ISBN: ISBN-10 (mod 11) and ISBN-13 check digits, with ISBN-10 to ISBN-13 conversion and back.
When a check fails you get the reason, for example checksum fails, expected 7 or length is 21, expected 22 for DE.
Use it from code
curl -X POST https://checkdigit/v1/detect \
-H "Content-Type: application/json" \
-d '{"code": "DE89 3704 0044 0532 0130 00"}'
POST keeps the code out of the URL. For non-sensitive codes, GET /v1/detect/{code} works too.
Every endpoint is listed in the API docs. Light use works without an API key, with a per-IP rate limit.
For AI agents (MCP)
CheckDigit is also a remote Model Context Protocol (MCP) server. Most MCP clients accept this config; some use a different format (for example, VS Code uses a servers key). Clients with a settings screen just need the URL https://checkdigit.mike-tusa.workers.dev/mcp.
{ "mcpServers": { "checkdigit": { "type": "http", "url": "https://checkdigit.mike-tusa.workers.dev/mcp" } } }
Machine-readable docs: llms.txt · OpenAPI 3.1 spec
Privacy
Codes are checked in memory and returned to you. They are not stored or logged. CheckDigit keeps request counts, plus a salted, daily-rotating hash of your IP address (kept up to 9 days) to count unique visitors per day; your IP address itself is not stored. This checker sends the code in the request body, not the URL.