What is a random date generator?
A random date generator picks a date at random from a range you choose: set a start date and an end date, press the button, and a date appears. The default range is the whole of 2026, from 1 Jan 2026 to 31 Dec 2026, so the first press gives a random day somewhere in that year. Narrow the range to a month, a week, or a single decade, and the pick comes from that range instead.
The problem it solves is the one every writer, teacher, and game master knows: you need a date, and any date will do, but choosing one feels oddly hard. A birthday for a fictional character, a date for a history quiz, a random day for a test booking — the date does not matter, and that is exactly why picking it is a chore. A random pick ends the chore in a second.
Every day in the range has the same chance. In a full year of 365 days, each date has a 1 in 365 chance, about 0.27%. In June, with 30 days, each date has a 1 in 30 chance, about 3.3%. The range decides the odds, and the pick is fair across the whole range — a date in January is exactly as likely as a date in December.
Everything runs in your browser. Press the button as often as you like — every press is a fresh, independent date. Nothing is uploaded, nothing is stored, and no account is needed.
How a random date generator works
The generator counts the days in your range, including both end dates, then picks one of them at random. From 1 Jan 2026 to 31 Dec 2026 is 365 days, so the pick is one of 365 dates. From 1 Jun 2026 to 30 Jun 2026 is 30 days, so the pick is one of 30 dates. The count is shown on the page, so you can check the range before you trust the pick.
The pick itself is a random day offset from the start date: a random number from 0 to the number of days minus one, added to the start date. A random offset of 0 gives the start date itself, and an offset of 364 in a full year gives the end date. Both end dates are included, and both have the same chance as every day in between.
The odds are simple because every day is equal. In a full year, the chance of landing on any one date — your birthday, New Year's Day, a specific Monday — is 1 in 365, about 0.27%. The chance of landing in a given month is the month's days divided by 365: January, with 31 days, is about 8.5%, and February, with 28 days in 2026, is about 7.7%.
This page uses the browser's random number generator to pick the offset, so the result is genuinely unpredictable. A date difference calculator does the related maths — how many days sit between two dates — while this tool picks one of those days at random.
Short range or long range: what changes
A short range gives a focused pick. A week has 7 days, so each date has a 1 in 7 chance, about 14.3%. A month has 28 to 31 days, so each date has about a 1 in 30 chance, about 3.3%. Short ranges are right for planning: pick a random day next week for a meeting, or a random day in June for a holiday.
A long range gives a spread-out pick. A year has 365 days, so each date has a 1 in 365 chance, about 0.27%. A decade has about 3,652 days, so each date has about a 1 in 3,652 chance, about 0.03%. Long ranges are right for stories and quizzes: a random date in the 1990s for a character's birthday, or a random date in the last century for a history question.
The range also changes what the result feels like. A pick from a week is a date you will use soon, and it feels practical. A pick from a century is a date in history, and it feels like a discovery. Set the range to match the question: the narrower the range, the more useful the answer.
One rule applies to every range: both end dates are included. From 1 Jun to 30 Jun is 30 days, not 29, and the pick can land on 1 Jun or on 30 Jun. If you want a range that excludes an end date, move that end date by one day. A months between dates calculator can check how many months a range covers, if months are the unit you think in.
A worked example: a year, a month, and a week
First, the default: the whole of 2026, from 1 Jan 2026 to 31 Dec 2026. The range has 365 days, and the pick might be 14 Mar 2026, or 2 Sep 2026, or any other day of the year. Each of the 365 dates has a 1 in 365 chance, about 0.27%. The chance of landing on a weekend is 104 in 365, about 28.5%, because 2026 has 104 weekend days.
Second, a month: June 2026, from 1 Jun 2026 to 30 Jun 2026. The range has 30 days, and the pick might be 17 Jun 2026. Each date has a 1 in 30 chance, about 3.3%. The chance of landing on a weekend in June 2026 is 8 in 30, about 26.7%, because June 2026 has 8 weekend days.
Third, a week: from 1 Jun 2026 to 7 Jun 2026. The range has 7 days, and the pick might be 4 Jun 2026. Each date has a 1 in 7 chance, about 14.3%. The chance of landing on a weekend is 2 in 7, about 28.6%, because the week has a Saturday and a Sunday in it.
Try your own range now. Set the dates to your birth month and press the button a few times. Each date should appear roughly equally often over many presses. That is the fairest check of a random date generator: not that any single date looks right, but that every date in the range gets its turn over time.
Who generates random dates, and why
Writers are the main users. A character needs a birthday, a story needs a date, and a timeline needs events scattered across a year. A random date in the right range gives a date that feels natural without the writer spending ten minutes choosing one — and the date is different every time, so no two characters share a birthday by accident.
Teachers use it for quizzes and history lessons. Pick a random date in a century and ask what happened on it, or pick a random date in a month and ask what day of the week it was. The range is the lesson: a century for history, a month for the calendar, a week for the days of the week.
Testers and developers use it for test data. A booking system needs dates across a year, a report needs dates across a quarter, and a form needs a birth date in a range. A random date in the right range is test data that looks real, and it costs nothing to generate. A weeks between dates calculator can check how many weeks a test range covers.
Game masters use it for campaigns and worlds. A random date in a fantasy calendar, a random day for an event, a random birthday for a non-player character — the date adds detail without adding work. An age calculator can then work out how old a character is on any given date in the story.
Random date generator vs date difference calculator
A random date generator and a date difference calculator work with the same two dates, but they answer opposite questions. The difference calculator tells you how many days sit between two dates — 365 days for the whole of 2026, 30 days for June. The random date generator picks one of those days.
Use the difference calculator when you need a count: how many days until a deadline, how long between two events, how old someone is in days. Use the random date generator when you need a date: a birthday, a test date, a day for an event. The count is the size of the range, and the pick is one day inside it.
The two tools agree on the numbers. From 1 Jan 2026 to 31 Dec 2026, the difference calculator says 365 days, and the random date generator says the range has 365 days. From 1 Jun to 30 Jun, both say 30. If the numbers ever disagree, the range is set differently in the two tools — check the dates, not the tools.
For a countdown to a date rather than a pick, a birthday countdown counts the days to a date you choose. The countdown looks forward to a fixed date, and the random date generator picks a date from a range — two ways of working with dates, for two different jobs.
Common random date mistakes
The most common mistake is forgetting that both end dates are included. From 1 Jun to 30 Jun is 30 days, not 29, and the pick can land on either end. People who expect 29 days are counting the gap between the dates, not the dates themselves. The page shows the day count, so check it before you trust the pick.
Second: setting the range backwards. If the start date is after the end date, the generator swaps them, so the pick still comes from the same range — but the range shown on the page will list the earlier date first, which can surprise you. Set the earlier date first and the later date second, and the range reads the way you expect.
Third: expecting the pick to be even over a few presses. In a year of 365 days, pressing the button ten times will not give ten evenly spread dates — it might give three dates in March and none in August. Random does not mean evenly spread in the short run; it means evenly spread over a long run.
Fourth: using a random date where a real date is needed. A random date is fine for a story, a quiz, or test data. It is not fine for a deadline, a booking, or a birthday — those are real dates, and picking one at random is how a deadline gets missed. Use the generator for the dates that do not matter, and keep the real ones on a calendar.
How to use this random date generator
Using this random date generator is simple. Set the start date — 1 Jan 2026 is the default. Set the end date — 31 Dec 2026 is the default. Press Generate a Random Date, and a date appears, with the number of days in the range and the range itself below it. Press the button again for a fresh date.
Check the day count before you trust the pick. A full year should show 365 days, a month should show 28 to 31 days, and a week should show 7 days. If the count surprises you, one of the dates is set wrong — most often the year, which is easy to mistype.
Everything runs in your browser. No account, no form, no data sent anywhere — the dates never leave your device. You can generate as many dates as you like, for as many ranges as you like. A date difference calculator is a good next stop if you need the count between two dates rather than a pick.
Remember the honest limit: the date is random. It is a fair way to pick a date when any date in the range will do, and it is not a prediction, a lucky date, or a date with any meaning attached. Use it to fill in the dates that do not matter, and keep the dates that do on your calendar.