Unix Timestamp Converter

Convert between Unix epoch timestamps and human dates.

Runs in your browser — nothing is uploaded

 

What a Unix timestamp is

A Unix timestamp, or epoch time, is the number of seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is how most databases, logs, APIs and JWT claims store a moment in time, because a single integer is compact, unambiguous and independent of time zones.

Paste a timestamp to see it as an ISO 8601 date and a readable UTC date, or paste a date to get its timestamp back in both seconds and milliseconds.

Seconds or milliseconds?

Unix tools, most server languages and JWTs count in seconds. JavaScript's Date.now() and Java's System.currentTimeMillis() count in milliseconds. Present-day timestamps have 10 digits in seconds and 13 in milliseconds, so the converter treats any number longer than 10 digits as milliseconds and anything shorter as seconds. 1700000000 and 1700000000000 are therefore the same moment.

If a converted date lands in 1970 or tens of thousands of years in the future, the value was almost certainly read in the wrong unit.

Dates and time zones

Timestamps are always UTC. When you enter a date, include an offset or a trailing Z (for example 2024-02-29T12:00:00Z) to be unambiguous. A full date and time without an offset is read in your browser's local time zone. A date-only value such as 2024-02-29 is treated as midnight UTC. To see one moment across several cities, use the time zone converter.

Examples

Timestamp in seconds

Input

1700000000

Output

Unix (s):  1700000000
Unix (ms): 1700000000000
ISO 8601:  2023-11-14T22:13:20.000Z
UTC:       Tue, 14 Nov 2023 22:13:20 GMT
Timestamp in milliseconds

Input

1700000000000

Output

Unix (s):  1700000000
Unix (ms): 1700000000000
ISO 8601:  2023-11-14T22:13:20.000Z
UTC:       Tue, 14 Nov 2023 22:13:20 GMT
ISO 8601 date to timestamp

Input

2024-02-29T12:00:00Z

Output

Unix (s):  1709208000
Unix (ms): 1709208000000
ISO 8601:  2024-02-29T12:00:00.000Z
UTC:       Thu, 29 Feb 2024 12:00:00 GMT

How to use

  1. Enter a timestamp or a date.
  2. Read the converted values.

FAQ

What is the Year 2038 problem?

Systems that store Unix time as a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038. Modern platforms use 64-bit values, which do not overflow for billions of years.

Does Unix time include leap seconds?

No. Every Unix day is exactly 86,400 seconds, so Unix time ignores leap seconds.

Related tools