Barcode.EANChecksum
-------------------

Calculates checksum for EAN barcodes.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Barcode](component_Barcode.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Barcode.EANChecksum"; Text ) 

**MBS**( **"Barcode.EANChecksum";** /\* Calculates checksum for EAN barcodes. \*/  
**$Text**) /\* The text with the numbers for the barcode.  
Do use text and not number, where starting zeros would be skipped.e.g. "12345" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The text with the numbers for the barcode.   Do use text and not number, where starting zeros would be skipped. | "12345" |

### Result

The checksum as text.

### Description

Calculates checksum for EAN barcodes.  
For EAN 8, please use [Barcode.UPCChecksum](BarcodeUPCChecksum.md) function.  
### Examples

Calculates check for EAN:

 MBS ( "Barcode.EANChecksum"; "425098421626" )  
// returns 3 for 12 digit EAN:  
<small>  
Example result: 3</small>Calculates EAN checksum for ISBN 978-3-16-148410-0:

 MBS ( "Barcode.EANChecksum"; "978-3-16-148410")  
<small>  
Example result: "0"</small>### See also

- [Barcode.ISBNChecksum](BarcodeISBNChecksum.md)
- [Barcode.UPCChecksum](BarcodeUPCChecksum.md)

### Release notes

- **Version 9.4**
    - Changed [Barcode.EANChecksum](http://www.mbsplugins.eu/BarcodeEANChecksum.shtml), [Barcode.ISBNChecksum](http://www.mbsplugins.eu/BarcodeISBNChecksum.shtml) and [Barcode.UPCChecksum](http://www.mbsplugins.eu/BarcodeUPCChecksum.shtml) to only use digits and ignore spaces or dashes in input.

### Blog Entries

- [MBS FileMaker Plugin, version 9.4pr5](https://www.mbsplugins.de/archive/2019-09-05/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 5.0 for OS X/Windows - More than 3000 Functions In One Plugin](https://www.mbsplugins.de/archive/2015-02-24/MBS_FileMaker_Plugin_50_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.0pr9](https://www.mbsplugins.de/archive/2015-02-01/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 26th January 2015 , last changed 25th February 2026

  
[Barcode.DrawBarcode](BarcodeDrawBarcode.md) - [Barcode.Generate](BarcodeGenerate.md)

[HTML Version](BarcodeEANChecksum.shtml)