Unix timestamp converter
Convert a Unix timestamp in seconds or milliseconds to a date in UTC and your time zone, or an ISO 8601 date back to a timestamp. Shows the current epoch time.
- Current Unix time
- …
Seconds since 1970-01-01T00:00:00Z
Timestamp to date
Seconds or milliseconds since 1 January 1970 UTC.
Date to timestamp
End with Z for UTC or an offset such as +02:00. Without either, it is read as your local time.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the unix timestamp converter
- Paste a timestamp to see it as a date in UTC and in your time zone.
- Set the unit if the guess between seconds and milliseconds is wrong.
- Or enter an ISO 8601 date and time to get its timestamp.
- Use the current time button to start from now.
About this tool
Unix time counts the seconds since midnight UTC on 1 January 1970, not counting leap seconds. It is one number with no time zone, which is why logs, tokens, databases and APIs use it. The exp and iat claims of a JWT, the notAfter of a certificate and the timestamps in most audit logs are Unix times.
The first thing to settle is the unit. Unix tools and JWTs use seconds, ten digits today. JavaScript, Java and many APIs use milliseconds, thirteen digits. Read a millisecond value as seconds and you land tens of thousands of years in the future. This converter guesses from the length and lets you override the guess.
The second is the time zone of what you are comparing against. A timestamp is always UTC. The date you see printed next to it may be local. When you line up events from two systems during an incident, convert everything to UTC first. ISO 8601 with a Z or an explicit offset says which zone a written date is in.
Sources
Questions
It is the starting point of Unix time: 00:00:00 UTC on 1 January 1970. A Unix timestamp is the number of seconds since that moment. Negative values are dates before 1970.
Count the digits. Current timestamps have 10 digits in seconds and 13 in milliseconds. Sixteen digits usually means microseconds and nineteen means nanoseconds.
A signed 32-bit integer can count seconds only up to 2,147,483,647, which is 03:14:07 UTC on 19 January 2038. Systems that still store time in 32 bits will overflow at that moment. Modern systems use 64 bits.
No. It is a count of seconds from a fixed moment in UTC and means the same instant everywhere. A time zone only comes in when the number is turned into a calendar date for display.