Unix Timestamp Converter

Paste a Unix timestamp to see the date and time. Or turn a date into a timestamp.

Date and time

2027-01-15 08:00:00 UTC

  • seconds detected from the number
  • 1800000000 seconds since 1 Jan 1970
  • 1800000000000 milliseconds
  • Friday in UTC

Date to timestamp

Enter a date and a time in UTC to get its Unix timestamp.

  • 1800000000 seconds
  • 1800000000000 milliseconds

How it works

Divide the timestamp by 86,400 to get whole days since 1 January 1970. The leftover seconds are the time of day.

Formuladate = 1 Jan 1970 + ⌊timestamp ÷ 86,400⌋ days(the remainder is the time)

Worked example

Timestamp 1,800,000,000.

  1. Whole days (÷ 86,400)20,833
  2. 1 Jan 1970 + 20,833 days15 Jan 2027
  3. Leftover seconds28,800
  4. 28,800 s = 8 hours08:00:00 UTC

Questions people ask

What is a Unix timestamp?

The number of seconds since 1 January 1970 at 00:00:00 UTC. That moment is called the Unix epoch. Computers use it because one number is easy to store and compare.

How do I know if it is in seconds or milliseconds?

Count the digits. Today a timestamp in seconds has 10 digits. In milliseconds it has 13. Microseconds have 16. The box above guesses from the size of the number and tells you what it chose.

Does a Unix timestamp have a time zone?

No. It always counts from the same moment in UTC, so it is the same everywhere. Only the way we write it as a date changes with the time zone. We show UTC and your own zone.

Can a timestamp be negative?

Yes. A negative number is a moment before 1970. -86400 is 31 December 1969.

What is the year 2038 problem?

Old systems store the timestamp in a 32-bit number. It runs out at 03:14:07 UTC on 19 January 2038. Newer systems use 64 bits, which lasts far longer.

Are leap seconds counted?

No. Unix time pretends every day has exactly 86,400 seconds. That keeps the maths simple.

Related tools

Last updated By Sufian Majid Sources: POSIX: seconds since the Epoch