Swiss IBAN Validator — VS Code Extension
Validate Swiss (CH) and Liechtenstein (LI) IBANs directly in VS Code. Identify banks by clearing number, detect QR-IBANs, and copy formatted IBANs or BIC/SWIFT codes with one click.
Built by ERPLight — Swiss ERP software for freelancers and small businesses.
Features
- IBAN Validation — Full ISO 13616 Mod-97 check digit validation for CH and LI IBANs
- Bank Identification — Looks up the bank name and BIC/SWIFT code from the clearing number (30+ major Swiss banks included)
- QR-IBAN Detection — Identifies QR-IBANs (clearing numbers 30000–31999) used for Swiss QR invoices (QR-Rechnung)
- Right-Click Context Menu — Select an IBAN in your code and validate it from the context menu
- Copy to Clipboard — Copy the formatted IBAN or BIC/SWIFT code directly from the result notification
- Input Box Fallback — No selection? The extension prompts you to enter an IBAN manually
Supported Banks
The extension includes a comprehensive lookup table covering all major Swiss financial institutions:
| Bank |
Clearing Range |
| UBS Switzerland AG |
200–299 |
| Credit Suisse (now UBS) |
4000–4999 |
| PostFinance |
9000 |
| Raiffeisen Schweiz |
8000–8099 |
| Zuercher Kantonalbank (ZKB) |
0700–0702 |
| All 24 Kantonalbanken |
760–789 |
| Migros Bank |
8401 |
| Valiant Bank |
630–639 |
| Swissquote Bank |
0682 |
| Bank Cler |
0844 |
| Julius Baer, Vontobel, Lombard Odier, Pictet |
various |
| ...and many more |
|
Usage
Command Palette
- Open the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P)
- Type "Swiss IBAN: Validate"
- If text is selected, it validates the selection. Otherwise, an input box appears.
- Select an IBAN in your editor (e.g.,
CH93 0076 2011 6238 5295 7)
- Right-click and choose "Swiss IBAN: Validate Selection"
- The result appears as a notification
Result Notification
A valid IBAN shows:
- Formatted IBAN
- Bank name
- IBAN type (Standard or QR-IBAN)
- Clearing number
- BIC/SWIFT code (if available)
- Buttons to copy the IBAN or BIC to clipboard
An invalid IBAN shows a clear error message explaining what went wrong.
Screenshots
Valid IBAN with bank identification and QR-IBAN detection
Manual IBAN input via Command Palette
What is a QR-IBAN?
A QR-IBAN is a special IBAN format used exclusively for Swiss QR invoices (QR-Rechnung). It uses clearing numbers in the range 30000–31999. QR-IBANs are required when using the QR-Rechnung payment method with a structured reference (QR reference).
Learn more about QR-Rechnungen at erplight.ch.
Requirements
- VS Code 1.74.0 or higher
- No additional dependencies
Extension Settings
This extension does not add any VS Code settings. It works out of the box.
Known Limitations
- Only validates Swiss (CH) and Liechtenstein (LI) IBANs
- Bank lookup covers major banks; smaller regional banks may show as "Unknown bank"
- The extension does not verify that the account actually exists — it only validates the IBAN format and check digits
About ERPLight
ERPLight is a Swiss ERP and invoicing software built for freelancers, sole proprietors (Einzelfirmen), and small businesses in Switzerland. Create QR-Rechnungen, manage clients, track expenses, and more — all in one simple tool.
License
MIT License. See LICENSE for details.
Copyright (c) 2025 ERPLight