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.

now · epoch seconds
—
 

paste a timestamp, date or ID

click anything to copy · j/k move, y copy, n now, / search

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.