Random 4 Digit Number Generator

This random 4 digit number generator makes 1 to 100 numbers at once, from 0000–9999 or 1000–9999, with options to skip repeats and weak PINs. Free, private and no sign-up.

Range

Press Generate for your numbers 🎲

Made in your browser with the Web Crypto random generator; nothing is sent or stored. Tap a number to copy it.

In short

A random 4 digit number generator picks numbers between 0000 and 9999, or 1000 and 9999. This one makes up to 100 at a time, keeps leading zeros for PIN-style codes, and can skip repeated digits, years and weak PINs like 1234. It uses your browser's secure random generator, runs on your device, and is free with no sign-up.

What you can do with it

Four digits is a handy size: easy to remember, quick to type and large enough to feel unpredictable. People use a random 4 digit number generator for phone and lock-box codes, raffle and giveaway tickets, order or test IDs, classroom seat numbers, and to seed a game. Pick the range, set how many you need and copy them all in one go.

The four filters

  • No repeats in the list — each number appears once, like names drawn from a hat.
  • No repeated digits — all four digits differ (5,040 of the 10,000 codes qualify), so 1123 and 7070 are out.
  • Avoid weak PINs — drops 211 easy guesses, leaving 9,789.
  • Avoid years 1950–2030 — keeps out codes that look like a birth year or an anniversary, which people often choose.

About PINs and privacy

The page generates numbers on your own device and does not send or store them, so what you copy is only ever on your screen. There are only 10,000 four-digit codes, so no choice is strong against unlimited guesses; what protects a card or phone is the attempt limit. Use a number from here for a new passcode, and let your bank set or reset a card PIN through its own channels.

Need a different kind of number?

For any range, such as 1–1000 or negative values, use the random number generator or the number randomizer. For a number from one to six, roll the dice roller; and to turn a code into a word, try the random word generator.

Examples

Sample output for three setups:

PIN style, weak PINs skipped

  • 1009
  • 7894
  • 3040
  • 7538

1000–9999, no repeated digits

  • 5124
  • 5038
  • 7853
  • 2157

Not birth-year like

  • 1702
  • 9732
  • 8856
  • 5943

Frequently asked questions

How do I generate a random 4 digit number?

Choose how many you want, pick 0000–9999 or 1000–9999, and press Generate. You get up to 100 numbers per click, and you can tap a number to copy it or copy the whole list. Change an option and the list refreshes straight away.

Why does the range matter: 0000–9999 or 1000–9999?

PIN codes can start with zero, so 0000–9999 gives all 10,000 possible codes and shows leading zeros such as 0472. The 1000–9999 range gives 9,000 true four-digit numbers with no leading zero, which suits IDs, raffle numbers and test data.

Are the numbers truly random?

They come from the Web Crypto generator in your browser (crypto.getRandomValues), the same source websites use for security tokens, and the code removes bias when mapping it to your range. That is better than the plain Math.random() used by many simple generators.

Which PINs does "avoid weak PINs" remove?

It removes all-same-digit codes (0000, 7777), straight sequences up or down (1234, 4321), repeated pairs (1212, 1122), and a few often-guessed codes such as 2000 and 1004. That is 211 of the 10,000 possible codes, so you still have 9,789 to draw from.

Can I use this to pick a PIN for my bank card or phone?

It is fine for a new phone passcode, a locker or a door code, because everything runs locally in your browser and nothing is sent or saved. For a bank card, use the PIN your bank issues or lets you choose, and never reuse it elsewhere. Any four-digit code is only ever one of 10,000 guesses, so a lockout after a few tries matters more than the number.

Does the "no repeats" option change anything?

With it on, no number appears twice in the same list, like drawing from a hat. With it off, a number can repeat, as with rolling dice. If you ask for more numbers than match your settings, you get every matching number once and a note says so.

Related tools: Random number generator · Number randomizer · Dice roller · Random word generator

Updated:

Keep playing

More random generators

Random Word Generator

Nouns, verbs & adjectives by level

Random Team & Group Generator

Split a list into fair teams

Random Animal Generator

Animals with pictures & fun facts

Last Name Generator

Surnames by origin, with meanings

Fake Name Generator

Names & safe fake profiles, CSV export

Random ZIP Code Generator

Real US ZIPs by state, CSV export

Random Date Generator

Dates in any range, weekdays only, CSV

Pictionary Word Generator

Easy to hard words with a timer

D&D Name Generator

Fantasy names by race & gender

Viking Name Generator

Old Norse names & bynames

Character Name Generator

Names for stories, by genre

Random Character Generator

Name, traits, motive & secret

Random Marvel Character Generator

Heroes, villains, wheel & daily guess

Book Idea Generator

Title, logline, conflict & twist

MiniMax H3 Prompt Generator

Hailuo 3 video prompts: camera, beats, sound

Gnome Name Generator

Names, nicknames & clans

Warrior Cat Name Generator

Prefixes, suffixes & ranks

Elf Name Generator

Names & houses by elf type

Orc Name Generator

Orc names & clans with meanings

Dragonborn Name Generator

