Validate IBAN is a JavaScript package to check whether an IBAN (International Bank Account Number) code is valid or not.

This is an important business requirement when making international payments to bank accounts. Also, in several countries (e.g. Austria) an IBAN code is required for domestic money transfers.

This JavaScript solution consists of the JavaScript file itself which provides the functionality, and an HTML file with the User Interface:

The User Interface can be very easily customized (result text, button captions, layout position, offset on the page) by using a simple JavaScript configuration file (examples are provided in the package), renaming it to config.js and simply editing the values:

Using config.js is not mandatory: When no config.js file is present then default values are applied. Also, not all of the above settings must be present in the config.js file, or single lines may be deactivated by preceding them with a double slash: //

When using international characters in the config.js file (like e.g. German Umlaut characters), the encoding of the config.js file should be set to UTF-8.

The button underneath the “Validate IBAN” button can be used to toggle between the compact IBAN code and a space-grouped code for better legibility:

This Compact/Group button becomes visible only when the validation of the IBAN code was successful, and becomes invisible again when the IBAN code changes or when the validation of the IBAN code failed.

The HTML file can be easily extended with your own HTML code, for example:

Privacy Guarantee: This JavaScript and HTML code does NOT transmit or get any information over the Internet or store any information on or get any information from your or the end-user’s computer.