Skip to content

Random 5 Digit Number Generator

Get a random number with exactly five digits.

Loading the random 5 digit number generator… If nothing appears, please turn on JavaScript.

Press Pick a number to get a random five-digit number from 10000 to 99999. That is 90,000 possible numbers, each equally likely.

Set how many numbers under Options to get a list, and keep "No duplicates" on so every number is different.

How to generate a 5 digit number

  1. Press Pick a number (or the spacebar).
  2. Set how many numbers to get a list of up to 100.
  3. Sort the results from lowest to highest if you need to.
  4. Copy or download the numbers as a list or CSV.

Uses for 5 digit numbers

  • Raffle and ticket numbers: give each entry a unique number.
  • Test data: fill a spreadsheet with sample IDs.
  • Games: a secret number for a guessing game.
  • Classroom maths: practise rounding and place value.
  • Order or reference numbers: for practice or prototypes.

Keep, copy and share your numbers

Every result has a lock button. Locked results stay put when you generate again, so you can keep the numbers you like and reroll the rest. The history panel keeps your earlier results, and the back arrow takes you to the previous set if you generated one time too many. Press Wheel to put the current results on a spinning wheel and pick one with a bit of drama.

Use Copy to copy the results as a plain list, CSV or JSON, or download them as a file. Share copies a link that shows exactly the same results to whoever opens it, which is handy for games, classes and group chats.

Why the range starts at 10000

A five-digit number cannot start with a zero, or it would really be a four-digit number. That is why the range runs from 10000 to 99999, giving 90,000 possibilities. If you need codes that can start with zero, such as 01234, set the range to 0 to 99999 and pad the result with leading zeros.

Do not use these numbers as passwords or security codes. For those, use the random password generator. For shorter numbers, try the 4 digit generator, or the 6 digit generator for longer ones.

How the randomness works

Every result comes from your browser’s built-in cryptographic random number generator (crypto.getRandomValues). We use rejection sampling, so every item has exactly the same chance of being picked, with no bias toward the start or end of the list. Nothing is sent to a server, and share links store the exact results so the person you send them to sees the same thing.

Frequently asked questions

What range does a 5 digit number cover?

From 10000 to 99999, which is 90,000 numbers.

Can a 5 digit number start with 0?

Not as a number. If you need a code like 01234, set the range from 0 and add leading zeros.

Can I get a list with no repeats?

Yes. Set how many numbers and keep "No duplicates" on.

Can I use these as passwords?

No. Use the password generator for anything that needs to be secure.

Can I sort the numbers?

Yes. Choose Lowest first or Highest first under Sort results.

Is the random 5 digit number generator free?

Yes. It is free, with no sign-up.