Unix Timestamp Converter

Convert an epoch timestamp to a readable date, or a date to a timestamp. Seconds, milliseconds, microseconds and nanoseconds are detected automatically.

Current Unix time: โ€”

Mode

What is a Unix timestamp?

A Unix timestamp (epoch time) is the number of seconds since 1 January 1970 00:00:00 UTC. It does not depend on time zones, which makes it ideal for storing and comparing times in databases, APIs and logs.

Seconds or milliseconds?

Unix and most backends use seconds (10 digits today), JavaScript and Java use milliseconds (13 digits). Some systems use microseconds (16) or nanoseconds (19). The converter detects the unit from the size of the number.

Get the current timestamp in code

Frequently asked questions

What is the year 2038 problem?

Systems that store timestamps as signed 32-bit integers overflow on 19 January 2038. Modern systems use 64-bit values.

Do timestamps include leap seconds?

No. Unix time ignores leap seconds; every day has exactly 86,400 seconds.

Can timestamps be negative?

Yes. Negative values represent dates before 1970.