Skip to content

Unix Timestamp Converter

Paste a Unix timestamp to see the moment it stands for in UTC, as ISO 8601 and RFC 2822 strings, in a time zone you choose and in your own; or enter a date and time to get the timestamp. Seconds, milliseconds, microseconds and nanoseconds are recognised by their length. To compare clock times between cities without timestamps, use the time zone converter.

Convert

Read as seconds (10 digits). Choose a unit to override.

Unit

Result

Date and time in UTC

Jan 15, 2027, 8:00:00 AM

Fri, Jan 15, 2027 · UTC

ISO 8601
2027-01-15T08:00:00Z
RFC 2822
Fri, 15 Jan 2027 08:00:00 +0000
In New YorkFri, Jan 15, 2027 · EST · UTC−05:00
3:00:00 AM
Days since 1 Jan 1970
20,833
Fits a signed 32-bit time
Yes
Seconds
1800000000
Milliseconds
1800000000000
Microseconds
1800000000000000
Nanoseconds
1800000000000000000
Show the working
  1. Whole days since the epoch, and seconds left over1800000000 ÷ 86,400 = 20,833 days + 28,800 s
  2. Count 20,833 days from 1 January 19701970-01-01 + 20,833 = Jan 15, 2027
  3. Seconds left over as a time of day28,800 s = 8:00:00 AM UTC
  4. Time in New York = UTC + its offset8:00:00 AM + (−05:00) = 3:00:00 AM, Jan 15, 2027

Unix time counts every day as exactly 86,400 seconds and ignores leap seconds. Time zone rules come from your browser’s time zone database. A signed 32-bit counter ends at 2,147,483,647.

How to convert a Unix timestamp

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds since the Unix epoch, midnight UTC at the start of 1 January 1970 (1970-01-01T00:00:00Z). It is the same number everywhere on Earth at the same moment, which is why logs, databases and APIs store time this way. Only when you display it do you need a time zone.

  1. Paste the timestamp. A 10-digit number is read as seconds, 13 digits as milliseconds (JavaScript’s Date.now()), 16 as microseconds and 19 as nanoseconds. If the guess is wrong, pick the unit yourself.
  2. Choose a time zone to see the local time there. Your own local time appears too.
  3. To go the other way, switch to “Date → timestamp”, enter a date, a time with seconds and the zone the time is in. “Now” fills in the current moment.

The result gives the date in UTC, an ISO 8601 string for code and data files, an RFC 2822 string as used in email headers, and the value in all four units. For clock times between cities, the time zone converter is simpler; for the span between two dates, use the days between dates calculator.

The formula

POSIX defines the timestamp by counting every day as exactly 86,400 seconds. Split the timestamp into whole days and the seconds left over:

days = ⌊t ÷ 86,400⌋, seconds of the day = t − days × 86,400

t = days since 1970-01-01 × 86,400 + hours × 3,600 + minutes × 60 + seconds

t
the timestamp in seconds (divide milliseconds by 1,000 first)
days
whole days after 1 January 1970, counted on the Gregorian calendar; negative before it

The date is found by counting that many days from 1 January 1970, and the seconds of the day give the UTC clock time. A local time is UTC plus the zone’s offset on that date; to go back, subtract the offset first.

Leap seconds. Unix time ignores them. Because every day is 86,400 seconds by definition, a leap second has no timestamp of its own, and the count differs from the true number of elapsed SI seconds since 1970 by the leap seconds added since then. The POSIX standard states that the relationship between its count and the actual UTC time is unspecified.

Worked example

What date is the timestamp 1,800,000,000?

  1. 1,800,000,000 ÷ 86,400 = 20,833 whole days, with 28,800 seconds left over (20,833 × 86,400 = 1,799,971,200).
  2. 20,833 days after 1 January 1970 is Friday, 15 January 2027.
  3. 28,800 seconds is 8 hours, so the moment is 2027-01-15T08:00:00Z.
  4. New York is on standard time in January, UTC−05:00, so it is 3:00:00 a.m. there.

The same moment in milliseconds is 1,800,000,000,000 and in RFC 2822 form “Fri, 15 Jan 2027 08:00:00 +0000”.

In reverse, the calculator starts on 18 January 2038, 22:14:07 in New York. Adding the 5-hour offset gives 03:14:07 UTC on 19 January 2038, which is timestamp 2,147,483,647, or 2³¹ − 1: the last second a signed 32-bit counter can hold.

The year 2038 problem and other pitfalls

  • 2038. Systems that store the timestamp in a signed 32-bit integer can count up to 2,147,483,647, which is 03:14:07 UTC on 19 January 2038. One second later the value wraps to −2,147,483,648, which reads as 20:45:52 UTC on 13 December 1901. 64-bit timestamps push the limit billions of years away; the result says whether a time fits in 32 bits.
  • Seconds or milliseconds? The most common mistake is a factor of 1,000: JavaScript and Java use milliseconds, most Unix tools and databases seconds. A millisecond value read as seconds lands tens of thousands of years in the future (outside this converter’s range); a second value read as milliseconds lands in January 1970.
  • Negative timestamps are valid and count back from 1970: −1 is 23:59:59 UTC on 31 December 1969.
  • Local times are ambiguous twice a year. When clocks go back, a local time happens twice; when they spring forward, an hour is skipped. The reverse conversion uses the first occurrence and moves a skipped time forward, and says so.
  • Old dates. Before time zones were standardised, around 1900, zones used local mean time, with offsets in odd minutes and seconds. ISO strings here show the offset to the minute.

Store UTC, display local

Keep timestamps (or ISO strings ending in Z) in data and logs, and convert to a local time only for display. A stored local time without its offset can’t be turned back into a single moment.

Frequently asked questions

What is the Unix epoch?

It is the starting point that Unix time counts from: 00:00:00 UTC on 1 January 1970, written 1970-01-01T00:00:00Z. Timestamp 0 is that moment, 86,400 is the same time a day later, and negative timestamps are earlier.

Does Unix time include leap seconds?

No. POSIX defines every day as exactly 86,400 seconds, so leap seconds are not counted and have no timestamp of their own. Around a leap second, systems either repeat a second or smear the extra second over a longer period.

How do I tell if a timestamp is in seconds or milliseconds?

Count the digits. Current timestamps have 10 digits in seconds (from September 2001 until November 2286) and 13 in milliseconds. 16 digits usually means microseconds and 19 nanoseconds. The converter guesses this way and lets you override it.

What happens in 2038?

A signed 32-bit integer can hold timestamps up to 2,147,483,647, which is 03:14:07 UTC on 19 January 2038. Software that still stores time that way will overflow one second later and jump back to December 1901. Most current systems use 64-bit time values, which don’t have this limit.

Is a Unix timestamp the same in every time zone?

Yes. A timestamp names a moment, not a clock reading, so it is the same number in Tokyo and New York. Only the local date and time you display for it depend on the time zone.

Sources

Last reviewed September 19, 2026