How to use it
- To turn a timestamp into a date, paste it into Unix timestamp. The converter shows the date in UTC and in your local time zone, plus how long ago (or from now) it is.
- Leave Unit on automatic, or choose seconds or milliseconds yourself if the guess is wrong.
- To go the other way, pick a date and time under Date to timestamp and choose whether it is local time or UTC. You get seconds and milliseconds.
- Use Copy next to any value, or Use it below to load the current time into the converter.
What a Unix timestamp is
A Unix timestamp counts the time since 00:00:00 UTC on 1 January 1970, known as the epoch. Many systems count in seconds (a 10-digit number today). JavaScript, Java and many APIs count in milliseconds (13 digits). Because the count starts from UTC, a timestamp means the same moment everywhere; only the way it is written out changes with the time zone.
Systems that store the count as a signed 32-bit integer run out on 19 January 2038, at timestamp 2147483647. Try it in the converter, and read the Year 2038 problem explained for what it means in practice.
Limits worth knowing
- Leap seconds are not counted in Unix time, so the converter does not show them.
- Negative timestamps are dates before 1970 and work.
- JavaScript can represent dates up to about 275,000 years either side of 1970. Anything outside that range is rejected.
- The local time shown uses your browser’s time zone, including daylight saving rules for that date.
Related guides
More developer tools: Base64 encoder and decoder, JWT decoder (it shows token expiry times) and cron expression builder.
Frequently asked questions
No. The conversion is done by JavaScript in your browser and nothing you enter leaves your device.
By size. A timestamp in seconds has 10 digits for dates between 2001 and 2286; in milliseconds it has 13. The automatic mode treats values with 12 or more digits as milliseconds. For dates near the epoch in milliseconds, or far in the future in seconds, choose the unit yourself.
Local time is worked out from your browser’s time zone. If your computer’s time zone is set differently from where you are, or you want a different zone, use the UTC line and apply the offset you need.
It is the epoch itself: 1 January 1970, 00:00:00 UTC.
Not directly. Divide a microsecond value by 1,000, or a nanosecond value by 1,000,000, and enter the result as milliseconds.