Home Everyday Life Unix Timestamp Converter

Unix Timestamp Converter

Convert a Unix timestamp to a date, and a date to a timestamp.

Advertisement

How it works

A Unix timestamp counts the seconds since 1 January 1970 at 00:00 UTC. Add that many seconds to that moment and you have the date. A 13-digit number is almost always milliseconds, so this page divides it by 1,000 first. The timestamp itself carries no time zone: only the way it is displayed does, so the page shows the UTC reading and your own local reading of the same moment. Type a date and time in the third field to get its timestamp back.

Advertisement

Formula

date = 1970-01-01 00:00:00 UTC + timestamp seconds
timestamp = seconds from 1970-01-01 00:00:00 UTC to the date
13-digit input ÷ 1000 = seconds

Sources

Example

1,700,000,000 seconds after the epoch is 2023-11-14 22:13:20 UTC. Check: that UTC date and time back to seconds is 1,700,000,000. The same moment read locally depends on your time zone offset.

Frequently asked questions

Seconds or milliseconds?

Ten digits is seconds and 13 digits is milliseconds. The page converts 13-digit numbers for you.

Does a timestamp include a time zone?

No. It is a count of seconds, always from the same UTC moment.

What is the epoch?

1970-01-01 00:00:00 UTC, the zero point of the count.

What about negative numbers?

They would be dates before 1970. This page covers 0 and later.

Advertisement

Related calculators

Age Calculator

Exact age in years, months and days, plus days until your next birthday.

Date Difference Calculator

Days, weeks, months and business days between two dates.

Tip Calculator

Tip and split the bill between any number of people.

Discount Calculator

The price after a percent discount and how much you save.