Unix Timestamp Converter

Convert Unix timestamps in seconds, milliseconds, microseconds or nanoseconds to dates in any time zone, and dates back to epoch time.

Current Unix time

How to convert a Unix timestamp

  1. Paste a timestamp such as 1700000000. Seconds, milliseconds, microseconds and nanoseconds are detected automatically.
  2. Read the date in UTC, in ISO 8601 and in the time zone you choose.
  3. To go the other way, type a date like 2026-01-31T12:00:00Z and copy the Unix time in seconds or milliseconds.

Good to know

Frequently asked questions

What is a Unix timestamp?

It is the number of seconds that have passed since January 1, 1970 at 00:00:00 UTC, known as the Unix epoch. It does not depend on time zones, which makes it a simple way to store and compare moments in time.

Is my timestamp in seconds or milliseconds?

Current timestamps have 10 digits in seconds and 13 in milliseconds. JavaScript Date.now() returns milliseconds, while most Unix tools, databases and APIs use seconds. This converter detects the unit from the number of digits, and you can override it.

How do I get the current timestamp in code?

JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). Go: time.Now().Unix(). Bash: date +%s.

What is the year 2038 problem?

Systems that store Unix time in a signed 32-bit integer overflow on January 19, 2038 at 03:14:07 UTC. Modern systems use 64-bit integers, which last for billions of years.