How to use the Unix Timestamp Converter
- Paste a timestamp; seconds, milliseconds or microseconds are detected from its length
- Or pick a date and time to get its timestamp
- Copy the ISO 8601, UTC or local result
About this tool
Unix time counts seconds since 00:00:00 UTC on January 1, 1970, and ignores leap seconds. JavaScript and many APIs use milliseconds (13 digits today), and some databases use microseconds (16 digits). The converter guesses the unit from the number of digits. Because a timestamp is always UTC, the same number shows a different local time in each time zone.
Systems that store time as a signed 32-bit number will overflow at 03:14:07 UTC on January 19, 2038 (timestamp 2,147,483,647). This is the “Year 2038 problem”.
Frequently asked questions
How do I get the current Unix timestamp?
It is shown live at the top of this tool. In code: Math.floor(Date.now()/1000) in JavaScript, time.time() in Python, or date +%s in a shell.
Is a Unix timestamp in UTC?
Yes. It is time-zone independent. Time zones only matter when you display it as a date.
Can timestamps be negative?
Yes. Negative values are dates before 1970; for example, −86400 is December 31, 1969.
Related tools
Updated · Built and maintained by the UtilityBright team · About our tools · Report a problem