Random IMEI Generator

Generate test IMEI numbers for iPhone, Samsung and other brands, then copy them or download a CSV.

Advanced: repeatable batches and test cases

Your IMEI numbers will appear here

Choose a brand, model and quantity, then select “Generate IMEI”.

Try a complete import test

Load positive and negative examples, compare expected outcomes with actual results, and download a runnable project. Everything in the lab runs in your browser.

Open the lab

What you can test

Use IMEI-shaped data in local software tests, inventory mocks and checksum examples without copying customer identifiers.

QA & Software Testing

Populate test databases with IMEI-shaped values. Check form validation, API request parsing and data imports.

Mobile app mocks

Build demo records and simulate app responses to IMEI fields. Set the expected device status in your mock.

Parser experiments

Compare how parsers handle prefix groups, leading zeros and formatting.

Rejection and error paths

Test malformed input and simulated blocked-device responses locally. Configure external status responses in the mock.

MDM inventory mocks

Test inventory imports and simulated enrollment responses in your software.

Education & Training

Work through the 15-digit layout and Luhn calculation with examples whose expected results you can reproduce.

IMEI format and checksum

Every number follows the standard 15-digit IMEI layout: an eight-digit TAC, a six-digit serial and a Luhn check digit. That is what forms, imports and validators usually check.

IMEI anatomy in three layers

TAC · digits 1–8
The Type Allocation Code identifies the device model. GSMA allocates TACs to manufacturers; Random IMEI takes the prefix from the model you pick.
Serial · digits 9–14
Six random digits that tell one device apart from others with the same TAC. Numbers are unique within each batch.
Check digit · digit 15
Calculated with the Luhn algorithm, so every number passes the same checksum test as the IMEI validator. Check a number with the IMEI calculator.

Random IMEI workflow checklist

  1. Choose the brand and model for your sample.
  2. Generate between 1 and 50 Luhn-valid numbers.
  3. Copy them or export a CSV for your QA scripts, mocks or staging data.
  4. Save the input and expected result together so you can repeat the test.

Responsible use

  • Use generated numbers only for testing, staging, documentation and teaching. Never use them to activate, register or unlock a real device.
  • Keep exported files labelled as test data in your own project.
  • The numbers are not assigned to real phones, and the model name only labels the test profile.

Manual Luhn check digit example

Random IMEI performs this calculation server-side, but here is the transparent walkthrough using the sample IMEI 35824011 345678 ?

1 · Split digits

Lay out the 14 known digits with their positions: 3-5-8-2-4-0-1-1-3-4-5-6-7-8-?

2 · Double even-position digits

Double digits in positions 2, 4, 6, …, 14 (counting from the left). The raw results are:

5→10, 2→4, 0→0, 1→2, 4→8, 6→12, 8→16.

3 · Reduce to single digits

Convert any two-digit result by summing its digits: 10→1, 12→3, 16→7. Combine them with the untouched odd-position digits to produce the processed sequence:

3, 1, 8, 4, 4, 0, 1, 2, 3, 8, 5, 3, 7, 7.

4 · Add the untouched digits

Sum the processed digits. The total is 56.

5 · Find the check digit

The next multiple of 10 after 56 is 60, so the check digit is 4.

The final random IMEI is 358240113456784. The same calculation is applied to every output, so each row passes a standard Luhn checksum. Systems with registry or business-rule checks may still reject it.

Why the TAC prefix matters in tests

Many systems read the first eight digits to work out which kind of device they are handling. Realistic prefixes let you test that logic in your own software. For production decisions, look TACs up in an authoritative source such as the GSMA Device Database.

Frequently Asked Questions

Common questions about Random IMEI generation and usage

What is an IMEI number?

IMEI (International Mobile Equipment Identity) is a unique 15-digit code that identifies a mobile device on cellular networks. It consists of an 8-digit Type Allocation Code (TAC), a 6-digit serial number, and a final Luhn checksum digit. You can view your own IMEI by dialing *#06# on any phone.

Is it legal to generate random IMEI numbers?

Laws vary by country. Generating numbers in the IMEI format for software testing is common practice, but changing a real phone’s IMEI, or using a generated number to register, activate or unlock a device, is illegal in many countries. Use generated numbers only as test data.

How does Random IMEI ensure valid numbers?

It takes an eight-digit prefix from the model you choose, adds a random six-digit serial and calculates the Luhn check digit. Every result passes IMEI format and checksum validation.

What are TAC codes and why do they matter?

Type Allocation Codes are the first eight digits of an IMEI. GSMA allocates them to manufacturers for each device model, so software often uses them to tell device types apart. Random IMEI uses a curated catalog of prefixes for its test profiles.

Can I use Random IMEI for commercial purposes?

Yes, for testing. Teams use generated numbers in QA, development, documentation and training. Keep them out of live carrier, activation, warranty, insurance and identity systems.

How many IMEI numbers can I generate at once?

You can generate up to 50 unique IMEI numbers per batch. Each batch ensures uniqueness within that generation and provides instant export via clipboard copy or CSV download for easy integration into your testing workflows.

How to generate an IMEI number?

Choose a brand and model, pick how many numbers you need (1 to 50) and select “Generate IMEI”. You can copy the results or download them as a CSV file.

How is an IMEI number generated?

An IMEI has three parts: an eight-digit TAC that identifies the device model, a six-digit serial number and a Luhn check digit. Manufacturers assign the serial to each phone; Random IMEI generates it at random for test data.

What is a fake IMEI and when is it used?

A fake or test IMEI follows the IMEI format and passes the Luhn check, but it is not assigned to a real phone. Developers use them to test forms, imports, APIs and apps without exposing customers’ real device identifiers.

Can I generate IMEI numbers for specific iPhone or Samsung models?

Yes. Pick Apple, Samsung or another brand, then the model you want to simulate. The model name labels the test profile; it does not mean the number belongs to a real phone of that model.