Epoch timestamp shortcuts
Copy-ready Unix timestamps in epoch milliseconds and seconds: the current time, 1 hour ago, the beginning of today, this week and more. Paste any timestamp, date or ID — Unix seconds, ms, µs or ns, ISO 8601, MongoDB ObjectId, UUID v1/v6/v7, ULID, KSUID or Snowflake — to read its date and step it back or forward. Free, and everything runs in your browser.
paste a timestamp, date or ID
$gte / >= bound for “created since” queriesclick anything to copy · j/k move, y copy, n now, / search
- Beginning of this minute
- 1 min ago
- 2 min ago
- 3 min ago
- 4 min ago
- 5 min ago
- 10 min ago
- 15 min ago
- 20 min ago
- 30 min ago
- Beginning of next minute
- in 1 min
- in 2 min
- in 3 min
- in 4 min
- in 5 min
- in 10 min
- in 15 min
- in 20 min
- in 30 min
- Beginning of this hour
- 1 hour ago
- 4 hours ago
- 24 hours ago
- Beginning of next hour
- in 1 hour
- in 4 hours
- in 24 hours
- Beginning of today
- Beginning of yesterday
- 2 days ago
- Beginning of tomorrow
- in 2 days
- Beginning of this week
- 7 days ago
- Beginning of next week
- in 7 days
- Beginning of this month
- 1 month ago
- 3 months ago
- 6 months ago
- Beginning of next month
- in 1 month
- in 3 months
- in 6 months
- Q1 · Jan 1
- Q2 · Apr 1
- Q3 · Jul 1
- Q4 · Oct 1
- Beginning of this year
- Beginning of last year
- 2 years ago
- 3 years ago
- 5 years ago
- Beginning of next year
- in 1 year
- in 2 years
- in 5 years
- Jan 1, 2020
- Jan 1, 2010
- Jan 1, 2000
- Jan 1, 1990
- Jan 1, 1980
- Jan 1, 1970
pick a date & time
What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970 — a moment known as the Unix epoch. The count is kept in UTC so a given timestamp names the same instant everywhere on Earth: no timezone offsets, no daylight-saving jumps. That makes it the standard way computers store and exchange points in time, and converting to a local date is left to whatever displays it. JavaScript, and many APIs and databases, use the same scheme measured in milliseconds instead of seconds: a timestamp in seconds is currently 10 digits long, while one in milliseconds is 13 digits, which is the quickest way to tell them apart. This page shows epoch milliseconds first with seconds alongside, and converts either direction — timestamp to date, or date to epoch ms, seconds and ISO 8601.
What formats does the converter accept?
Epoch seconds, milliseconds, microseconds and nanoseconds, ISO 8601
strings such as 2026-07-21T10:00:00Z, natural phrases like
2 hours ago, yesterday 3pm or
in 30 min, and IDs that carry their creation time: MongoDB
ObjectId, UUID v1/v6/v7, ULID, KSUID and Snowflake IDs from Discord,
Twitter/X, Instagram and Mastodon. The format is detected as you paste.
Integers are read by length — up to 11 digits as seconds, 12–14 as
milliseconds, 15–17 as microseconds and 18–19 as nanoseconds. A long
integer can also be a snowflake, so every plausible reading is listed,
not just the first guess. Everything runs locally in your browser;
nothing is sent to a server.
Adding or subtracting time from a timestamp
Under each decoded value is a table of the same instant moved back and forward by 1, 5 and 15 minutes, 1 and 6 hours, 1 day and 7 days — click a value to copy it. A pasted integer keeps its own unit and every digit, so a nanosecond timestamp shifts to another nanosecond timestamp. Days here are exact 24-hour steps, which is what log windows and query ranges need; across a daylight-saving change the local clock time moves by an hour.