IMEI Generator
Generate valid random IMEI numbers for software testing and validation. Includes Luhn algorithm logic and brand-specific TAC presets.
About
The IMEI Generator is a specialized developer tool designed to create syntactically valid International Mobile Equipment Identity (IMEI) numbers for testing purposes. An IMEI is a unique 15-digit identifier used by GSM networks to identify valid devices. This tool is essential for QA engineers, app developers, and database administrators who need to validate input fields, test database constraints, or simulate mobile device inventories without using real sensitive data.
By selecting a specific manufacturer or model, the generator applies the correct Type Allocation Code (TAC) to ensure the generated numbers mimic real-world devices. The final digit is calculated using the standard Luhn algorithm (modulus 10), ensuring the IMEI passes validity checks used by most software systems.
Formulas
A standard 15-digit IMEI follows the format: AA-BBBBBB-CCCCCC-D. To generate a valid number, the tool follows this algorithmic logic:
- Step 1: TAC Selection. The first 8 digits (Type Allocation Code) are selected based on the device model (e.g.,
35460548for iPhone). - Step 2: Serial Generation. The next 6 digits (SNR) are randomized to ensure uniqueness (
000000to999999). - Step 3: Concatenation. The TAC and SNR are combined to form the first 14 digits.
- Step 4: Luhn Check Digit. The 15th digit is calculated using the Luhn Algorithm:
1. Double every second digit starting from the right.
2. If the product is greater than 9, sum its digits (e.g., 12 becomes 1+2=3).
3. Sum all resulting digits.
4. The Check Digit is the number required to make the total sum a multiple of 10.
Reference Data
| Manufacturer | Model Example | TAC Prefix (8-digits) |
|---|---|---|
| Apple | iPhone 14 Pro | 35460548 |
| Samsung | Galaxy S23 | 35370256 |
| Pixel 7 | 35158625 | |
| Xiaomi | Redmi Note 12 | 86053806 |
| OnePlus | OnePlus 11 | 86623606 |
| Sony | Xperia 1 V | 35565650 |
| Generic | GSM Standard | 35293209 |