Unix Timestamp Converter
Convert a Unix timestamp to a date and back, with seconds and milliseconds told apart automatically.
Current Time
-
-
Timestamp to Date
Date to Timestamp
-
-
What is Unix Timestamp?
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 (Unix Epoch).
It's a timezone-independent way to represent time, widely used in programming and databases. JavaScript uses milliseconds, while most Unix systems use seconds.
Year 2038 Problem: On 32-bit systems, Unix timestamps will overflow on January 19, 2038 at 03:14:07 UTC. Most modern systems use 64-bit integers to solve this issue.
A Unix timestamp counts the seconds since 00:00 UTC on 1 January 1970. Enter one and the tool shows ISO 8601, UTC, your computer's local time, and how long ago it was. All calculation happens in your browser.
The same number as Korean time
Pressing the quick buttons on a computer set to Korea (UTC+9) gives this.
| Timestamp | ISO 8601 (UTC) | Korean time |
|---|---|---|
| 0 | 1970-01-01T00:00:00.000Z | 9:00 AM, 1 Jan 1970 |
| 1000000000 | 2001-09-09T01:46:40.000Z | 10:46:40 AM, 9 Sep 2001 |
| 1704067200 | 2024-01-01T00:00:00.000Z | 9:00 AM, 1 Jan 2024 |
| 2147483647 | 2038-01-19T03:14:07.000Z | 12:14:07 PM, 19 Jan 2038 |
The last value is the largest signed 32-bit integer; older systems storing time in 32 bits wrap to a negative number one second later, known as the Year 2038 problem. The Z at the end of ISO means UTC, and the badge at the top names the time zone used.
Where seconds end and milliseconds begin
With Auto, a number above 9999999999 is read as milliseconds and anything else as seconds, so up to 10 digits is seconds and 11 or more is milliseconds. 1704067200 and 1704067200000 are the same instant. Commas are removed and decimals dropped. JavaScript's Date.now() and Java's System.currentTimeMillis() return 13-digit milliseconds, while date +%s on Linux and PHP's time() return 10-digit seconds.
Going from date to timestamp, the time zone changes the answer. 00:00:00 on 1 January 2024 is 1704067200 read as UTC, but 1704034800 read as local time on a Korean computer, 9 hours (32,400 seconds) less. For values going to a server or database, UTC causes fewer surprises. The date boxes accept years 1970 to 2100.
When a number gives a strange date
A date near January 1970 means a 10-digit seconds value was entered with milliseconds selected. A date tens of thousands of years away means a 16-digit microsecond value; drop the last three digits. A 9-hour gap against server logs means the log is in UTC, so compare with the ISO line. Relative time treats a month as 30 days and a year as 365. A date that does not exist, like 30 February, rolls into the next month and becomes 2 March in 2026.
Do negative timestamps work?
Yes. Entering -86400 gives 00:00 UTC on 31 December 1969.
Does a timestamp have a time zone?
The number itself does not. The same instant gives the same number anywhere, and time zones only matter when converting to a date people read.