Tools › Unix Timestamp Converter
🕒
Unix Timestamp (Epoch) Converter
Convert between Unix epoch time and readable dates. Seconds and milliseconds are detected automatically.
How it works
Unix time counts the seconds since 1 January 1970 00:00:00 UTC, ignoring leap seconds. Many systems (JavaScript, Java) use milliseconds instead, which is 1000 times larger. Values with 13 digits are treated as milliseconds here; 10 digits as seconds.
The famous "Year 2038 problem" affects systems that store the timestamp in a signed 32-bit integer, which overflows on 19 January 2038.
Frequently asked questions
How do I get the current Unix timestamp?
In a shell: date +%s. In JavaScript: Math.floor(Date.now()/1000). In Python: int(time.time()).
Is a Unix timestamp timezone dependent?
No. It always refers to UTC. Only the displayed date changes with the timezone.
How can I tell seconds from milliseconds?
Current timestamps have 10 digits in seconds and 13 digits in milliseconds.