Skip to main content

Unix Timestamp Converter

Computers count time as one long number: the seconds (or milliseconds) since 1 January 1970, 00:00 UTC — the Unix epoch. This converter reads that number both ways: timestamp → readable date in UTC and your local time, and date → timestamp for when you are building one.

The live clock at the top shows the current epoch ticking — handy when you are comparing against a log line right now. All conversion happens in your browser.

Loading the converter…

Embed this calculator on your website →

The formula

date = epoch + timestamp seconds · timestamp = (your date − epoch) in seconds, from UTC

  • seconds vs milliseconds — the eternal mix-up. This tool auto-detects: values with a magnitude of 100 billion or more are read as milliseconds, smaller ones as seconds — or pin the unit yourself.
  • timestamps are UTC by nature — a timestamp names one instant worldwide. “Local time” is only a display choice; converting a date back requires choosing which time zone the wall-clock time belongs to.
  • negative values — moments before 1970 work the same way, counting backwards.

Worked example: 1000000000 seconds → Sunday, 9 September 2001, 01:46:40 UTC — the famous “billennium”, the moment the seconds counter reached one billion.

How it works

For timestamp → date, the tool multiplies or divides by 1,000 to normalize to milliseconds, adds the result to the epoch, and renders the instant three ways: ISO 8601, UTC, and your browser’s local time zone, plus a plain-language relative reading (“3 days ago”) computed against the live clock.

For date → timestamp, the wall-clock time you enter is interpreted in the zone you choose — UTC, or your device’s zone — then measured back to the epoch. Dates that cannot exist, like 30 February, are rejected rather than silently rolled into March: the tool checks the converted date matches what you typed.

Examples

  • A log line → 1700000000000 (auto-detected as milliseconds) is 14 November 2023, 22:13:20 UTC.
  • The epoch itself → 0 is 1 January 1970, 00:00:00 UTC — a 0 in a log almost always means “no time was recorded”, not that something happened in 1970.
  • Building an expiry → a date one week from now, converted with the date panel, gives the exact seconds value an API expects for expires_at fields.

Frequently asked questions

Is the current timestamp seconds or milliseconds?

Both are in use, which is exactly why this page shows the live value in both. Most Unix systems and server logs use seconds (10 digits today); JavaScript’s Date.now() and many APIs use milliseconds (13 digits). Counting digits is the quickest tell: 10 = seconds, 13 = milliseconds.

Why does the same timestamp show different local times for different people?

Because it should: a timestamp is one instant, and each time zone renders that instant with a different wall clock. 01:46 UTC is 06:46 in Karachi and 20:46 the previous evening in New York — the same moment, three labels.

What about dates before 1970 or far in the future?

Negative timestamps count backwards from the epoch and work here. Very large values are limited by JavaScript’s date range (about ±273,000 years) and by this tool’s deliberate rejection of absurd magnitudes — a 25-digit 'timestamp' is a data error, not a date.

Does the converter account for leap seconds?

No — like virtually all software, it treats every day as exactly 86,400 seconds. Unix time ignores the leap seconds astronomers occasionally insert; the difference from 'true' elapsed time is under 30 seconds across all of history and matters only to specialists.