Unix timestamp converter
Turn a Unix timestamp into a human-readable date, or a date into a timestamp. It auto-detects seconds versus milliseconds and shows UTC, your local time and ISO 8601. Free, and it runs in your browser.
How to use it
- Type a timestamp in Unix timestamp and leave Unit on auto-detect (or pick one).
- Read the date in UTC, in your time zone and in ISO 8601 under Timestamp to date.
- To go the other way, set Date and time to convert and choose whether it is in UTC or your time zone.
- Use Current time to grab the timestamp for this exact moment.
Complete guide to Unix timestamps
What a Unix timestamp is
A Unix timestamp counts the time that has passed since 00:00:00 UTC on January 1, 1970, a moment known as the Unix epoch. Because it is a single number with no time zone, no daylight saving and no calendar format, it is the favorite way for databases, APIs, log files and programming languages to store a moment. Everyone who reads 1700000000 agrees on exactly which instant it is, wherever they live. The catch is that people cannot read it, which is where this converter helps: it turns a timestamp into a date, a date into a timestamp, and always shows the current time.
Seconds or milliseconds
Classic Unix time counts seconds and has 10 digits today. JavaScript, Java and many web APIs count milliseconds and have 13 digits. With Unit on Auto-detect, a value whose absolute size is 100 billion or more is read as milliseconds and anything smaller as seconds. If your value sits near that line or you want to be sure, set Seconds or Milliseconds yourself. The field accepts digits, an optional minus sign for dates before 1970 and a decimal part, but no letters or spaces.
Worked examples
- Type
1700000000in Unix timestamp. Under Timestamp to date, Detected unit says Seconds, ISO 8601 (UTC) shows2023-11-14T22:13:20.000Zand UTC shows Tuesday, November 14, 2023 at 10:13:20 PM UTC. The rows for your time zone and for Relative to now depend on your device and today's date. - Type
1700000000000, with 13 digits. The unit is detected as Milliseconds and the date is the same instant, 2023-11-14T22:13:20.000Z. - Type
0. The result is 1970-01-01T00:00:00.000Z, the epoch itself. - For the opposite direction, set Date and time to convert to 2024-01-01 00:00 and leave That date is in on UTC. Under Date to timestamp, Seconds reads 1704067200 and Milliseconds reads 1704067200000. Another example: 2000-01-01 12:30 in UTC is 946729800.
If you choose My browser time zone instead of UTC, the same wall-clock time gives a different timestamp, shifted by your offset from UTC.
Reference values
| Timestamp (seconds) | Moment in UTC |
|---|---|
-1 | 1969-12-31T23:59:59Z |
0 | 1970-01-01T00:00:00Z |
86400 | 1970-01-02T00:00:00Z (one day later) |
1000000000 | 2001-09-09T01:46:40Z |
1500000000 | 2017-07-14T02:40:00Z |
2147483647 | 2038-01-19T03:14:07Z, the limit of a signed 32-bit integer |
Tips and common mistakes
- The most frequent bug is mixing seconds and milliseconds. A timestamp read as milliseconds when it was in seconds lands in January 1970; the reverse lands thousands of years away.
- A timestamp has no time zone. The zone only matters when you show it as a calendar date, so always say whether a date is UTC or local.
- The 32-bit limit above is the "year 2038 problem": systems that store seconds in 32 bits overflow after that moment.
- Leap seconds are not counted in Unix time, and every day is treated as exactly 86,400 seconds.
- The tool reads your own clock for Current time and for the relative text, so a wrong device clock gives wrong results.
- Values beyond the range of JavaScript dates, about 8.64 quadrillion milliseconds, show an error.
Related tools
Compare dates in more detail with the date difference calculator, convert clock times between places with the time zone converter, and read the exp and iat values of a token with the JWT decoder.
Questions
What is a Unix timestamp?
It is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC (the Unix epoch). Many systems store it in milliseconds instead.
How does auto-detect choose seconds or milliseconds?
Values with an absolute size of 100 billion or more are treated as milliseconds, smaller ones as seconds. That covers dates up to the year 5138 in seconds. Pick the unit manually if you need to force it.
Does it handle negative timestamps?
Yes. Negative values are moments before 1970, for example -1 is 1969-12-31T23:59:59Z.
Which time zone is "local"?
The time zone of your browser or device, shown next to the label. UTC does not change with daylight saving time.