OnlineSMS

Generate valid phone numbers by country

Choose a specific country or generate from any country

Generate 1–100 phone numbers at once

Loading countries…
These numbers can't receive SMS. Need a real, working number to receive SMS and verification codes? Get a free temporary number instead. Receive SMS online

This free online phone number generator helps you generate random phone numbers in seconds. Every random phone number this generator builds follows real country numbering rules, so you get valid phone numbers for any country in a 1 to 100 range — then copy or export your random phone numbers to CSV, TXT or JSON.

Validated numbers

Every generated phone number is validated against country numbering rules.

E.164 format support

Get each random number in the global E.164 standard.

National / international

Switch the phone number format with one click.

200+ countries supported

A random generator that covers the whole world.

Bulk generation

Use this generator to create up to 100 numbers at once.

CSV export

Export your data as CSV, TXT or JSON in one click.

Validate before export

This generator lets you validate numbers before export.

Instant & free

A fast generator with no sign up and no login.

Why our phone number generator is different

Valid numbers, not just random digits

Many tools give you random digits that only look like a phone number. Our generator checks every generated number against country numbering rules, so each random phone number is structurally valid and ready to use.

Built for testing and development

Need realistic phone numbers for testing? This generator was made for software testing and development. Generate phone numbers for testing forms, databases and an API — the generator gives you great numbers for testing every time.

Country-specific number generation

Each country has its own dialing prefix and rules. This generator follows the local numbering plan for every country code, so a random phone number from Spain looks different from one in Japan.

Multiple phone number formats

Every random number can be shown in national, international and E.164 format. This makes the generator handy for testing across apps, databases and telecom systems.

Bulk phone number generation

Need more than one? This bulk generator can generate random batches of phone numbers for testing, sample datasets and large QA runs in the range you choose.

Fast, free, and easy to use

No registration and no setup. Pick a country, run the random generator, and copy the results — a free generator anyone can use.

Popular use cases for random phone numbers

Testing and data validation

In software development and database testing, a random generator is used to build mock data and contact records, so teams can test forms and validation without touching real people's numbers.

Privacy protection

When a sign up form or login asks for a contact number you'd rather keep private, a random number from this generator protects your privacy and adds a little security.

Advertising and marketing

Marketers sometimes use a generator to build a base of sample numbers for campaigns or giveaways before a launch.

Educational purposes

Teachers use this generator for educational purposes — to show number patterns, probability and basic data analysis to students.

Disclaimer: these are not real numbers tied to real people. Oh, and generated phone numbers should not be used for any illegal or harmful activities. Please see our privacy policy.

A random generator built for real test data

This phone number generator is a free, online random generator made for development and testing. When you test an app you rarely need only a phone number — you also need a random name, a random email, a sample address and a ZIP code (for example a NY or CA code). Our random generator gives you realistic numbers, and the same random approach powers the test data a generator like this is famous for.

Developers often pair a number generator with other random tools: a password generator for a strong password (and bulk passwords), a name generator for realistic names, an alphanumeric generator for a random string or token, an integer or fraction generator for a number in any range, a hex color generator for a random color (or a set of colors), and converters between decimal, binary and hex. The output of each generator can be saved as JSON, CSV or plain text, so a generator that exports clean data is true gold for testing.

The same generator mindset shows up across the web: a base64 encoder, a string shuffler, a MAC address generator, a username or word generator, a code and prefix builder, even a quick calculator. Each random generator removes the manual work — no guessing digits, no stray spaces, no copy-paste errors. This random generator follows that idea and keeps every phone number generator result valid.

In short: one fast random generator for phone numbers, plus a familiar family of random generators (a name generator, a code generator, a color generator and more). Every generator here is free to use, and this generator stays focused on valid, ready-to-use numbers. Looking for the other generators? They live on related pages — this generator is just the phone number generator example.

Frequently asked questions (FAQ)

Are the generated phone numbers valid?

Yes. Each random phone number from the generator is validated against the country numbering rules, so the structure of the number is correct.

Are these real phone numbers?

No. The generator creates random numbers that follow the right format but are not assigned to real people, so it is safe for testing.

Can I receive SMS messages on generated numbers?

No. A random number from this generator cannot receive SMS. If you need a working number, try our free temporary number service instead.

Can I use generated numbers for testing?

Yes — that is the main purpose. These are great phone numbers for testing apps, an API or a CRM during development.

What is E.164 format?

E.164 is the international standard: a plus sign, the country code, then the national number with no spaces, like +14155550123. The generator can output every random number in this format.

Can I generate phone numbers for a specific country?

Yes. Use the search box in the dropdown to find a country, or choose "Any country" to generate phone numbers picked randomly from across the world.

Which formats should you test?

Test all the common input formats: E.164, national format, international format, and numbers with spaces or dashes. Real users type a phone number in many ways, so good testing covers them all.

How should you validate phone numbers in your app?

Don't rely on a simple regex — it misses tricky cases. Use a proven library like Google's libphonenumber (it has a JavaScript build). It parses, validates and formats a phone number correctly, checking the country code and structure.

Best practices for testing phone numbers

  • Test every common input format users might enter.
  • Test both US and international numbers if relevant.
  • Test invalid numbers that are too short, too long, or use non-existent codes.
  • Check how paste from the clipboard is handled, and strip extra spaces.
  • Test formatting on blur versus real-time formatting.
  • Make sure your database storage format matches the format shown to the user.

Tip: in the text output you can edit or remove lines before you export.