5e names, clans & childhood names

Dwarf Name Generator

Dwarf names & clans by hold

God Name Generator

Gods & goddesses for 12 domains

German Name Generator

Real German names by era

English Name Generator

Real English names by era

Wizard Name Generator

Names & epithets by school of magic

Random Superpower Generator

Powers with levels & weaknesses

Xbox Username Generator

Gamertags that fit the 12-character rule

OC Name Generator

OC names with quirk, palette and item

Woman Name Generator

Women's names by culture, era and meaning

Random Person Generator

Person with job, look, goal and secret

Aesthetic Username Generator

Cottagecore, academia, Y2K handles; platform fit

Catchphrase Generator

Hero, villain, streamer, brand lines with speakers

Wingding Translator

English to Wingdings and back, with chart

Acronym Generator

Phrase to acronym, or 10 backronym meanings

Point Buy Calculator 5e

27-point 5e ability score calculator

Fantasy World Generator

Full world: magic, factions, conflict, story hook

Random Place Generator

208 places: everyday, real landmarks, fantasy

Vampire Name Generator

Names, surnames & titles

Username Generator

Gaming, cute & Instagram handles

City Name Generator

Fantasy, sci-fi & real-style towns

Fancy Text Generator

30+ copy-paste font styles

Cursed Text Generator

Zalgo text with a strength slider

Glitch Text Generator

Corrupted, broken-screen text

Weird Text Generator

Upside-down, mirrored & odd text

Creepy Text Generator

Unsettling text for bios & posts

Scary Text Generator

Horror-style text to copy

Strikethrough Text Generator

Crossed-out text that pastes anywhere

Subscript Generator

Subscript & superscript text

Pirate Name Generator

Names, nicknames & ships

Incorrect Quote Generator

Funny dialogue for 1–6 characters

Headcanon Generator

406 headcanons, any character

Put a Finger Down

394 statements + finger game

Random Food Generator

What should I eat today?

Random Letter Generator

A–Z with no repeats

Japanese Name Generator

Kanji, kana, romaji & meaning

Japanese Name Converter

Your name in katakana & kanji

Random Color Generator

HEX/RGB/HSL palettes, lock & copy

Fantasy Map Maker

Random worlds, download PNG

My 9 Albums

3×3 album cover grid, PNG

My 9 Games

3×3 favorite games grid

My 9 Movies

3×3 favorite movies grid

My 9 Anime

3×3 favorite anime grid

My 9 Books

3×3 favorite books grid

My 9 Songs

3×3 favorite songs grid

My 9 Artists

3×3 favorite artists grid

My 9 Shows

3×3 favorite TV shows grid

My 9 Manga

3×3 favorite manga grid

My 9 Characters

3×3 favorite characters grid

My 9 Grid Maker

Any 9 pictures in one image

APA Citation Generator

APA 7 reference page & in-text

ASA Citation Generator

ASA 7th ed. references from a DOI

ACS Citation Generator

Numbered ACS references

Chicago Citation Generator

Footnotes, bibliography, author-date

Vancouver Citation Generator

Numbered references from a PMID or DOI

Random Movie Generator

Pick a movie by genre & decade

Wu-Tang Name Generator

What's your Wu-Tang name?

Decision Maker

Wheel, draw lots or yes/no

Random Name Picker

Draw names, no repeats

Number Randomizer

Random numbers in any range

AI Metadata Remover

Strip EXIF, GPS, C2PA, prompts

Western Baby Name Generator

Cowboy & country names with meanings

Random Theme Generator

Themes for parties, writing, art & game jams

Wheel of Names

Spin a wheel of names, up to 200 entries

Random Number Generator

Random numbers in any range, with presets

Random Name Generator

Random first and last names by gender and origin

Fantasy Name Generator

Fantasy names for elves, dwarves, orcs, tieflings and more

Random Country Generator

A random real country by continent and size, with flag and capital

Flip a Coin

Flip 1 to 10 coins with heads, tails and streak counts

Toss a Coin

Call it, play best of 3 to 7, cricket-style toss

Heads or Tails

Coin flip with a series score and streaks

Spin the Wheel

A random topic wheel, plus your own custom wheel

Food Wheel

Spin to decide what to eat

Raffle Wheel

Draw giveaway and raffle winners

Picker Wheel

Random picker for names and choices with saved lists

Dice Roller

Roll 1 to 10 dice from d4 to d100 with a modifier

Bingo Card Generator

Printable bingo card templates, Christmas to 1–75 numbers

Yes or No Wheel

A spinning yes, no or maybe wheel for a quick answer

Random City Generator

A random real city by continent or country

Random Sentence Generator

Random grammatical sentences, from everyday to funny

Random Noun Generator

Random nouns filtered by level, length and letter

Random Emoji Generator

Random emoji from 8 categories, tap to copy

Random NBA Player Generator

NBA players by team, era and position, with lock and daily five

Magic 8 Ball

Shake for one of 20 classic answers, add your own, daily question

Random Pokémon Generator

All 1025 species by generation and type, plus random teams of six