/ validation / validate
Member
Theme: SystemContrast: Standard

Validators: IBAN, BSN, VAT, card and ISBN

Pin to your tools

Check an IBAN, Dutch BSN, credit card number, EU VAT number, email address, URL or ISBN, with the reason when it fails. One value per line.

Runs entirely in your browser. What you type is never sent to our servers.

values · 0 lines
PasteOpen fileCtrl OClear
DownloadCopyCtrl Shift C

Type or paste values above, one per line, and each one is checked here.

local0/0 lines oktested · v0.15.0 · 19 test cases

history · 0

Processed input shows up here while this page is open. Reloading the page clears it.

Code examples

Copy and paste these into your own project. Each one uses only the language's standard library, so there is nothing to install.

Star up to 3 languages to show them first on every tool page.

Favorite JavaScript
const iban = 'NL91 ABNA 0417 1643 00'

const compact = iban.replace(/\s/g, '').toUpperCase()
const rearranged = compact.slice(4) + compact.slice(0, 4)
const digits = [...rearranged].map((char) => parseInt(char, 36)).join('')

console.log(BigInt(digits) % 97n === 1n ? 'valid' : 'invalid')

What it does

Checks whether a value is well formed: an IBAN, a Dutch BSN, a card number, an EU VAT number, an email address, a URL or an ISBN. Each is checked the way its own standard defines, and a failure comes with the reason. Paste one value per line to check many at once.

How to use it

  1. Type or paste one value per line. The type of each line is detected on its own, or pick a type under Check as.
  2. Read the verdict for each value: valid or invalid, the reason when it fails and its parts (country, check digits, domain and so on) when it passes.
  3. Copy a single part, or copy the whole list of verdicts.

Examples

Three values, one per line:

NL91 ABNA 0417 1643 00 is a valid IBAN, 111222334 fails the BSN check on its check digits, and 978-0-306-40615-7 is a valid ISBN-13 that is also 0306406152 as ISBN-10.

Good to know

  • Valid means well formed with matching check digits. It does not mean an account, card, VAT registration or mailbox exists.
  • An IBAN is checked for the length of its country and the mod 97 rule. A BSN of eight digits is read with a leading zero.
  • VAT numbers are checked for the format of their country only. Look a business up in VIES to confirm it is registered.
  • This tool handles personal data, so it shows no ads and keeps no history or share link of what you enter.

What does a valid result mean?

It means the value is well formed and its check digits add up, so it could exist. It does not prove that an account is open, a card is active, a VAT number is registered or a mailbox accepts mail: only the issuer can say that.

Frequently asked questions

How does the check work for each type?

An IBAN is checked for its country length and the mod 97 rule, a BSN with the eleven-test, a card number with the Luhn algorithm and an ISBN with its check digit. A VAT number is checked against the format of its country, an email address against the usual rules for local part and domain, and a URL for a scheme and a host.

Is a VAT number checked against the official register?

No. This tool only checks the format of the number for its country. To confirm that a business is registered, look it up in the European Commission VIES service.

Is what I enter sent anywhere?

No. Every check runs in your browser and the values are not sent to our servers. As this tool handles personal data, it shows no ads and keeps no history of what you enter.

Changelog for this tool

Keyboard shortcuts

Close

Everywhere

Search tools and actions
Ctrl K
Show this help
?
Switch theme
Ctrl Shift L
Pin the selected tool (in search)
Ctrl P

On a tool

