Unix timestamp converter
Convert an epoch timestamp to a date you can read, or a date to a timestamp. Seconds, milliseconds, microseconds and nanoseconds are recognised automatically.
Timestamp to date
Paste a timestamp to see its date.
Date to timestamp
Choose a date and time.
What is a Unix timestamp?
The number of seconds since midnight UTC on 1 January 1970, known as the Unix epoch. It is the same number everywhere in the world at the same moment, which is why programs, logs and databases use it. Leap seconds are not counted.
Seconds or milliseconds?
- 10 digits
- Seconds. Used by Unix tools, PHP, Python’s time.time() and most APIs.
- 13 digits
- Milliseconds. Used by JavaScript’s Date.now(), Java and many databases.
- 16 or 19 digits
- Microseconds or nanoseconds, used by some databases, Go and high-resolution logs.
The converter picks the unit from the size of the number. If that is wrong for your value, for example a date very close to 1970 written in milliseconds, set the unit yourself.
What is the year 2038 problem?
Systems that keep the timestamp in a signed 32-bit number run out of room at 2147483647, which is 03:14:07 UTC on 19 January 2038. Modern systems use 64 bits and are not affected.
Is anything sent to a server?
No. Conversion happens in your browser and this page loads no ads.
Related tools
Decode the time claims in a token with the extension’s Tokens tab, format an API response in the JSON formatter, make time-ordered IDs with the UUID generator, or browse all utilities.