How to use the Unix Timestamp Converter
- Paste a timestamp such as 1700000000 into the first box. Leave the unit on Auto-detect or pick one if the guess is wrong.
- Read the ISO 8601 date in UTC, the same moment in your chosen time zone, and how far it is from now.
- To go the other way, type a date such as 2023-11-14 22:13:20 in the second section and copy the seconds or milliseconds.
- Use "Use current time" to fill both sections with the present moment.
What Unix time is
Unix time counts the seconds that have passed since 00:00:00 UTC on 1 January 1970, called the epoch. It ignores time zones and daylight saving, which makes it a reliable way to store and compare moments. JavaScript, Java and many databases use milliseconds instead of seconds, and some systems use microseconds or nanoseconds.
Auto-detection looks at the size of the number: below 1e11 it is read as seconds, below 1e14 as milliseconds, below 1e17 as microseconds, otherwise nanoseconds. For ordinary dates this separates the units reliably, but pick the unit yourself for dates very far in the past or future.
The year 2038 problem
Systems that store Unix time as a signed 32-bit integer overflow after 2147483647, which is 2038-01-19 03:14:07 UTC. The next second wraps to a negative number, a date in 1901. Modern systems use 64-bit values, which last for hundreds of billions of years, but old embedded devices and file formats can still be affected.
Frequently asked questions
How do I know whether a timestamp is in seconds or milliseconds?
Count the digits. A current timestamp in seconds has 10 digits (about 1.7 billion), in milliseconds 13 digits, in microseconds 16 and in nanoseconds 19. The converter uses this to detect the unit.
Does a Unix timestamp depend on the time zone?
No. It is the same number everywhere. Only the way the date is displayed changes with the time zone.
How are dates without a time zone handled?
In the date-to-timestamp section a value without Z or an offset is treated as UTC. Add an offset such as +07:00 to read it in another zone.
What is the largest date this tool supports?
The limit is the range of a JavaScript date, which is 8.64e15 milliseconds either side of the epoch, roughly the years -271821 to 275760.
Are leap seconds counted?
No. Unix time treats every day as exactly 86,400 seconds, so leap seconds are not represented.