Unix Timestamp Converter: Epoch Time to Date and Date to Timestamp

Turn an epoch number into a readable date, or a calendar date into a Unix timestamp. The unit, whether seconds, milliseconds, microseconds or nanoseconds, is recognised for you, and results appear in both UTC and your own time zone.

  • Live epoch clock
  • Detects s, ms, µs and ns
  • UTC and local time
Current Unix timestamp (seconds)0

Timestamp → date

Seconds, milliseconds, microseconds and nanoseconds are detected automatically.

Date → timestamp

How to use the Timestamp Converter tool

  1. Enter an epoch valueType or paste the number; its precision is worked out from the digit count.
  2. See the dateRead it as UTC, in your local zone, in ISO 8601 and as a relative phrase like “in 2 hours”.
  3. Go the other wayChoose a date and time, say whether it’s local or UTC, and get seconds and milliseconds back.
  4. Copy any valueEach line has its own Copy button, and the ticking clock up top shows the current epoch time.

Timestamp converter features

  • Unit recognitionForget dividing by a thousand: 10, 13, 16 and 19-digit values are all interpreted correctly.
  • Two-way conversionEpoch-to-date and date-to-epoch sit next to each other.
  • Time zones handledOutput in UTC and your device’s zone, with proper ISO 8601 offsets.
  • Running clockWatch the present Unix time advance each second, then pause or copy it.
  • Made for developersValues formatted for log files, databases, APIs and token claims.

What is Unix time?

Unix time, also called epoch or POSIX time, counts the seconds elapsed since midnight UTC on 1 January 1970, the so-called Unix epoch. The value 1800000000, for example, corresponds to 15 January 2027 at 08:00:00 UTC. As a single time-zone-free number, it’s the easiest way for software to record and compare instants.

Precision: seconds, milliseconds and beyond

  • Seconds currently have 10 digits, e.g. 1800000000. They’re used by Unix tools, PHP, Python’s time.time() and JWT claims.
  • Milliseconds have 13 digits, e.g. 1800000000000, as returned by JavaScript’s Date.now() and common in Java.
  • Microseconds have 16 digits and turn up in PostgreSQL and some logging systems.
  • Nanoseconds have 19 digits, produced by Go’s UnixNano() and high-precision tracing tools.

Mixing these up is the classic epoch bug: read milliseconds as seconds and you land tens of thousands of years ahead, do the reverse and you’re back in January 1970. Counting the digits avoids the mistake, which is exactly what this converter does.

How to get the current Unix timestamp in code

  • JavaScript: Math.floor(Date.now() / 1000)
  • Python: int(time.time())
  • PHP: time()
  • Java: Instant.now().getEpochSecond()
  • Bash on Linux or macOS: date +%s
  • MySQL: UNIX_TIMESTAMP()

Time zones and leap seconds

Epoch values are inherently UTC. Showing one in “local time” only changes its presentation, never the instant it refers to. Unix time also skips leap seconds, treating every day as precisely 86,400 seconds long.

The Year 2038 problem

Legacy systems that keep time in a signed 32-bit integer max out at 2147483647, which is 03:14:07 UTC on 19 January 2038. A second later the counter wraps around to 1901. Current 64-bit systems move that limit billions of years into the future.

Checking token lifetimes? The JWT Decoder turns exp and iat into dates automatically, and the Date Difference Calculator measures the gap between two dates.

Frequently asked questions

How can I convert an epoch timestamp to a date?
Paste it into the input and the matching date appears immediately in UTC, your local zone and ISO 8601.
How do I know if a timestamp is in seconds or milliseconds?
Present-day values in seconds are 10 digits long and in milliseconds 13 digits; the tool works it out automatically.
Which time zone does a Unix timestamp use?
Effectively UTC. The number identifies one instant everywhere on Earth, and zones only affect how it’s displayed.
What is the Unix timestamp for 1 January 2000?
946684800 seconds, meaning midnight UTC on 1 January 2000.
What happens in 2038?
Systems storing time as a signed 32-bit number overflow after 2147483647, i.e. 19 January 2038 at 03:14:07 UTC. 64-bit systems are unaffected.