Convert Unix epoch timestamps to human-readable dates and vice versa. Supports both seconds and milliseconds, with UTC and local time display.
A Unix timestamp (also known as Epoch time or POSIX time) is a system for describing a point in time as the number of seconds that have elapsed since the Unix Epoch — January 1, 1970, 00:00:00 UTC — minus leap seconds. It is widely used in operating systems, file formats, databases, and APIs because it is timezone-independent and easy to store as an integer.
Unix timestamps are commonly represented in two formats:
1725408000. Used by most systems, databases, and APIs.Date.now(), Java's System.currentTimeMillis(), and many modern APIs, e.g., 1725408000000.This converter automatically detects whether your input is in seconds or milliseconds based on its length.
On January 19, 2038, the 32-bit signed Unix timestamp will overflow (reaching 2,147,483,647 seconds). Systems using 32-bit integers will experience issues. Most modern systems use 64-bit integers, which can handle dates billions of years into the future.
The Unix Epoch was chosen arbitrarily by the creators of the Unix operating system at Bell Labs. It was set to the start of 1970 as a convenient reference point, and it has since become an industry standard.
Unix time does not account for leap seconds. Each day is treated as exactly 86,400 seconds. When a leap second is added, the timestamp repeats or skips a second, which can cause issues in highly precise systems.
Math.floor(Date.now() / 1000)import time; int(time.time())time()System.currentTimeMillis() / 1000(int)DateTimeOffset.UtcNow.ToUnixTimeSeconds()