Home/Time utilities/Unix timestamp converter

Time utilities · Browser calculation

Unix timestamp converter

Convert a Unix timestamp into UTC and local date-time representations.

01

Enter unix timestamp converter details

02

Converted timestamp

Local
—

Calculated in this browser. Inputs are not saved by default.

Method

How the unix timestamp converter works

Unix time counts elapsed seconds from 00:00:00 UTC on 1 January 1970. Values with 13 digits are treated as milliseconds.

Example

Unix timestamp converter example

A 10-digit contemporary timestamp is normally seconds; a 13-digit value is normally milliseconds.

Rule

Exact rule used by the unix timestamp converter

A Unix timestamp counts seconds since 00:00:00 UTC on 1 January 1970. The page treats any value above 10,000,000,000 as milliseconds and anything at or below it as seconds, then shows the instant in UTC, in your local zone and as milliseconds since the epoch.

Since 10,000,000,000 seconds does not arrive until 20 November 2286, every present-day second timestamp has 10 digits and every millisecond timestamp 13. The cutoff has one consequence: a millisecond value from before 26 April 1970 is small enough to be read as seconds. Timestamps have no time zone; only the display does.

Step by step

Worked through step by step

The prefilled 1,788,340,800 is 09:20:00 UTC on 2 September 2026. Add three zeros, 1,788,340,800,000, and the page reads it as the same instant in milliseconds. Other fixed points: 1,000,000,000 is 01:46:40 UTC on 9 September 2001, 1,700,000,000 is 22:13:20 UTC on 14 November 2023, and 1,767,225,600 is exactly 00:00:00 UTC on 1 January 2026.

The local line depends on your device. 1,788,340,800 reads as 2:50 PM on 2 September 2026 in India, and 5:20 AM in New York. The UTC line stays at 09:20 for everyone.

Pitfalls

Common mistakes with the unix timestamp converter

  • Pasting a millisecond timestamp into a seconds-only tool. This page detects the length, but many libraries do not, and the result is a date thousands of years away.
  • Assuming a timestamp carries a time zone. It identifies an instant; the zone only affects how it is displayed.
  • Dropping a fractional part. Some languages return seconds with decimals, and the fraction is real time.
  • Treating leap seconds as separate values. Common Unix implementations do not represent them as distinct timestamps.

FAQ

Unix timestamp converter FAQ

Is Unix time tied to a time zone?

No. It identifies an instant; time zones only affect how that instant is displayed.

What is the difference between seconds and milliseconds?

Millisecond timestamps contain 1,000 units per second and are usually three digits longer.

Does Unix time include leap seconds?

Common Unix implementations do not represent leap seconds as distinct timestamp values.

How do I turn a date into a Unix timestamp?

This page converts one way, from a timestamp to a date. To go the other way, take the UTC date-time and count seconds since 1970; in JavaScript, Date.UTC(year, monthIndex, day, hour, minute) divided by 1,000 gives seconds.

Why does my timestamp show a different local date than UTC?

The local line applies your device's zone. A timestamp near midnight UTC can fall on the previous or next calendar day where you are.

More on this topic

Hours, durations and time formats