Unix Timestamp Converter
/timestamp-converter/
Related tools
Comments
About this tool
When you need to convert a Unix timestamp to a date
Server logs, database created_at columns, API responses and JWT exp values often record time as a ten-digit number such as 1700000000. This is a Unix timestamp, also called epoch time. It counts the seconds elapsed since 00:00:00 UTC on January 1, 1970, which is set to 0, so every language and system represents the same moment with the same number regardless of time zone or date format.
Read moreShow less
That is convenient for machines but hard for people to read. Matching the time of an incident, checking when a scheduled job ran, or finding out when a token expires all require turning the number into a date. Enter a timestamp in this tool and it shows the moment in three forms, this device's time zone, UTC and ISO 8601; pick a date and time and it gives you the values in seconds and milliseconds. The current timestamp is shown at the top, updating every second.
How epoch time works in seconds and milliseconds
The same moment has a different number of digits depending on the unit. Unix-like systems, PHP and Python's int(time.time()) use seconds, currently 10 digits, while JavaScript's Date.now() and Java's System.currentTimeMillis() use milliseconds, 13 digits. This tool treats an integer part of 13 or more digits as milliseconds and anything shorter as seconds. So 1700000000 and 1700000000000 are both 2023-11-14 22:13:20 UTC, which is 2023-11-15 07:13:20 in Korea. Fractional seconds such as 1700000000.5 are accepted too, and ISO 8601 shows the milliseconds as .500.
Unix time always counts a day as 86,400 seconds and ignores leap seconds. That keeps date arithmetic straightforward, at the cost of being one second off real elapsed time on days with a leap second. The count first reached one billion at 01:46:40 UTC on September 9, 2001, and 1234567890 fell at 23:31:30 UTC on February 13, 2009, a moment of sequential digits that caught the attention of developer communities at the time. 0 is 1970-01-01 00:00:00 and -1 is one second earlier, 1969-12-31 23:59:59 UTC; dates before 1970 are negative.
The local time line follows the browser's time zone database, so it reflects historical rule changes. South Korea observed daylight saving time in the summers of 1987 and 1988, and on a device set to the Seoul time zone a date in July 1988 shows the offset UTC+10:00. Korea Standard Time today is UTC+09:00, nine hours ahead of UTC.
Using a timestamp converter as a developer or data analyst
When reading logs, first check which time zone the server records in. Most cloud servers and databases store UTC, so use the This device line to match a local time reported by a user and the UTC line to compare with logs from other servers. For values written into API documentation or configuration files, an ISO 8601 string with an explicit zone, such as 2023-11-14T22:13:20.000Z, avoids confusion.
When converting a date to a timestamp, the time you pick is interpreted in this device's time zone. On a device set to Korean time, 9:00 a.m. on October 12, 2026 gives 1791763200 seconds and 1791763200000 milliseconds. Before entering a coupon expiry or scheduled send time on a server, check the API specification for seconds or milliseconds; the wrong unit gives a date in January 1970 or tens of thousands of years in the future, which is easy to spot. Copy copies every line on screen in 'Label: value' form.
The year 2038 problem and the limits of guessing units
Systems that store second-based timestamps in a signed 32-bit integer cannot exceed the maximum value 2147483647. That is 03:14:07 UTC on January 19, 2038, and one second later the value overflows to -2147483648, which is 20:45:52 UTC on December 13, 1901. This is the year 2038 problem. Modern operating systems and languages use 64-bit time, but storage formats whose range ends in 2038, such as older embedded devices and MySQL's TIMESTAMP type, are still around, so check the storage format if you deal with distant future dates.
Guessing the unit from the number of digits has limits. Any number of 12 digits or fewer is read as seconds, so 999999999999 becomes an absurd date in the year 33658. Microsecond (16-digit) and nanosecond values are not detected automatically; remove the last three or six digits to get milliseconds before entering them. Values beyond what JavaScript Date can represent, 100 million days on either side of 1970, are treated as errors. All calculations run in this browser; your input is kept in this browser for next time and cleared with Reset, and the last 5 entries that produced a result can be reloaded from Recent below the tool.
Popular tools
FAQ
How do I tell a seconds timestamp from a milliseconds one?
An integer part of 13 or more digits is treated as milliseconds, anything shorter as seconds. The current time is 10 digits in seconds and 13 digits in milliseconds. The first result line shows which unit was used.
Why is the converted time off by several hours?
That is the difference between UTC and your local time zone; in Korea, for example, it is 9 hours (UTC+9). Most server logs are recorded in UTC, so use the This device line when you need local time. Both values are shown, so pick the one you need.
What is the year 2038 problem?
When time in seconds is stored as a 32-bit integer, the limit is 2147483647, or 03:14:07 UTC on January 19, 2038, and the next second wraps around to 1901. Modern systems using 64-bit time are not affected, but older devices and some database formats need checking.
Can it convert negative timestamps?
Yes. Dates before 1970 are represented as negative numbers and convert normally. -1 is 23:59:59 UTC on December 31, 1969.
Why do I get 1970 or a strange year after converting?
The units are mixed up. A millisecond value fed to a system that expects seconds lands tens of thousands of years in the future, and a seconds value read as milliseconds lands near January 1970. Check both values here and use the unit your API requires.
Does it convert microsecond timestamps?
Not automatically. A 16-digit microsecond value is read as milliseconds and gives a far-future date, so remove the last three digits and enter it as 13-digit milliseconds.