Turn an epoch timestamp into a date, or a date into a timestamp. Seconds, milliseconds, microseconds and nanoseconds are told apart by length.
Your data stays in your browser
This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data
The number of seconds since midnight UTC on 1 January 1970, not counting leap seconds. It's how most databases, APIs and log files store time, because one number means the same moment everywhere. 1700000000 was 22:13:20 UTC on 14 November 2023, which was already 03:13 the next morning in Pakistan. Dates before 1970 are negative: -86400 is 31 December 1969.
Count the digits. A current timestamp in seconds has 10 digits, milliseconds has 13 (JavaScript and Java use these), microseconds 16 and nanoseconds 19. The converter reads the length and says which it picked; switch the unit yourself if you're working with very old or far-future dates.
Math.floor(Date.now() / 1000) (Date.now() alone gives milliseconds)time(), and date('Y-m-d H:i:s', $ts) to format oneint(time.time()) after import timeSELECT UNIX_TIMESTAMP(); and FROM_UNIXTIME(1700000000) to read onedate +%s=(A1-DATE(1970,1,1))*86400 turns a UTC date in A1 into a timestamp, and =A1/86400+DATE(1970,1,1) turns a timestamp back into a date (format the cell as a date)Old systems that store the timestamp as a signed 32-bit number run out at 2147483647, which is 03:14:07 UTC on 19 January 2038. One second later they wrap around to 1901. Modern systems use 64 bits and are fine for billions of years, but embedded devices and old databases are still worth checking.
Usually daylight saving. Pakistan doesn't use it, but London, New York and much of Europe do, so the same UTC moment is a different local hour in summer and winter. When you convert a date to a timestamp, the tool uses the offset in force on that date, and it tells you if the time was skipped when clocks went forward or happens twice when they went back.
Reading the exp or iat claim in a login token? The JWT Decoder converts those for you. Converting a meeting time between cities is easier with the Time Zone Converter, and the gap between two dates is a job for Days Between Dates.