Unix Timestamp Converter
Current Unix time
-
Timestamp → date
Date → timestamp
How it works
Convert Unix timestamps (seconds or milliseconds) to local time, UTC and ISO 8601, or turn a date into a timestamp. Shows the current epoch time live.
What is a Unix timestamp?
Unix time (epoch time) counts the seconds since 00:00:00 UTC on 1 January 1970. It's the same everywhere regardless of time zone, so servers, databases and APIs use it to store moments in time. Many systems, like JavaScript's Date.now(), use milliseconds (13 digits) instead; this tool detects seconds, milliseconds or microseconds from the number of digits.
Get the current timestamp
- JavaScript:
Math.floor(Date.now() / 1000) - Python:
int(time.time()) - MySQL:
UNIX_TIMESTAMP() - Linux/macOS shell:
date +%s
Timestamps stored as signed 32-bit integers overflow on 19 January 2038 (the "Year 2038 problem"), so use 64-bit values in new systems.