Random Timestamp Generator
Unix timestamps in any date range
Two date fields set the window — 2000-01-01 to 2026-01-01 by default — and both are parsed at midnight UTC, which matters: the boundaries are the same instant regardless of where the browser is running, so a batch generated in two different time zones still lands inside the window you asked for. The Unit dropdown switches between whole seconds and milliseconds, and the seconds form simply truncates the underlying millisecond value, so a row in seconds is always consistent with the millisecond row that shares its prefix. Count runs from 1 to 500. Like the coordinate and date generators, this page fills the window with Math.random, which suits fixture data and would not suit anything that must be unpredictable to an observer.
Create random Unix timestamps (seconds or milliseconds) between two dates. Perfect for seeding databases, testing APIs and simulating event streams.
Private Random Timestamp Generator In Your Browser
Random Timestamp Generator is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Random Timestamp Generator
Enter two dates as YYYY-MM-DD in From date and To date.
Choose a Unit: Seconds or Milliseconds.
Ask for up to 500 timestamps.
Roll the window; the output is one integer per line in the unit you selected.
- Window boundaries parsed at midnight UTC, so results do not shift with the viewer's time zone.
- Seconds or milliseconds output from the same draw, with seconds truncated rather than rounded.
- Batch sizes from 1 to 500 timestamps per run.
- Reversed date bounds are sorted automatically before the draw.
- A backend developer seeds a events table with five hundred timestamps between two dates to test a time-window query.
- An API tester replays a request log whose created_at fields are epoch seconds rather than ISO strings.
- A data engineer generates a burst of millisecond timestamps to see how a chart handles events in the same second.