Send the output to the first suggestion
Ctrl ↵
Open a file into the input
Ctrl O
Copy the output
Ctrl Shift C
Close searchesc
toolsBase64 encoder and decoderEncode text to Base64 or decode Base64 back to text, with standard and URL-safe alphabets.EncodingJSON formatter and validatorFormat, minify and validate JSON, with the exact line and column of any error.FormattingRegex testerTest JavaScript regular expressions with live highlighting, capture groups and a plain-language explanation.TextUUID and ULID generatorGenerate UUID v4, UUID v7 and ULID in bulk, or paste an ID to see its version, variant and timestamp.GeneratorsUnix timestamp converterConvert Unix timestamps to dates and back, in any time zone, with ISO 8601, RFC 2822 and relative time.Date and timeHash and HMAC generatorCalculate MD5, SHA-1, SHA-2, SHA-3, BLAKE2, BLAKE3 and CRC-32 hashes of text or a file, with optional HMAC.SecurityPassword generator and strength checkerGenerate random passwords, passphrases and PINs, or check how strong a password is.SecurityJWT decoder and verifierDecode a JSON Web Token, check its expiry and claims, and verify its signature with a secret or public key.SecurityCIDR and IP subnet calculatorCalculate the range, mask and size of IPv4 and IPv6 networks, split them into subnets, and check what contains or overlaps what.NetworkCron expression explainerRead a cron expression in plain language, see its next runs in any time zone, and tidy it into its standard form.Date and timeSort linesSort lines of text A to Z or Z to A, in natural order (file2 before file10), by code point, by number or by length.TextRemove duplicate linesRemove duplicate lines from a list, keep the first or last copy, ignore case or spaces, or drop every line that repeats.TextCompare lists and textCompare two lists line by line: find what is in both, only in one, or in either, or see a marked line diff side by side.TextText case converter and slugifyConvert text to camelCase, snake_case, kebab-case, Title Case and more, or turn a title into a URL slug with accents handled.TextURL encode, decode and parsePercent-encode and decode text for URLs, or take a URL apart into scheme, host, path and query and edit the query as a table.EncodingValidators: IBAN, BSN, VAT, card and ISBNCheck an IBAN, Dutch BSN, credit card number, EU VAT number, email address, URL or ISBN, with the reason when it fails. One value per line.ValidationHTML entity encoder and decoderEscape text for HTML with named, decimal or hex entities, or turn entities such as & and é back into characters.EncodingEscape and unescape stringsEscape text for a JSON or JavaScript string, a SQL string, a CSV field, a regular expression or a shell word, or undo the escaping.EncodingEAN, UPC and GTIN check digitsCheck the check digit of an EAN-8, EAN-13, UPC-A or GTIN-14, add a missing one, read the country from the GS1 prefix and convert between ISBN-10 and EAN-13. One code per line.ValidationTest data generatorGenerate valid-looking test IBANs, BSNs, EAN barcodes and EU VAT numbers in bulk. They pass the checks, but belong to no one.GeneratorsSQL formatter and minifierFormat SQL so each clause sits on its own line, or minify it onto one line, for MySQL, PostgreSQL, SQLite, SQL Server and BigQuery.FormattingNumber base converterConvert numbers between binary, octal, decimal, hex and any base from 2 to 36, with big numbers, two's complement and a bit view.EncodingYAML, TOML and JSON converterConvert between JSON, YAML and TOML, or validate and pretty-print a document, with the line and column of every error.FormattingCSV and JSON converterConvert CSV to a JSON array of objects or arrays, or JSON back to CSV. Detects the delimiter and reads Dutch Excel files with semicolons and decimal commas.DataGlob and .gitignore testerTest glob patterns and .gitignore rules against a list of paths and see which paths match and which rule matched them.TextColour converterConvert a colour between HEX, RGB, HSL, HWB and OKLCH, check its WCAG contrast against a background, or build a Material 3 tonal palette from it.Formattingchmod calculatorConvert Unix file permissions between octal (755), letters (rwxr-xr-x), ls -l and chmod clauses, with a checkbox grid and the setuid, setgid and sticky bits.SecurityUser-agent parserRead a user-agent string: browser, engine, OS, device type and whether it is a bot. Leave it empty to read your own browser.NetworkConvert cURL to codePaste a cURL command and get the same request as fetch, Axios, Python requests, Go or PHP. Nothing is run and nothing is sent.NetworkMarkdown previewWrite Markdown and see it rendered as you type, or copy the HTML. Raw HTML is shown as text and links are checked, so nothing in the preview can run.FormattingBarcode and QR code generatorMake a QR code, EAN-13, UPC-A, Code 128, ITF-14 or Data Matrix barcode, download it as SVG or PNG, or read a code from an image.GeneratorspagesChangelogWhat changed in each releasepagesAboutWhat codeknife.dev is and who makes itpagesIdeasSuggest improvements and vote on other visitors’ ideas.pagesPrivacyWhat leaves your browser and what is storedpagesAccessibilityConformance, known limitations and how to report a problempagesMembershipRemove ads and raise the limitspagesactions