Convert between Unix timestamps (epoch time) and human-readable dates.
How It Works
A Unix timestamp (also known as Epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. It is widely used in programming, databases, and APIs.
- Timestamp to Date: The timestamp (in seconds) is multiplied by 1000 to convert to milliseconds, then used to create a JavaScript Date object.
- Date to Timestamp: The selected date/time is converted to milliseconds since epoch, then divided by 1000 for the seconds-based timestamp.
- Timestamps before January 1, 1970 are negative numbers.
- If your timestamp is 13 digits, it is likely in milliseconds. This converter expects seconds (10 digits) but will auto-detect millisecond timestamps.