# angular-iban

> Angular directives and pipes for IBAN

Latest version **21.0.0** (published 2026-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-iban
pnpm add angular-iban
yarn add angular-iban
bun add angular-iban
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 21.0.0 |
| Published | 2026-04-15 |
| First published | 2018-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Maintainers | fa-woelkjul, jinjin.li, fa-ataman, kimljj |
| Keywords | angular, iban, directive, pipe, typescript |

## Links

- npm: https://www.npmjs.com/package/angular-iban
- Repository: https://github.com/fundsaccess/angular-iban
- Homepage: https://fundsaccess.github.io/angular-iban
- Issues: https://github.com/fundsaccess/angular-iban/issues
- npm.io page: https://npm.io/package/angular-iban

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 21.0.0 (latest) — 2026-04-15
- 20.0.0 — 2025-06-16
- 19.0.0 — 2024-11-26
- 18.0.0 — 2024-06-16
- 17.0.0 — 2023-11-28
- 16.0.0 — 2023-06-03
- 15.0.0 — 2022-11-26
- 14.0.0 — 2022-06-05
- 6.0.1 — 2021-11-07
- 5.0.0 — 2021-06-11
- 4.0.2 — 2021-05-04
- 4.0.1 — 2021-05-04
- 3.0.0 — 2020-10-09
- 2.0.4 — 2020-07-22
- 2.0.2 — 2020-06-28
- … 21 more at https://npm.io/package/angular-iban/versions

## README

<p align="center">
  <img height="256px" width="256px" style="text-align: center;" src="https://fundsaccess.github.io/angular-iban/assets/angular.svg">
</p>

# Angular-iban

Angular directives and pipes for IBAN

Demo: https://fundsaccess.github.io/angular-iban/

## Version compatibility

This library supports Angular 7+. Please check the Version compatibility below to choose the correct version to install.

| angular-iban | Angular |
|:------------:|:-------:|
|    0.2.0     |   7.x   |
|     1.x      |   8.x   |
|     2.x      |   9.x   |
|     3.x      |  10.x   |
|     4.x      |  11.x   |
|     5.x      |  12.x   |
|     6.x      |  13.x   |
|     14.x     |  14.x   |
|     15.x     |  15.x   |
|     16.x     |  16.x   |
|     17.x     |  17.x   |
|     18.x     |  18.x   |
|     19.x     |  19.x   |
|     20.x     |  20.x   |
|     21.x     |  21.x   |
## Installation

npm:
```shell
npm install --save angular-iban iban
```

yarn:
```shell
yarn add angular-iban iban
```


## Import

Once installed you need to import the main module:
```typescript
import { AngularIbanModule } from 'angular-iban';
import { NgModule } from '@angular/core';

@NgModule({
  declarations: [],
  imports: [AngularIbanModule], 
})
export class Module {
}
```

## Usage

### Some sample accounts
https://www.iban-bic.com/sample_accounts.html

### IBAN Validator with reactive form
```typescript
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AngularIbanModule } from 'angular-iban';
import { ReactiveFormsModule } from '@angular/forms';

@NgModule({
  declarations: [],
 imports: [
     BrowserModule,
     AngularIbanModule,
     ReactiveFormsModule,
   ],
})
export class Module {
}
```

```html
<form [formGroup]="reactiveForm" autocomplete="off" novalidate>
  <div class="form-group row">
    <label for="ibanReactive" class="col-sm-2 col-form-label">IBAN: </label>
    <input type="text" class="form-control" id="ibanReactive" name="ibanReactive" formControlName="ibanReactive" required>
  </div>

  <div *ngIf="reactiveForm.get('ibanReactive')?.invalid && (reactiveForm.get('ibanReactive')?.dirty || reactiveForm.get('ibanReactive')?.touched)"
       class="alert alert-danger">

    <div *ngIf="reactiveForm.get('ibanReactive')?.errors?.['required']">
      IBAN is required.
    </div>
    <div *ngIf="reactiveForm.get('ibanReactive')?.errors?.['iban']">
      IBAN is invalid
    </div>

  </div>
  <div *ngIf="reactiveForm.get('ibanReactive')?.valid && (reactiveForm.get('ibanReactive')?.dirty || reactiveForm.get('ibanReactive')?.touched)"
       class="alert alert-danger">
    IBAN is valid.
  </div>
</form>
```

```typescript
import { Component } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ValidatorService } from 'angular-iban';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
})

export class AppComponent {
  public reactiveForm = new FormGroup({
    ibanReactive: new FormControl(
      null,
      [
        Validators.required,
        ValidatorService.validateIban,
      ],
    ),
  });
}
```

### IBAN Validator with template driven form

```typescript
import { BrowserModule } from '@angular/platform-browser';
import { AngularIbanModule } from 'angular-iban';
import { FormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';

@NgModule({
  declarations: [],
 imports: [
     BrowserModule,
     AngularIbanModule,
     FormsModule
   ],
})
export class Module {
}
```

```html
<form name="templateDrivenForm" novalidate>
    <div class="form-group row">
      <label for="iban" class="col-sm-2 col-form-label">IBAN:</label>
      <input id="iban" name="iban" class="form-control" #iban="ngModel" type="text" ibanValidator [(ngModel)]="testIban" [ngModelOptions]="{standalone: true}" required autocomplete="off">
      <div *ngIf="iban.invalid && (iban.dirty || iban.touched)"
           class="alert alert-danger">

        <div *ngIf="iban.errors.['required']">
          IBAN is required.
        </div>
        <div *ngIf="iban.errors.['iban']">
          IBAN is invalid
        </div>

      </div>
      <div *ngIf="iban.valid && (iban.dirty || iban.touched)"
           class="alert alert-danger">
        IBAN is valid.
      </div>
    </div>
  </form>
```

### IBAN Formatter
```html
before
<p>DE12500105170648489890</p>

set pipe
<p>{{ibanGermany | ibanFormatter}}</p>

after
<p>DE12 5001 0517 0648 4898 90</p>
```

## Demo

https://fundsaccess.github.io/angular-iban/

or

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`.

## License

Copyright (c) 2018 - 2026 fundsaccess AG. Licensed under the MIT License (MIT)

---
_Source: https://npm.io/package/angular-iban · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
