Unix time is seconds or milliseconds
CodeMoment · Updated 2026-10-31
Unix time counts seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds. Many APIs instead count milliseconds. The numbers look similar, and reading the wrong unit moves the calendar by decades.
A ten-digit value is seconds. 1600000000 is 2020-09-13 12:26:40 UTC. A thirteen-digit value is milliseconds. 1600000000000 is that same instant. Feed the ten-digit form to a function that expects milliseconds and you land about eighteen days after the epoch, in January 1970. Feed the thirteen-digit form to a function that expects seconds and the date falls centuries ahead. The gap is a factor of one thousand, which is why a unit mistake never looks like a time-zone offset.
The Timestamp Converter reads ten digits as seconds and thirteen digits as milliseconds, and you can override that guess. It shows UTC and the time zone you pick. Daylight-saving rules come from that zone, not from a fixed hour added to UTC. The same instant is a different clock time in another zone. The page does not ask a time server, and the value you type is not uploaded.
You can also paste an ISO date and read the Unix time back. Keep the unit you were given. If a log line has thirteen digits, do not drop three of them to make the number feel familiar.
JWT exp, nbf, and iat are specified in seconds. A payload that contains 1600000000 is a date in 2020, not a millisecond timestamp. The JWT Decoder compares exp with the clock on this device and shows the header and payload. That comparison is a hint about the claim. It does not check the signature. An expiry in the future does not mean the token is trusted, and a ten-digit exp is still seconds even when a nearby system stores other times in milliseconds.
Use the converter when the only question is the unit and the zone. Use the decoder when the number is sitting inside a token and you also need to see that the page is not verifying it.